Wednesday, March 4, 2026
HomeiOS Developmentios - AVSpeechSynthesizer() alternate options for Swift / Xcode?

ios – AVSpeechSynthesizer() alternate options for Swift / Xcode?


A requirement of my software is to implement TTS. I can use the next code to loop by the accessible voices and choose one. Nevertheless, all the accessible system voices are very low high quality. There aren’t any “(Enhanced)” model of the voices accessible. As I perceive it, these are solely on the machine if the consumer has beforehand downloaded and configured it of their system settings.

let voices = AVSpeechSynthesisVoice.speechVoices()
for voice in voices {
    if voice.language == "en-US" {
        print("Language: (voice.language), Identify: (voice.title)")
     }
}
let desiredVoice = voices.first { $0.title == "Samantha" }
let utterance = AVSpeechUtterance(string: dictionaryEntry.phrase)
utterance.voice = desiredVoice
Self.synthesizer.communicate(utterance)

Voices accessible on machine by default (exhibiting for “en-US”):

Language: en-US, Identify: Trinoids
Language: en-US, Identify: Albert
Language: en-US, Identify: Jester
Language: en-US, Identify: Samantha
Language: en-US, Identify: Whisper
Language: en-US, Identify: Celebrity
Language: en-US, Identify: Bells
Language: en-US, Identify: Organ
Language: en-US, Identify: Unhealthy Information
Language: en-US, Identify: Bubbles
Language: en-US, Identify: Junior
Language: en-US, Identify: Bahh
Language: en-US, Identify: Wobble
Language: en-US, Identify: Boing
Language: en-US, Identify: Good Information
Language: en-US, Identify: Zarvox
Language: en-US, Identify: Ralph
Language: en-US, Identify: Cellos
Language: en-US, Identify: Kathy
Language: en-US, Identify: Fred

How can I obtain and package deal the next high quality voice with my app to all the time use that voice when doing TTS?

If that’s not potential utilizing AVSpeechSynthesizer(), are there different Swift libraries that may obtain this aim?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments