我想在我的 watchkit 代码中添加 AVSpeechSynthesizer
以及如何在手表套件 os 2 中读取 Avfoundation 是可能的,或者我需要将 avfoundation 转换为 Mediaplayer 或....
AVSpeechSynthesizer *synthesizer = [[AVSpeechSynthesizer alloc] init];
speechPaused = YES;
AVSpeechUtterance *utterance = [[AVSpeechUtterance alloc] initWithString:@""];
utterance.rate = 0.15;
utterance.voice = [AVSpeechSynthesisVoice voiceWithLanguage:@"it_IT"];
[synthesizer speakUtterance:utterance];
它如何在 watchkit os2 中工作