From 3a28fff6215ac07f279a994e3c9000b6b63dd47a Mon Sep 17 00:00:00 2001 From: Ji-hoon Lee Date: Wed, 13 Apr 2022 14:53:02 +0900 Subject: [PATCH] Ignore voice key press event during follow-up speech session Change-Id: Ia48da94500eb9e084fe17431e0b54fe43b9f89f7 --- plugins/wakeup-manager/src/wakeup_manager.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/wakeup-manager/src/wakeup_manager.cpp b/plugins/wakeup-manager/src/wakeup_manager.cpp index 00035cd..4d61d87 100644 --- a/plugins/wakeup-manager/src/wakeup_manager.cpp +++ b/plugins/wakeup-manager/src/wakeup_manager.cpp @@ -531,8 +531,12 @@ bool CWakeupManager::process_plugin_event(mas_plugin_event_e event, void* data, boost::optional next_voice_key_status; if (MAS_PLUGIN_EVENT_VOICE_KEY_PRESSED == event) { - if (VOICE_KEY_SUPPORT_MODE_NONE != mCurrentVoiceKeySupportMode) { - start_recording = true; + if (STREAMING_MODE::FOLLOW_UP == mStreamingMode) { + MWR_LOGE("Voice key pressed, but currently streaming follow_up audio"); + } else { + if (VOICE_KEY_SUPPORT_MODE_NONE != mCurrentVoiceKeySupportMode) { + start_recording = true; + } } next_voice_key_status = MA_VOICE_KEY_STATUS_PRESSED; } else if (MAS_PLUGIN_EVENT_VOICE_KEY_RELEASED_AFTER_PUSH == event) { -- 2.7.4