だから私はSwift 2.0 Xcode 7.1.1で完璧なAVSpeechSynthesizer(テキスト読み上げ)を持っていますが、私たちが通常のペースで話しているように、またはもっと遅く話す方法がわかりませんか?コード:
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
}
}