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
}
}
AVSpeechUtterance
has a rate property. Try reducing the rate.