I created an application with the voice voice function using AVSpeechSynthesizer and displaying a list of languages ββfrom the AVSpeechSynthesisVoice: speechVoices() function in the TableView. User can select speech language from TableView.
The next thing I wanted to achieve was to add a speech gender so that the user could switch between standard male or female voices, for example, in the Siri application. I donβt want it to be complicated, so I just looked for male or female voices by default.
The voices returned from speechVoices() have a default male or female voice specific to each voice.
Can i change this? I placed the UIPickerView page on the application settings page to choose between male and female voices.
However, I did some research, but could not find the documentation. There seems to be no such support available until the latest version of iOS.
Has anyone tried to implement such a function so far?
ios swift text-to-speech speech-synthesis avspeechsynthesizer
Curiousdev
source share