AVSpeechSynthesizer 单词重音 [英] AVSpeechSynthesizer word stress

查看:68
本文介绍了AVSpeechSynthesizer 单词重音的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 AVSpeechSynthesizer 进行 2 种语言的文本到语音转换.有没有办法在单词的不同部分指定语音重音?

I'm using AVSpeechSynthesizer for text to speech on 2 languages. Is there any way to specify speech stress on different part of the word?

我尝试将 ' 放在所需元音之前和之后,并且还使用带有重音标记的元音,例如ó, ý - 似乎没有任何影响.

I've tried placing ' before and after desired vowel, and also using vowels with stress marks, e.g. ó, ý - which does not seem to have any impact.

推荐答案

就我而言(语言代码是 ru-RU),` char 有助于设置单词重音.

In my case (language code is ru-RU), ` char helps to set word stress.

这篇关于AVSpeechSynthesizer 单词重音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆