草庐IT

TTSPlaybackCreate

全部标签

iphone - 文本到语音 [TTS] TTSPlaybackCreate 无法初始化动态 : -3000

@IBActionfuncbtnclicked(_sender:Any){print("clicked")letutterance=AVSpeechUtterance(string:"Helloworld")utterance.voice=AVSpeechSynthesisVoice(language:"en-GB")utterance.rate=0.1letsynthesizer=AVSpeechSynthesizer()synthesizer.speak(utterance)}//我得到这个“[TTS]TTSPlaybackCreate无法初始化动态:-3000”