适用于 Apple Watch / WatchKit 的语音合成器

Speech Synthesizer for Apple Watch / WatchKit

有谁知道是否可以访问 Apple Watch 的内置语音合成器?

对于我的 iOS 主应用程序,我使用 AVSpeechSynthesizer 如下:

AVSpeechUtterance *utterance = [[AVSpeechUtterance alloc] initWithString:theSpeech]; 
utterance.voice = [AVSpeechSynthesisVoice voiceWithLanguage:@"en-GB"]; 

这很完美,但相同的代码在 WatchKit 扩展中不起作用。

No 这不是 possible.Here 描述的是启用 WatchKit 的一小部分。 https://developer.apple.com/library/prerelease/ios/documentation/General/Conceptual/WatchKitProgrammingGuide/

根据 development forums 中的回答,目前似乎无法直接在 Apple Watch 上播放音频。

WatchKit 扩展中合成语音的播放将在 iPhone 上进行。这可能不是理想的用户体验。