This commit is contained in:
Hamza-Ayed
2024-05-18 09:39:55 +03:00
parent 81080ce292
commit c74b87b272
17 changed files with 1469 additions and 586 deletions

View File

@@ -6,7 +6,7 @@ import 'package:get/get.dart';
class TextToSpeechController extends GetxController {
final flutterTts = FlutterTts();
bool isComplete = false;
// Initialize TTS in initState
@override
void onInit() {
@@ -41,6 +41,8 @@ class TextToSpeechController extends GetxController {
if (result == 1) {
// TTS operation has started
// You can perform additional operations here, if needed
isComplete = true;
update();
}
} catch (error) {
// Handle error gracefully, e.g., show a message