Ответ 1
iOS по-прежнему не обеспечивает мужской мужской голос. Вы можете найти все доступные голоса BCP-47
for (AVSpeechSynthesisVoice *voice in [AVSpeechSynthesisVoice speechVoices]) {
NSLog(@"%@", voice.language);
}
Решение: у него нет US male voice
Я использовал AVSpeechSynthesizer
framework
для iOS7.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
}
Мне нужно использовать US male voice
вместо male UK voice
.
iOS по-прежнему не обеспечивает мужской мужской голос. Вы можете найти все доступные голоса BCP-47
for (AVSpeechSynthesisVoice *voice in [AVSpeechSynthesisVoice speechVoices]) {
NSLog(@"%@", voice.language);
}