e Command Packet / e Command Response Packet
The e command packet and e command response packet form a pair. (*1) When you notify the server of the end of voice data transmission with the e command, the server returns an e command response packet.
If the e command response packet is a single character "e", the server's termination process has completed normally. If an error occurs during the server's termination process, an error message is returned after "e" with a single-byte space in between.
Note that between sending the e command packet and receiving the e command response packet, it is possible for U events and A events to be sent from the server. Client applications should continue to process U events and A events received from the server even during the period between sending the e command packet and receiving the e command response packet.
(*1) If no communication is detected for a certain period of time during communication with the client (no-communication timeout), an e command response packet that does not correspond to an e command packet is sent from the server to the client to notify the disconnection due to no-communication timeout. For details, please see the Error Messages section below.
e Command Packet
Ends the transmission of voice data.
Format
Type TEXT
e
To notify the speech recognition server of the end of voice data transmission, send "e". When the speech recognition server receives this command, it returns an e command response packet.
e Command Response Packet
This is returned from the server to the client in response to the e command.
Format
Type TEXT
Response Packet on Success
e
Response Packet on Transmission Failure
e <error_message>
If the server fails to process the termination upon receiving the e command, an error message is returned after "e" with a single-byte space in between.
Error Messages
Server Error
These are errors that may rarely occur due to infrastructure system failures, etc. The session has ended, so there is usually no problem. Please ignore them.
Error Message | Description |
---|---|
e can't stop feeding audio data to recognizer server | Failed to complete the process of sending voice data. |
Errors Due to Limitations
These occur when limitations are violated. Please retry from the s
command request.
Error Message | Description |
---|---|
e timeout occurred | A no-communication timeout occurred before starting the recognition process (while waiting for the s command packet). ** * ** |
e timeout occurred while recognizing audio data from client | A no-communication timeout occurred while receiving voice data from the client (while waiting for p or e command packets). ** * ** |
e session timeout occurred | A session timeout occurred. This occurs when the maximum session time in the limitations is exceeded. The server has initiated the disconnection process. |
* These e command response packets are special e command response packets that do not correspond to e command packets.