在Android应用程序中使用文本语音API [英] Using text to speech APIs in android application
问题描述
我想在我的android应用程序中使用TTS(文本到语音)API.现在我有一个字样-它支持土耳其语吗?我还想在说出某个特定单词时在文本视图中突出显示该单词.
I want to use TTS (Text to Speech) APIs in my android application.Now i have one quetions - Is it support TURKISH language ? I also want to highlight word in textview when that perticular word is being spoke.
我该怎么办?有人可以帮我吗?
How can i do it ? Can anybody help me ?
提前谢谢!
推荐答案
它支持土耳其语
这可能在不同的Android手机/型号上有所不同.您可以使用
This may vary on different handsets/flavours of Android. You can check it out for yourself using the
mTTS.isLanguageAvailable(new Locale("tr", "TUR"));
我还想在说出特定单词时在文本视图中突出显示该单词.
I also want to highlight word in textview when that particular word is being spoke.
您有一个 TextToSpeech.OnUtteranceCompletedListener(),要使用此功能,您必须每个单词一次 speak()
.
Well you have a TextToSpeech.OnUtteranceCompletedListener(), to use this you have to speak()
each word, one at a time.
这篇关于在Android应用程序中使用文本语音API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!