简体   繁体   English

有什么方法可以修改Android Text To Speech发音吗?

[英]Is there any way to modify Android Text To Speech pronunciation?

I am looking a way to develop an app in Android which speaks Javanese Language from texts. 我正在寻找一种在Android中开发一种应用程序的方法,该应用程序可以通过文本讲Javanese语言。 As I know there is no such Javanese TTS installed by default. 据我所知,默认情况下没有安装这样的Javanese TTS。 So is there any way to modify default TTS engine pronunciation? 那么有什么方法可以修改默认的TTS引擎发音? For example, the my expected pronunciation of "PIYE" is pee-ye. 例如,我期望的“ PIYE”发音是小便。 Here is what the TTS engine produces: 这是TTS引擎产生的结果:

mTts.speak("piye", TextToSpeech.QUEUE_ADD, null); // output: pie-ee

Can somebody help me? 有人可以帮我吗? Thank you. 谢谢。

I am trying to do something similar - get an app to use standard US-EN pronunciation for scientific terms. 我正在尝试做类似的事情-获取一个使用标准US-EN发音作为科学术语的应用。 My solution is to force the TTS engine to say certain words in a certain way by first replacing them with phonetically correct phrases. 我的解决方案是通过首先用语音正确的短语替换TTS引擎,以强制某种方式说出某些单词。 Here's an example: 这是一个例子:

myString = myString.replace(" cis "," sihs "); myString = myString.replace(“ cis”,“ sihs”);

This approach seems promising but not perfect. 这种方法似乎很有希望,但并不完美。

No, you cannot change the pronunciation. 不,您不能更改发音。 There is not API method to do so. 没有API方法可以这样做。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM