STTError

Inherits: Object

Category: Core

Brief Description

Defines error values returned by some STT-related methods.

Member Functions

String get_error_string ( int error_number )

Numeric Constants

  • OK = 0 — No error occurred.
  • UNDEF_FILES_ERR = 1 — One or more file/directory names aren’t defined.
  • UNDEF_CONFIG_ERR = 2 — Undefined configuration variable STTConfig.
  • UNDEF_QUEUE_ERR = 3 — Undefined keywords queue STTQueue.
  • USER_DIR_MAKE_ERR = 4 — Couldn’t create STT directory in user://.
  • USER_DIR_COPY_ERR = 5 — Couldn’t copy config files to user:// directory.
  • MULTIBYTE_STR_ERR = 6 — Couldn’t convert filename to a multibyte sequence.
  • MEM_ALLOC_ERR = 7 — No memory available for allocation.
  • CONFIG_CREATE_ERR = 8 — Couldn’t create Pocketsphinx configuration variable.
  • REC_CREATE_ERR = 9 — Couldn’t open audio device (microphone).
  • DECODER_CREATE_ERR = 10 — Couldn’t create Sphinxbase decoder variable.
  • REC_START_ERR = 11 — Couldn’t start recording user’s voice.
  • REC_STOP_ERR = 12 — Couldn’t stop recording user’s voice.
  • UTT_START_ERR = 13 — Couldn’t start utterance during speech recognition.
  • UTT_RESTART_ERR = 14 — Couldn’t restart utterance during speech recognition.
  • AUDIO_READ_ERR = 15 — Error while reading data from recorder.

Description

Defines error values returned by some STT-related methods, as well as their meanings.

Member Function Description

  • String get_error_string ( int error_number )

Returns a short String explaining the given error value.