return 1;
}
+ nRet = stt_set_private_data(g_hStt, "stt_verification", "true");
+ if ( nRet != STT_ERROR_NONE )
+ {
+ FPRINTF("[Line : %d][%s] stt_set_private_data failed for TC mode, error returned = %s\\n",
+ __LINE__, API_NAMESPACE, SttGetError(nRet));
+ stt_unprepare(g_hStt);
+ stt_unset_state_changed_cb(g_hStt);
+ return 1;
+ }
+
//Start recording and recognition asynchronously to invoke callback
g_bStateCallbackOccurred = false;
g_bCallbackParameterCheck = false;
return 1;
}
+ nRet = stt_set_private_data(g_hStt, "stt_verification", "true");
+ if ( nRet != STT_ERROR_NONE )
+ {
+ FPRINTF("[Line : %d][%s] stt_set_private_data failed for TC mode, error returned = %s\\n",
+ __LINE__, API_NAMESPACE, SttGetError(nRet));
+ stt_unprepare(g_hStt);
+ stt_unset_state_changed_cb(g_hStt);
+ return 1;
+ }
+
//Start recording and recognition asynchronously to invoke callback
g_bStateCallbackOccurred = false;
nRet = stt_start(g_hStt, g_szSupportedLanguages[nLanguageCounter], szRecognitionTypes[nTypeCounter]);
return 1;
}
+ nRet = stt_set_private_data(g_hStt, "stt_verification", "true");
+ if ( nRet != STT_ERROR_NONE )
+ {
+ FPRINTF("[Line : %d][%s] stt_set_private_data failed for TC mode, error returned = %s\\n",
+ __LINE__, API_NAMESPACE, SttGetError(nRet));
+ stt_unprepare(g_hStt);
+ stt_unset_state_changed_cb(g_hStt);
+ return 1;
+ }
+
//Start recording and recognition asynchronously to invoke callback
g_bStateCallbackOccurred = false;
g_bCallbackParameterCheck = false;