nativescript-community / texttospeech

Text to Speech NativeScript plugin for Android & iOS :loudspeaker:

Home Page:http://nativescript-community.github.io/texttospeech/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature: add voice option in tts options

VinayV9 opened this issue · comments

commented

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.

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.

commented

How can I use a male's voice?

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

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.