From 03c4144179b9428286b49f88cec4ce744b67f298 Mon Sep 17 00:00:00 2001 From: tanlongsheng <252620078@qq.com> Date: Wed, 10 Dec 2025 20:35:34 +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 --- .../azure_speech/Sources/azure_speech/XunFeiAsrHelper.swift | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/local_plugins/azure_speech/ios/azure_speech/Sources/azure_speech/XunFeiAsrHelper.swift b/local_plugins/azure_speech/ios/azure_speech/Sources/azure_speech/XunFeiAsrHelper.swift index 44ece0896..9b4c4455e 100644 --- a/local_plugins/azure_speech/ios/azure_speech/Sources/azure_speech/XunFeiAsrHelper.swift +++ b/local_plugins/azure_speech/ios/azure_speech/Sources/azure_speech/XunFeiAsrHelper.swift @@ -195,13 +195,9 @@ class XunFeiAsrHelper: NSObject, URLSessionWebSocketDelegate { if typeInt == 0 { callback?.onResult(sessionid: currentSessionId, resultTextTemp, detectedLanguage) - currentSessionId = "" + currentSessionId = UUID().uuidString lastIntermediateResult = "" } else { - if currentSessionId.isEmpty { - currentSessionId = UUID().uuidString - callback?.onSessionStarted(sessionid: currentSessionId) - } lastIntermediateResult = resultTextTemp callback?.onRecognizing(sessionid: currentSessionId, resultTextTemp, detectedLanguage) }