flutter_tts icon indicating copy to clipboard operation
flutter_tts copied to clipboard

setVoice

Open paco10121968 opened this issue 6 years ago • 4 comments

i have an issue on setVoice() i set voice just before call play(String text), but voice set seems not works. i read italian voices from logging and set one as default. (not works) i read voices using getVoices, then set first one from set using: setVoices(tts.getVoices().first()) and even this not works. i run debug app on phisical device ( redmi8) or on android emulator phone but result is same. there is something i do wrong?

the voice that the tts play is the voice i have set from google tts engine list of voices. (inside phone settings)

paco10121968 avatar Sep 21 '20 14:09 paco10121968

i solved the issue using a workaround. instead using

await player.setVoice(voice);

used it without Future functions, just:

player.setVoice(voice) // works like a charm

paco10121968 avatar Oct 07 '20 11:10 paco10121968

can you provide the voice and text you're using?

dlutton avatar Oct 18 '20 08:10 dlutton

where is voice??

shinriyo avatar Jan 30 '22 14:01 shinriyo

i solved the issue using a workaround. instead using

await player.setVoice(voice);

used it without Future functions, just:

player.setVoice(voice) // works like a charm

Thank you so much, I was suffering the same issue

ryan-deng98 avatar Aug 05 '22 06:08 ryan-deng98