Browse Source

上传代码

weicu
liwei1dao 1 year ago
parent
commit
44f4049c93
  1. 2
      local_plugins/azure_speech/android/src/main/kotlin/com/yunqiinnovation/azure_speech/AzureTtsHelper.kt

2
local_plugins/azure_speech/android/src/main/kotlin/com/yunqiinnovation/azure_speech/AzureTtsHelper.kt

@ -671,9 +671,9 @@ class AzureTtsHelper(private val context: Context) : ITtsService {
try {
synthesizer?.StopSpeakingAsync()
synthesizer?.close()
streamBuffer.clear()
isSpeaking = false
recreateSynthesizer()
return true
} catch (e: Exception) {
FileLogger.e(TAG, "停止语音合成失败: ${e.message}")

Loading…
Cancel
Save