I have a button that triggers the text-to-speech function. When I run it, it works when I press the button :) I can run it on that screen a few times and it works continuously, almost what have I found if I had more than 4 times on a screen Pressing the button, it does not work anymore
I have also found that if I go back to the previous screen, then click on a new phrase and in my Text-Toupeque screen, it does not play at all.
Here is the code that invokes text-to-speech:
@bbatin funk text text (sender: UIButton) {myUtterance = AVSpeechUtterance (string: translations) Language. Text) myUtterance.voice = AVSpeech SynthesisVoice (Language: "L-GR") myUtterance.rate = 0.2 synth.speak uternance synth.pauseSpeakingAtBoundary (. Word)}
No comments:
Post a Comment