Swift 文本转语音 - 发音

EvG*_*yin 0 text-to-speech swift avspeechutterance

如何设置 1 个单词的发音AVSpeechUtterance?例如 -read [ri:d], read [red], read [red]拼写相同但发音不同

AVSpeechUtterance(string: "read") // in second form, how?
Run Code Online (Sandbox Code Playgroud)

mat*_*att 5

您可以使用通过 AVSpeechSynthesisIPANotationAttribute 键附加国际音标发音的属性字符串。