FB_TextToSpeech
Text to Speech function block.
Syntax
Definition:
FUNCTION_BLOCK FB_TextToSpeech
VAR_INPUT
    bSpeak               : BOOL;
    sUtterance           : STRING;
    nConfigurationId     : UINT;
    nLanguageId          : UINT;
END_VAR
VAR_OUTPUT
    bBusy                : BOOL;
    bError               : BOOL;
    nErrorId             : ETcsSpeechCommandExitCode;
    nLastCommandExitCode : UINT;
    nPlaybackPosition    : ULINT;
    nPlaybackTotal       : ULINT;
END_VAR
 Inputs
Name  | Type  | Description  | 
|---|---|---|
bSpeak  | BOOL  | Rising edge starts a speech command.  | 
sUtterance  | STRING  | Utterance for the speech command  | 
nConfigurationId  | UINT  | ConfigurationID to be used for output (see TcSpeech Configurator)  | 
nLanguageId  | UINT  | LanguageId which is to be used. '0' for configured default language.  | 
 Outputs
Name  | Type  | Description  | 
|---|---|---|
bBusy  | BOOL  | Function block is busy.  | 
bError  | BOOL  | Function block is in error state.  | 
nErrorId  | ErrorId, which indicates the exact reason for the error.  | |
nLastCommandExitCode  | UINT  | Return value of the last call.  | 
nPlaybackPosition  | ULINT  | Current position of the speech output.  | 
nPlaybackTotal  | ULINT  | Total length of the speech output.  | 
 Methods
Name  | Description  | 
|---|---|
Method to specify a different AmsNetAdr for the TcSpeech service. Only needs to be called up once.  | 
Required License
TC3 Speech