Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private let speechSynthesiser = AVSpeechSynthesizer()
- {
- if let text = self.convertedTV.text {
- let reversedText = text.reversed()
- }
- let speechUtterance = AVSpeechUtterance(string: "H e l l o W o r l d")
- speechUtterance.rate = 0.35
- speechUtterance.volume = 1.0
- speechSynthesiser.stopSpeaking(at: .word)
- speechSynthesiser.speak(speechUtterance)
- }
Add Comment
Please, Sign In to add comment