Languages

Menu
Sites
Language
Error in Speech-to-Text

HI,

 

I'm developing STT appication where I'm able get success in stt_create() and stt_prepare() but stt_start() throwing error -49283071 and I have added recorder privilege, could anyone help me to solve this issue?

 

Thanks

Responses

1 Replies
Yasin Ali

Hi,

I think as the stt_start() function failing, check the error code.
You can get the following error codes:

1. STT_ERROR_RECORDER_BUSY
2. STT_ERROR_OUT_OF_NETWORK
3. STT_ERROR_INVALID_STATE
4. STT_ERROR_INVALID_LANGUAGE

Match return error value with above macros.
I think it will help finding appropriate error condition.
Another thing do not use STT in a thread as STT is not thread-safe
and depends on the ecore main loop.

Thanks.