Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to switch voice genders for AVSpeechSynthesisVoice?

I'm building simple text to speech app and curious if it's possible to switch between genders of the voice?

Any kind of help is highly appreciated!

like image 214
Eugene Gordin Avatar asked Nov 09 '22 19:11

Eugene Gordin


1 Answers

Set your AVSpeechUtterance's voice property to one of the currently available voices. Available voices change based on system and locale. You can also adjust the utterance's pitchMultiplier, volume, rate, and delay properties to further adjust the sound.

like image 138
Aaron Brager Avatar answered Nov 14 '22 22:11

Aaron Brager