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