Ignore voice key press event during follow-up speech session 34/273734/1
authorJi-hoon Lee <dalton.lee@samsung.com>
Wed, 13 Apr 2022 05:53:02 +0000 (14:53 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Wed, 13 Apr 2022 05:53:02 +0000 (14:53 +0900)
Change-Id: Ia48da94500eb9e084fe17431e0b54fe43b9f89f7

plugins/wakeup-manager/src/wakeup_manager.cpp

index 00035cd..4d61d87 100644 (file)
@@ -531,8 +531,12 @@ bool CWakeupManager::process_plugin_event(mas_plugin_event_e event, void* data,
 
        boost::optional<ma_voice_key_status_e> 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) {