菜鸟教程小白 发表于 2022-12-11 22:33:47

ios - 快速将单词转换为 iphone (ios) 的音素


                                            <p><p>MacOS 有一种方法可以将单词转换为 <a href="https://en.wikipedia.org/wiki/Phoneme" rel="noreferrer noopener nofollow">phonemes</a> ,换句话说,在单词池中包含单词的一部分的声音,例如“oo”。 </p>

<p> <a href="https://developer.apple.com/documentation/appkit/nsspeechsynthesizer/1448500-phonemes" rel="noreferrer noopener nofollow">Words to Phenomes in MacOS</a> </p>

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

<p> <a href="https://nshipster.com/avspeechsynthesizer/#customizing-pronunciation" rel="noreferrer noopener nofollow">https://nshipster.com/avspeechsynthesizer/#customizing-pronunciation</a> </p>

<p>但是,我一直无法在 IOS 中找到将单词转换为音素的东西。如果没有 nativeapi,是否有人知道使用 Regex 或库的解决方法。这是MacOS的方法。</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><blockquote>
<p>However, I have been unable to find something that converts words to phonemes in IOS.</p>
</blockquote>

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

<p>此信息来自详细的 WWDC 2018 <a href="https://a11y-guidelines.orange.com/mobile_EN/dev-ios-wwdc-18236.html#IPA" rel="noreferrer noopener nofollow">video summary</a>和 <a href="https://a11y-guidelines.orange.com/mobile_EN/dev-ios.html#speech-synthesis" rel="noreferrer noopener nofollow">code snippets</a> <em>(ObjC 和 Swift)</em> 解释了如何将其导入代码中以由语音合成器发声。</p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - 快速将单词转换为 iphone (ios) 的音素,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/55329592/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/55329592/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - 快速将单词转换为 iphone (ios) 的音素