|
|
|
@ -721,7 +721,11 @@ object AgentService : CoroutineScope { |
|
|
|
if (currsessionAsrId.isEmpty()) { |
|
|
|
currsessionAsrId = sessionid |
|
|
|
} |
|
|
|
recognitionResult += result |
|
|
|
var text = result |
|
|
|
if(recognitionResult.isEmpty()) { |
|
|
|
text = text.replace(Regex("^[,。?、!, . ? !]+"), "") |
|
|
|
} |
|
|
|
recognitionResult += text |
|
|
|
if (currentRecognitionMode == "push_to_talk") { //按住说话 |
|
|
|
sendEvent( |
|
|
|
"recognizing", mapOf( |
|
|
|
|