私はチュートリアルに従っています:
STT API を使用していますが、Samsung Gear S2 で create_stt_handle を呼び出すと STT_ERROR_NOT_SUPPORTED エラーが発生します。この API はこのデバイスでサポートされていますか、またはサービス 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;
}