[Opt3.0]兼容以前的单语言功能

This commit is contained in:
chenfufeng
2023-02-27 15:20:08 +08:00
parent 19f9f1d1ef
commit 10e2a8531f
2 changed files with 4 additions and 1 deletions

View File

@@ -86,9 +86,12 @@ class IFlyTekTts : IMogoTTS, InitListener {
}
override fun speakTTSVoiceWithLevel(tts: String?, level: Int) {
speakTTSVoiceWithLevel(tts, level, null)
}
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(