OGeek|极客世界-中国程序员成长平台

标题: ios - 快速将单词转换为 iphone (ios) 的音素 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-11 22:33
标题: ios - 快速将单词转换为 iphone (ios) 的音素

MacOS 有一种方法可以将单词转换为 phonemes ,换句话说,在单词池中包含单词的一部分的声音,例如“oo”。

Words to Phenomes in MacOS

此外,似乎有一种方法可以通过向 AVSpeechSynthesisVoice 发送属性字符串而不是下面链接中描述的字符串来强制以某些方式发音,以便 AVSpeechSynthesis 了解音素。

https://nshipster.com/avspeechsynthesizer/#customizing-pronunciation

但是,我一直无法在 IOS 中找到将单词转换为音素的东西。如果没有 native api,是否有人知道使用 Regex 或库的解决方法。这是MacOS的方法。



Best Answer-推荐答案


However, I have been unable to find something that converts words to phonemes in IOS.

我建议使用位于 Settings > General > Accessibility > Speech > Pronunciations (iOS 12) 的 iPhone 功能。

此信息来自详细的 WWDC 2018 video summarycode snippets (ObjC 和 Swift) 解释了如何将其导入代码中以由语音合成器发声。

关于ios - 快速将单词转换为 iphone (ios) 的音素,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55329592/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4