【问题标题】:AVSpeechSynthesisVoice voice is fred's voice in iOS 12 if no voice identifier is set.如果未设置语音标识符,则 AVSpeechSynthesisVoice 语音是 fred 在 iOS 12 中的语音。
【发布时间】:2019-03-15 11:10:25
【问题描述】:

如果没有设置语音标识符,AVSpeechSynthesisVoice 语音是 fred 在 iOS 12 中的语音。我们怎样才能回到默认语音?

【问题讨论】:

标签: ios12


【解决方案1】:

com.apple.ttsbundle.Samantha-compact 是 AVSpeechSynthesisVoice 的默认语音。这就是您可以返回默认语音的方式-

AVSpeechSynthesisVoice* voice = [AVSpeechSynthesisVoice voiceWithIdentifier:@"com.apple.ttsbundle.Samantha-compact"];

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-11-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-02-23
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多