TextTalker TANGO Device Server
Device Commands Description
TextTalker Class
Revision: - Author: bourtemb
1 - Init
- Description: This commands re-initialise a device keeping the same network connection.
After an Init command executed on a device, it is not necessary for client to re-connect to the device.
This command first calls the device delete_device() method and then execute its init_device() method.
For C++ device server, all the memory allocated in the nit_device() method must be freed in the delete_device() method.
The language device desctructor automatically calls the delete_device() method.
 
- Argin:
DEV_VOID
: none.
 
- Argout:
DEV_VOID
: none.
 
- Command allowed for:
 
2 - State
- Description: This command gets the device state (stored in its device_state data member) and returns it to the caller.
 
- Argin:
DEV_VOID
: none.
 
- Argout:
DEV_STATE
: State Code
 
- Command allowed for:
 
3 - Status
- Description: This command gets the device status (stored in its device_status data member) and returns it to the caller.
 
- Argin:
DEV_VOID
: none.
 
- Argout:
CONST_DEV_STRING
: Status description
 
- Command allowed for:
 
4 - DevWrite
- Description: Write a message into the device server's speech buffer.
 
- Argin:
DEV_STRING
: The message
 
- Argout:
DEV_VOID
: None
 
- Command allowed for:
 
5 - DevTalk
- Description: Triggers the server to talk the actual speech buffer content.
 
- Argin:
DEV_STRING
: The message
 
- Argout:
DEV_VOID
: None
 
- Command allowed for:
 
6 - DevSetParam
- Description: Set some talkers's configuration parameters (number of repeated talks and time of pause).
 
- Argin:
DEVVAR_LONGARRAY
: Array of configuration parameters : argin[0] -> number of repeated talks,argin[1] -> number of msec of pause between 2 repeated talks.
 
- Argout:
DEV_VOID
: None
 
- Command allowed for:
 
7 - DevStop
- Description: Stop talking the actual speech buffer content.
 
- Argin:
DEV_VOID
: None
 
- Argout:
DEV_VOID
: None
 
- Command allowed for:
 
8 - DevRead
- Description: Read back the actual message.
 
- Argin:
DEV_VOID
: None
 
- Argout:
DEV_STRING
: The actual message buffered in the talking server
 
- Command allowed for:
 
9 - DevClear
- Description: Clears the speech buffer of the talk server.
 
- Argin:
DEV_VOID
: None
 
- Argout:
DEV_VOID
: None
 
- Command allowed for:
 
10 - DevReadParam
- Description: Read talker's configuration parameters.
(number of repeated loops and time of pause between 2 repeated speaks
 
- Argin:
DEV_VOID
: None
 
- Argout:
DEVVAR_LONGARRAY
: Array of configuration parameters : argin[0] -> number of repeated talks,argin[1] -> number of msec of pause between 2 repeated talks.
 
- Command allowed for:
 
11 - DevRun
- Description: Start loop on speech buffer contents.
 
- Argin:
DEV_VOID
: None
 
- Argout:
DEV_VOID
: None
 
- Command allowed for:
 
12 - Pause
- Description: Pauses the voice and closes the output device,
allowing access to pending speak requests from other voices.
Calling Pause while the voice is not speaking increments the pause count
and will put the voice into a paused state until Resume is called the same number
of times.
The voice maintains a pause count, so each call to pause must be balanced
with a corresponding call to Resume.
 
- Argin:
DEV_VOID
: None
 
- Argout:
DEV_VOID
: None
 
- Command allowed for:
 
13 - Resume
- Description: Resumes rendering.
Decrements the pause count (which is incremented by Pause)
if the voice is currently paused.
If the pause count hits zero, Resume attempts to reclaim the output device and resumes rendering.
This method has no effect if the voice was not in a paused state.
 
- Argin:
DEV_VOID
: None
 
- Argout:
DEV_VOID
: None
 
- Command allowed for:
 
14 - WriteWelcomeText
- Description: To change the welcome text which will be spoken at the initialization of the server.
 
- Argin:
DEV_STRING
: The welcome text
 
- Argout:
DEV_VOID
: None
 
- Command allowed for:
 
15 - ReadWelcomeText
- Description: Read the current welcome text which is spoken at the initialization of the server.
 
- Argin:
DEV_VOID
: None
 
- Argout:
DEV_STRING
: The current welcome text
 
- Command allowed for:
 
ESRF - Software Engineering Group