From 2d1ab534440dcb2a19c342917146c7cded274461 Mon Sep 17 00:00:00 2001 From: "sooyeon.kim" Date: Wed, 11 Mar 2020 18:58:32 +0900 Subject: [PATCH] Change sound_manager_create_stream_information in accordance with the stream type Change-Id: Iad4222ae450396f7874a08b322582574ccf03156 Signed-off-by: sooyeon.kim (cherry picked from commit 6df0429105026bc1496e715f0ce2c46b6a8a703e) --- client/stt.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/client/stt.c b/client/stt.c index 4781372..a99e423 100644 --- a/client/stt.c +++ b/client/stt.c @@ -2756,7 +2756,14 @@ int __stt_change_system_volume(stt_system_volume_event_e volume_event) g_stream_for_volume_h = NULL; } - ret = sound_manager_create_stream_information_internal(stream_type, NULL, NULL, &g_stream_for_volume_h); + if (SOUND_STREAM_TYPE_VOICE_RECOGNITION_SERVICE == stream_type) { + SLOG(LOG_INFO, TAG_STTC, "[INFO] Stream type is SOUND_STREAM_TYPE_VOICE_RECOGNITION_SERVICE"); + ret = sound_manager_create_stream_information_internal(stream_type, NULL, NULL, &g_stream_for_volume_h); + } else if (SOUND_STREAM_TYPE_VOICE_RECOGNITION == stream_type) { + SLOG(LOG_INFO, TAG_STTC, "[INFO] Stream type is SOUND_STREAM_TYPE_VOICE_RECOGNITION"); + ret = sound_manager_create_stream_information(stream_type, NULL, NULL, &g_stream_for_volume_h); + } + if (0 != ret) { SLOG(LOG_DEBUG, TAG_STTC, "[ERROR] Fail to create stream information, ret(%d)", ret); return STT_ERROR_OPERATION_FAILED; -- 2.7.4