[bugfix] can not read the last sentence

This commit is contained in:
2025-08-18 16:30:53 +08:00
parent 028471a2b7
commit e9ba8d03db
4 changed files with 26 additions and 18 deletions

View File

@@ -57,6 +57,8 @@ class CommonUtil {
cleanedText = cleanedText.replaceAllMapped(
RegExp(r'UNYX', caseSensitive: false), (m) => 'Unix');
}
cleanedText = cleanedText.replaceAllMapped(
RegExp(r'400-023-4567', caseSensitive: false), (m) => '4 0 0 - 0 2 3 - 4 5 6 7');
}
return cleanedText;

View File

@@ -17,7 +17,11 @@ class TtsUtil {
await execute('send', {'text': text});
}
static Future<void> stopTts() async {
static Future<void> complete() async {
await execute('complete');
}
static Future<void> stop() async {
await execute('stop');
}
}