ETcsSpeechCommandExitCode

Speech command exit code.

Syntax

Definition:

TYPE ETcsSpeechCommandExitCode :
(
    TCS_CMD_SUCCEEDED                                                     := 0,
    TCS_CMD_REQUIRED_SERVICE_NOT_FOUND                                    := 10000,
    TCS_CMD_REQUIRED_SERVICE_NOT_INITIALIZED                              := 10001,
    TCS_CMD_INSUFFICIENT_PARAMETERS                                       := 10100,
    TCS_CMD_ASR_RULES_SETFAILED                                           := 20000,
    TCS_CMD_ASR_INSTANTIATION_FAILURE                                     := 20010,
    TCS_CMD_ASR_STOP_FAILURE                                              := 20020,
    TCS_CMD_ASR_START_FAILURE                                             := 20030,
    TCS_CMD_ASR_PAUSE_FAILURE                                             := 20040,
    TCS_CMD_TTS_STATUS_REQUEST_FAILURE                                    := 30010,
    TCS_CMD_TTS_STOP_REQUEST_FAILURE                                      := 30020,
    TCS_CMD_TTS_SYNTH_ERROR                                               := 30030,
    TCS_CMD_TTS_SYNTH_ERROR_CONFIGURATION_DETAILS                         := 30040,
    TCS_CMD_TTS_SYNTH_ERROR_CONFIGURATION_DETAILS_LANGUAGEID_MISSING      := 30050,
    TCS_CMD_TTS_SYNTH_ERROR_CONFIGURATION_DETAILS_LANGUAGEID_NOTSUPPORTED := 30060,
    TCS_CMD_TTS_SYNTH_ERROR_CONFIGURATION_DETAILS_INCOMPLETE              := 30070,
    TCS_CMD_TTS_SYNTH_ERROR_UTTERANCE_EMPTY                               := 30080,
    TCS_CMD_TTS_SYNTH_ERROR_UTTERANCE_AND_PATH_EMPTY                      := 30090,
    TCS_CMD_TTS_SYNTH_ERROR_SAPI_                                         := 31000,
    TCS_CMD_TTS_SYNTH_ERROR_AWSPOLLY_                                     := 32000,
    TCS_CMD_AUDIO_PLAYBACK_START_FAILURE                                  := 40010,
    TCS_CMD_AUDIO_PLAYBACK_START_FAILURE_INVALIDFORMAT                    := 40011,
    TCS_CMD_AUDIO_PLAYBACK_START_FAILURE_FILENOTFOUND                     := 40012
)UDINT;
END_TYPE

Values

Name

Description

TCS_CMD_SUCCEEDED

Speech command succeeded.

TCS_CMD_REQUIRED_SERVICE_NOT_FOUND

Referenced service not found. Wrong Id configured?

TCS_CMD_REQUIRED_SERVICE_NOT_INITIALIZED

Referenced service not initialized.

TCS_CMD_INSUFFICIENT_PARAMETERS

Speech command with insufficient parameters.

TCS_CMD_ASR_RULES_SETFAILED

Speech command SetRuleState failed.

TCS_CMD_ASR_INSTANTIATION_FAILURE

Speech engine could not be instantiated.

TCS_CMD_ASR_STOP_FAILURE

Speech engine could not be stopped.

TCS_CMD_ASR_START_FAILURE

Speech engine could not be started.

TCS_CMD_ASR_PAUSE_FAILURE

Speech engine could not be paused.

TCS_CMD_TTS_STATUS_REQUEST_FAILURE

Speech engine's status request failed.

TCS_CMD_TTS_STOP_REQUEST_FAILURE

Speech engine's stop request failed.

TCS_CMD_TTS_SYNTH_ERROR

Generic speech synthesis related error.

TCS_CMD_TTS_SYNTH_ERROR_CONFIGURATION_DETAILS

Speech synthesis configuration related error.

TCS_CMD_TTS_SYNTH_ERROR_CONFIGURATION_DETAILS_LANGUAGEID_MISSING

LanguageId is missing.

TCS_CMD_TTS_SYNTH_ERROR_CONFIGURATION_DETAILS_LANGUAGEID_NOTSUPPORTED

LanguageId is not supported.

TCS_CMD_TTS_SYNTH_ERROR_CONFIGURATION_DETAILS_INCOMPLETE

Speech synthesis configuration is incomplete.

TCS_CMD_TTS_SYNTH_ERROR_UTTERANCE_EMPTY

No utterance is specified.

TCS_CMD_TTS_SYNTH_ERROR_UTTERANCE_AND_PATH_EMPTY

No utterance or path is specified.

TCS_CMD_TTS_SYNTH_ERROR_SAPI_

Speech synthesis with error of underlying SAPI engine.

TCS_CMD_TTS_SYNTH_ERROR_AWSPOLLY_

Speech synthesis with error of underlying Amazon Polly engine.

TCS_CMD_AUDIO_PLAYBACK_START_FAILURE

Audio playback could not be started.

TCS_CMD_AUDIO_PLAYBACK_START_FAILURE_INVALIDFORMAT

Audio playback could not be started. Invalid audio format.

TCS_CMD_AUDIO_PLAYBACK_START_FAILURE_FILENOTFOUND

Audio playback could not be started.File not found on target system.