Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change button icon when stopped #2

Open
ivanacu007 opened this issue Jul 28, 2021 · 6 comments
Open

Change button icon when stopped #2

ivanacu007 opened this issue Jul 28, 2021 · 6 comments

Comments

@ivanacu007
Copy link

Is there any way to detect when the speech ends?

@abayomiAkanji
Copy link

abayomiAkanji commented Jan 23, 2022

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.

@abayomiAkanji
Copy link

@tascienes Any error log when testing on iOS?

@abayomiAkanji
Copy link

abayomiAkanji commented Feb 17, 2022

@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?

@tascienes
Copy link

tascienes commented Feb 17, 2022

@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'

@tascienes
Copy link

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 :)

@abayomiAkanji
Copy link

@tascienes Well, in the meantime, you might want to explore this other package https://pub.dev/packages/flutter_tts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants