Open ivanacu007 opened 2 years ago
You should be able to detect it after the await
operator is completed.
That is:
await TextToSpeech().speak(text);
// Operations here should be executed after the speech ends.
@tascienes Any error log when testing on iOS?
@tascienes Any error log when testing on iOS?
console is empty. there isn't error log..
print('start'); await textToSpeech.speak(text); print('finish');
It outputs only 'Start'
@tascienes does it print finish
on Android? What's the length of the text?
@abayomiAkanji Android gives finish as output. But it gives before the end of the reading. This is not a problem for me. Text 'test message'
Now I tried the example in the documentation. It didn't work either. When I remove await everything is fine but this is not correct :)
@tascienes Well, in the meantime, you might want to explore this other package https://pub.dev/packages/flutter_tts
Is there any way to detect when the speech ends?