在 WatchKit 中文本转语音是可能的吗?基本上,我想在 Apple Watch 上播放基于文本的音频。我怎样才能做到这一点?
最佳答案
是的,你现在可以 从 AVSpeechSynthesizerDelegate 派生你的类,并添加
import AVFoundation
var synth:AVSpeechSynthesizer = AVSpeechSynthesizer.init()
synth.delegate = self
synth.speak(utterance)
关于ios - Apple Watch WatchKit 可以进行文字转语音吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32372827/