3

アクセシビリティに使用されている iOS の音声合成機能にアクセスできますか?

4

3 に答える 3

6

AVSpeechSynthesizeriOS 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 に答える
1

このSOの質問が役立つかもしれません。FLITEはまた、音声合成を iOS にもたらします。

于 2010-08-23T22:42:07.270 に答える