diff --git a/nugu-agent/src/main/java/com/skt/nugu/sdk/agent/asr/impl/DefaultClientSpeechRecognizer.kt b/nugu-agent/src/main/java/com/skt/nugu/sdk/agent/asr/impl/DefaultClientSpeechRecognizer.kt index 569a099ad..bb8cad8a8 100644 --- a/nugu-agent/src/main/java/com/skt/nugu/sdk/agent/asr/impl/DefaultClientSpeechRecognizer.kt +++ b/nugu-agent/src/main/java/com/skt/nugu/sdk/agent/asr/impl/DefaultClientSpeechRecognizer.kt @@ -611,12 +611,12 @@ class DefaultClientSpeechRecognizer( val receiveResponse = directiveAndAsyncKeys.any {(directive, asyncKey)-> - directive.header.namespace != DefaultASRAgent.NAMESPACE && + !(directive.header.namespace == DefaultASRAgent.NAMESPACE && directive.header.name == DefaultASRAgent.NAME_NOTIFY_RESULT) && !(directive.header.namespace == "Adot" && directive.header.name == "AckMessage") && (asyncKey == null || asyncKey.state == AsyncKey.State.END) } - Logger.d(TAG, "[onReceiveResponse] receiveResponse: $receiveResponse") + Logger.d(TAG, "[onReceiveResponse] receiveResponse: $receiveResponse , dialogRequestId: $dialogRequestId") return synchronized(request) { if (receiveResponse) { diff --git a/nugu-agent/src/main/java/com/skt/nugu/sdk/agent/asr/impl/DefaultServerSpeechRecognizer.kt b/nugu-agent/src/main/java/com/skt/nugu/sdk/agent/asr/impl/DefaultServerSpeechRecognizer.kt index 09a91bba6..acd86e27d 100644 --- a/nugu-agent/src/main/java/com/skt/nugu/sdk/agent/asr/impl/DefaultServerSpeechRecognizer.kt +++ b/nugu-agent/src/main/java/com/skt/nugu/sdk/agent/asr/impl/DefaultServerSpeechRecognizer.kt @@ -393,7 +393,7 @@ class DefaultServerSpeechRecognizer( val receiveResponse = directiveAndAsyncKeys.any {(directive, asyncKey)-> - directive.header.namespace != DefaultASRAgent.NAMESPACE && + !(directive.header.namespace == DefaultASRAgent.NAMESPACE && directive.header.name == DefaultASRAgent.NAME_NOTIFY_RESULT) && !(directive.header.namespace == "Adot" && directive.header.name == "AckMessage") && (asyncKey == null || asyncKey.state == AsyncKey.State.END) }