From: sooyeon.kim Date: Wed, 11 Mar 2020 09:58:32 +0000 (+0900) Subject: Change sound_manager_create_stream_information in accordance with the stream type X-Git-Tag: accepted/tizen/unified/20200323.173028~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2d1ab534440dcb2a19c342917146c7cded274461;p=platform%2Fcore%2Fuifw%2Fstt.git 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) --- 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;