アクセシビリティに使用されている iOS の音声合成機能にアクセスできますか?
4339 次
3 に答える
6
AVSpeechSynthesizer
iOS 7 での使用例を次に示します。
AVSpeechSynthesizer *synthesizer = [[AVSpeechSynthesizer alloc]init];
AVSpeechUtterance *utterance = [AVSpeechUtterance speechUtteranceWithString:@"Hey Guys"];
[synthesizer speakUtterance:utterance];
音声を変更するには:
utterance.voice = [AVSpeechSynthesisVoice voiceWithLanguage:@"de-DE"];
すべてのボイスのリストを取得するには:
NSLog(@"voices %@", [AVSpeechSynthesisVoice speechVoices]);
于 2013-12-23T17:09:59.957 に答える