Skip to content

Commit

Permalink
Exclude ASR.NotifyResult only in ASR namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
sangho.lee authored and shshshl09 committed Jul 1, 2024
1 parent 739bfc8 commit fa0bdd9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit fa0bdd9

Please sign in to comment.