iosxcodeswiftavspeechsynthesizer

My AVSpeechSynthesizer (text to speech) is talking at a very fast rate and I can't figure out how to slow it down


so i have a perfect AVSpeechSynthesizer (text to speech) on swift 2.0 Xcode 7.1.1 but i can't figure out how to make it talk like we do at a normal pace or even slower? Code:

 import UIKit
 import AVKit
 import AVFoundation

 class HomePage: UIViewController {
 let Voice = AVSpeechSynthesizer()

 override func viewDidLoad() {
    super.viewDidLoad()
 let TilteSpeakingText1 = AVSpeechUtterance(string: "Welcome back. The database should still be up for you")
            Voice.speakUtterance(TilteSpeakingText1)
            TilteSpeakingText1.rate = 0.003
            TilteSpeakingText1.pitchMultiplier = 0.60
            TilteSpeakingText1.volume = 0.75
            TilteSpeakingText1.postUtteranceDelay = 0.01
 }
}

Solution

  • AVSpeechUtterance has a rate property. Try reducing the rate.