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) }