I'm following the tutorial:
I'm using STT API but I receive a STT_ERROR_NOT_SUPPORTED error when I call create_stt_handle on Samsung Gear S2. Is this API supported on this device or there's something wrong in calling this function on a service service_app_control :
create_stt_handle() {
int ret;
ret = stt_create(&stt);
if (STT_ERROR_NONE != ret)
{
dlog_print(DLOG_DEBUG, LOG_TAG, "create_stt_handle %#010x", ret);
}
if (STT_ERROR_NOT_SUPPORTED == ret)
{
dlog_print(DLOG_DEBUG, LOG_TAG, "create_stt_handle STT_ERROR_NOT_SUPPORTED");
}
}
void service_app_control(app_control_h app_control, void *data) {
// Todo: add your code here.
//create_stt_handle();
//set_recognition_result_cb(stt);
int error = register_accelerometer_callback(data);
//dlog_print(DLOG_DEBUG, LOG_TAG, "after create %d", error);
return;
}
Stt need two feature tizen.org/feature/speech.recognition and tizen.org/feature/microphone
You need to check supported feature by systemapi as below.
https://developer.tizen.org/development/api-references/api-reference-2.3.1?redirect=https%3A//developer.tizen.org/dev-guide/2.3.1/org.tizen.native.wearable.apireference/group__CAPI__SYSTEM__SYSTEM__INFO__MODULE.html
Maybe it can not support stt_supported. Here is same question in tizen forum.
https://developer.tizen.org/forums/native-application-development/stt-support-on-real-gear-s2-not-emulator?tab=active