Frostie3
Frostie3

Reputation: 11

Set Siri as AVSpeechSynthesisVoice?

In my Swift code I want to set the voice of the "AVSynthesisVoice" to the original Siri voice, not the additional voices you can choose. I can only use their name to identify the voice to use, but can I apply the original Siri voice in my preferred language?

let u = AVSpeechUtterance(string: "Hello, I'm Siri!")
u.voice = AVSpeechSynthesisVoice(TheSiriVoice)
u.speak()

Upvotes: 0

Views: 889

Answers (1)

rickster
rickster

Reputation: 126127

The enhanced Siri voice released in iOS 11 is not available to AVSpeechSynthesizer.

Upvotes: 1

Related Questions