nativescript-community / texttospeech

Text to Speech NativeScript plugin for Android & iOS :loudspeaker:
http://nativescript-community.github.io/texttospeech/
MIT License
50 stars 24 forks source link

Feature: add voice option in tts options #17

Closed VinayV9 closed 2 years ago

VinayV9 commented 5 years ago

right now am able to get default voice in my phone using native script tts plugin. is that possible to add voice option so that we can select from available voice options in the phone.

ghost commented 5 years ago

I think we can, because if you look at Android Text to Speech, there are methods getVoices() and setVoice().

Similarly in IOS there is option to set voice of utterance. See here.

The Nativescript TTS module need to be updated with these features.

mikefromru commented 3 years ago

How can I use a male's voice?

chris-praxis commented 3 years ago

Any work on this? Using default voice is very limiting.

farfromrefug commented 2 years ago

We cant easily do that. it all depends on the user settings to download one voice or another. Android reference: https://stackoverflow.com/questions/18280451/android-texttospeech-set-gender The only thing you can do is select the locale.