1

私はチュートリアルに従っています:

STT: 音声認識

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;
        }
4

1 に答える 1

1

Stt には tizen.org/feature/speech.recognition と tizen.org/feature/microphone の 2 つの機能が必要です

以下のように、systemapi でサポートされている機能を確認する必要があります。

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

#include "system_info.h"

bool stt_supported = false;
bool mic_supported = false;

system_info_get_platform_bool("http://tizen.org/feature/speech.recognition", &stt_supported);
system_info_get_platform_bool("http://tizen.org/feature/microphone", &mic_supported);

dlog_print(DLOG_ERROR, LOG_TAG, "supported = %d, %d", stt_supported ,mic_supported );

stt_supported に対応していない可能性があります。これはtizenフォーラムの同じ質問です。

https://developer.tizen.org/forums/native-application-development/stt-support-on-real-gear-s2-not-emulator?tab=active

于 2016-02-26T02:21:38.060 に答える