boolean RFSay(BSTR pszPhrase, short nTtsFlags);
Function RFSay(pszPhrase As String, nTtsFlags As Integer) As Boolean
Says or spells a phrase to the user using a TTS engine.
Return value
True=successful, False=error, RF link lost.
Parameters
pszPhrase
The phrase that will be said or spelled to the user.
nTtsFlags
Can be one of the following constants:
Constant | Description |
---|---|
WLSPELL | The TTS engine will spell the phrase. |
WLSPEECH | The TTS engine will say the phrase |
WLSAY | Forces the phrases to be sent to the RF terminal. |
Remarks
The phrases are temporarily stored in the server, then sent at once when
needed: by any input function or forced by WLSAY constant in the RFSay
function.
The sum of the phrases length can't exceed 500 characters, if the sum exceeds
500 characters, all the phrases are erased and replaced by the phrase passed as
parameter.
The client must be configured to use the TTS engine in order to use this method.
The field '_VOICE/UseTts' must be set to 'Yes' in the
configuration file, to enable the TTS engine.
Example
wsRfIo.RFSay "Operation", WLSPEECH
wsRfIo.RFSay "AF45X", WLSPELL + WLSAY