How do I change voice with Text to Speech?

Hello,

I am a new user of MIT inventor 2.
I found many programs in internet using TexttoSpeech function.
By default, when I introduce a text, I hear the voice from a woman.
And if i want to hear the voice from a man ? What I should change in the code ?
Is there any possibility to download and install different kind of voices ? If yes, which website I should consult ?

Thanks for helping !

Olivier

Each user/device will have a default voice for TTS. other voices can be selected / downloaded but have to be selected by the user in their TTS settings. You may be able to open to these settings from within an app using activity starter, but you will need to know the intent for this.

Alternatively, you can change the speed and pitch of the default voice in the app's TTS settings.

You can try the Android Settings

and read https://www.androidauthority.com/google-text-to-speech-engine-659528/ and https://www.howtogeek.com/442761/how-to-modify-google-text-to-speech-voices/

I believe the default TTS in most androids is a female voice. You can modify the pitch to make it sound more masculine or change the speech engine You can do that with code; see TextToSpeech... your device might have other speech engines already loaded. You may have to load an outside TTS ... see the articles.

1 Like

You can use this to change the Voice to, Any Voice you want

Each user/device will have a default voice for TTS. other voices can be selected / downloaded but have to be selected by the user in their TTS settings.One plus 9 pro You may be able to open to these settings from within an app using activity starter, but you will need to know the intent for this.

please take this example Text_To_Speech.aia (2.8 KB) It Will Help

no problem just do decrease the speech rate