From cbcf16afcf39fc7449941ce5be8cbfc255b1f82e Mon Sep 17 00:00:00 2001 From: tanlongsheng <252620078@qq.com> Date: Wed, 10 Dec 2025 20:03:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=AF=E9=A3=9E=E8=AF=AD?= =?UTF-8?q?=E9=9F=B3=E8=AF=86=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yunqiinnovation/azure_speech/XunFeiAsrHelper.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/local_plugins/azure_speech/android/src/main/kotlin/com/yunqiinnovation/azure_speech/XunFeiAsrHelper.kt b/local_plugins/azure_speech/android/src/main/kotlin/com/yunqiinnovation/azure_speech/XunFeiAsrHelper.kt index c48bfbb76..f1095bafe 100644 --- a/local_plugins/azure_speech/android/src/main/kotlin/com/yunqiinnovation/azure_speech/XunFeiAsrHelper.kt +++ b/local_plugins/azure_speech/android/src/main/kotlin/com/yunqiinnovation/azure_speech/XunFeiAsrHelper.kt @@ -187,13 +187,9 @@ class XunFeiAsrHelper(private val context: Context) { if (st.optInt("type") == 0) { callback.onResult(currentSessionId, resultTextTemp, detectedLanguage) - currentSessionId = "" + currentSessionId = UUID.randomUUID().toString() lastIntermediateResult = "" } else { - if (currentSessionId.isEmpty()) { - currentSessionId = UUID.randomUUID().toString() - callback.onSessionStarted(currentSessionId) - } lastIntermediateResult = resultTextTemp callback.onRecognizing(currentSessionId, resultTextTemp, detectedLanguage) }