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;