有没有办法为 AVSpeechSynthesisVoice 切换语音性别?

Is there a way to switch voice genders for AVSpeechSynthesisVoice?

我正在构建简单的文本到语音应用程序,想知道是否可以在语音的性别之间切换?

非常感谢任何形式的帮助!

设置您的AVSpeechUtterance's voice property to one of the currently available voices。可用语音会根据系统和区域设置而变化。您还可以调整话语的 pitchMultipliervolumerate 和延迟属性以进一步调整声音。