My codes launches a local notification. I can figure out how to add a title to the notification but I can not figure out how to use a custom sound. Specifically I want to use avseechutterance to speak the variable a in my code.
let content = UNMutableNotificationContent()
//a goes on the line below
content.sound =
let a = AVSpeechUtterance(string: " Good afternoon ")
let synthesizer = AVSpeechSynthesizer()
synthesizer.speak(a)
a.voice = AVSpeechSynthesisVoice(language: "en-US")
a.rate = 0.08