Set auto as default voice recognition language 05/86405/2
authorJihoon Kim <jihoon48.kim@samsung.com>
Thu, 1 Sep 2016 05:00:33 +0000 (14:00 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Thu, 1 Sep 2016 05:02:29 +0000 (14:02 +0900)
Change-Id: I735b1a9b5cae84d821c4a7a448ce55d3fd716411
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/ise-stt-option.cpp

index 402e46f..a1d36ed 100644 (file)
@@ -117,8 +117,8 @@ static int get_language_value()
     ret = preference_get_int(PREFERENCE_ISE_STT_LANGUAGE, &lang);
     if (PREFERENCE_ERROR_NONE != ret){
         LOGD("preference_get_int error!(%d)", ret);
-        preference_set_int(PREFERENCE_ISE_STT_LANGUAGE, (int)2); //auto
-        lang = 2;
+        preference_set_int(PREFERENCE_ISE_STT_LANGUAGE, STT_VOICE_N66_AUTO); //auto
+        lang = STT_VOICE_N66_AUTO;
     }
 #else
     int lang = 0, ret = 0;