Add logic to check the engine's silence detection option 63/151663/2
authorSuyeon Hwang <stom.hwang@samsung.com>
Thu, 21 Sep 2017 10:57:40 +0000 (19:57 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Thu, 21 Sep 2017 11:06:25 +0000 (11:06 +0000)
Change-Id: I510bb64554ac4d764aeb9b8178d2017086f8314e
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
server/sttd_engine_agent.c

index b0e7071..09b8269 100644 (file)
@@ -603,7 +603,15 @@ int sttd_engine_agent_get_option_supported(bool* silence)
                return STTD_ERROR_OPERATION_FAILED;
        }
 
+       bool temp = false;
+       if (0 != stt_engine_support_silence(&temp)) {
+               SLOG(LOG_WARN, TAG_STTD, "[WARNING] Fail to get support silence");
+       }
+
        *silence = g_engine_info->support_silence_detection;
+       if (temp != *silence) {
+               SLOG(LOG_WARN, TAG_STTD, "[WARNING] Metadata and Engine spec are different (engine:%d) (meta:%d)", temp, *silence);
+       }
 
        return 0;
 }