[Opt3.0]兼容以前的单语言功能
This commit is contained in:
@@ -104,7 +104,7 @@ public class AIAssist {
|
|||||||
*/
|
*/
|
||||||
public void speakTTSVoice(String text) {
|
public void speakTTSVoice(String text) {
|
||||||
if (mTTS != null) {
|
if (mTTS != null) {
|
||||||
mTTS.speakTTSVoice(text);
|
mTTS.speakTTSVoiceWithLevel(text, LEVEL0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -86,9 +86,12 @@ class IFlyTekTts : IMogoTTS, InitListener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun speakTTSVoiceWithLevel(tts: String?, level: Int) {
|
override fun speakTTSVoiceWithLevel(tts: String?, level: Int) {
|
||||||
|
speakTTSVoiceWithLevel(tts, level, null)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun speakTTSVoiceWithLevel(tts: String?, level: Int, callBack: IMogoTTSCallback?) {
|
override fun speakTTSVoiceWithLevel(tts: String?, level: Int, callBack: IMogoTTSCallback?) {
|
||||||
|
if (tts.isNullOrEmpty()) return
|
||||||
|
speakMultiLangTTSWithLevel(MultiLangTtsEntity(listOf(LangTtsEntity(tts, LanguageType.CHINESE))), level, callBack)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun speakMultiLangTTSWithLevel(
|
override fun speakMultiLangTTSWithLevel(
|
||||||
|
|||||||
Reference in New Issue
Block a user