相关疑难解决方法(0)

在iOS 7.0 AVSpeechSynthesizer中有美国男声吗?

解决方案:它没有US male voice


我已经习惯AVSpeechSynthesizer frameworkiOS7.0

AVSpeechUtterance *utt = [AVSpeechUtterance speechUtteranceWithString:@"Hello"]; 
if (isMale) //flag for male or female voice selected
{
    // need US male voice as en-US is providing only US female voice
    utt.voice = [AVSpeechSynthesisVoice voiceWithLanguage:@"en-GB"]; //UK male voice 
}
else
{
    utt.voice = [AVSpeechSynthesisVoice voiceWithLanguage:@"en-US"]; //US female voice
}
Run Code Online (Sandbox Code Playgroud)

我需要用US male voice而不是male UK voice.

iphone objective-c ios ios7 avspeechsynthesizer

11
推荐指数
1
解决办法
4475
查看次数

标签 统计

avspeechsynthesizer ×1

ios ×1

ios7 ×1

iphone ×1

objective-c ×1