【发布时间】:2019-03-15 11:10:25
【问题描述】:
如果没有设置语音标识符,AVSpeechSynthesisVoice 语音是 fred 在 iOS 12 中的语音。我们怎样才能回到默认语音?
【问题讨论】:
-
为什么会被标记下来?
-
此处报告了类似问题 - stackoverflow.com/questions/52727301/…。
标签: ios12
如果没有设置语音标识符,AVSpeechSynthesisVoice 语音是 fred 在 iOS 12 中的语音。我们怎样才能回到默认语音?
【问题讨论】:
标签: ios12
com.apple.ttsbundle.Samantha-compact 是 AVSpeechSynthesisVoice 的默认语音。这就是您可以返回默认语音的方式-
AVSpeechSynthesisVoice* voice = [AVSpeechSynthesisVoice voiceWithIdentifier:@"com.apple.ttsbundle.Samantha-compact"];
【讨论】: