[6.4.0][Feat]新增语音打断的回调

This commit is contained in:
chenfufeng
2024-05-20 20:05:21 +08:00
parent 3f467b4f7a
commit a338d92bc8
3 changed files with 12 additions and 3 deletions

View File

@@ -156,7 +156,7 @@ class IFlyTekTts : IMogoTTS, InitListener {
curTtsEntity?.let {
val string = it.toString()
if (speakVoiceMap.containsKey(string)) {
speakVoiceMap.remove(string)
speakVoiceMap.remove(string)?.onStopTts(string)
}
curTtsEntity = null
}