Using Alex's voice with AVSpeechSynthesisVoice: voiceWithLanguage

Has anyone mastered the AVSpeechSynthesisVoice class deep enough and figured out how to use Alex's voice? - It does not appear in the list of voices returned by calling AVSpeechSynthesisVoice: speechVoices. I submitted a ticket to DTS and their response was:

Thank you for contacting Apple Developer Technical Support (DTS). Our engineers reviewed your request and concluded that there is no supported way to achieve the desired functionality given the current delivery system configurations.

If you would like Apple to consider adding support for these features in the future, please submit an extension request via the Bug Reporter tool at http://bugreport.apple.com .

Most of Apple's built-in apps can use it like Notes and Reminders, but Safari won't use it. I don't care if Apple's solution is supported or not - it's for home app only.

Thank!

+3


source to share


1 answer


It will appear in the call to AVSpeechSynthesisVoice: speechVoices if voice is available on the device.

To add a voice to my phone (I'm on iOS 10.3.2), go to Settings / General / Accessibility / Speech / Voices / English / Alex and click on the cloud icon to download it.

Once downloaded, you can vote like this:



// Swift 3 
let voices = AVSpeechSynthesisVoice.speechVoices()
for szVoice in voices {
  print(szVoice)
}

      

It appears as the last name on the list.

[AVAlexSpeechSynthesisVoice 0x1700150d0] Language: en-US, Name: Alex, Quality: Enhanced [com.apple.speech.voice.Alex]

      

+1


source







All Articles