flutter_tts icon indicating copy to clipboard operation
flutter_tts copied to clipboard

Voice selection for iOS.

Open IvanBean opened this issue 7 years ago • 4 comments

🚀 Feature Requests

Hi, is it possible to do voice selection on iOS? I've seen #16 which implement for Android, not sure whether native iOS allow similar behavior. Thanks!

IvanBean avatar May 24 '19 03:05 IvanBean

@IvanBean not that I'm aware of, however if you locate something in their docs, I'd be happy to implement it when I get some time.

dlutton avatar May 24 '19 03:05 dlutton

Thanks for reply! In my imagination from StackOverFlow's answer, we can use AVSpeechSynthesisVoice.speechVoices() to get available voices, and set voice by AVSpeechSynthesisVoice.init(identifier:).

IvanBean avatar May 24 '19 04:05 IvanBean

I'm currently using AVSpeechSynthesisVoice.speechVoices() to return the languages since it returns a unique default voice per language region.

dlutton avatar May 24 '19 04:05 dlutton

Thank you very much for the explanation! I'll try to implement these days.

IvanBean avatar May 27 '19 05:05 IvanBean