HomeiOS Developmenttextual content to speech - Options to AVSpeechSynthesizer.write for IOS

textual content to speech – Options to AVSpeechSynthesizer.write for IOS


I am writing an app that sends notifications utilizing UNUserNotificationCenter with a sound generated by AVSpeechSynthesizer. I figured {that a} sound in a notification have to be a file for that. Writing synthesized speech to a file stopped working with IOS 16. There is a query on SO about that already: Play audio buffers generated by AVSpeechSynthesizer straight.

I am on the lookout for alternate options that enable me to do the identical factor. One chance could be a special text-to-speech library or framework, that writes the generated sound to a file and is ideally free. I might additionally wish to know if there is a totally different means to make use of the generated speech with out writing it to a file first:

let content material = UNMutableNotificationContent()
content material.title = "Notifiation"
content material.physique = "One thing vital"
content material.sound = UNNotificationSound(named: UNNotificationSoundName(fileName)) // what to make use of as a substitute

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments