I am using the code below to speak a string in my app.
var mySynthesizer = AVSpeechSynthesizer()
var myUtterance = AVSpeechUtterance(string: "Hello World!")
myUtterance.voice = AVSpeechSynthesisVoice(language: "en-US")
myUtterance.pitchMultiplier = 1.15
myUtterance.rate = 0.5
mySynthesizer.speak(utterance)
If the string is then changed and asked to read again, it repeats the previous string at the end of the new one.
Is it possible to clear AVSpeechSynthesizer before beginning?
Thank you