p Command Packet / p Command Response Packet
The p command packet and p command response packet are paired concepts, but the p command response packet is returned only when an error occurs on the server side. As long as no p command response packet indicating an error is returned, the client can continue sending voice data using p command packets as needed.
p Command Packet
Sends voice data.
Format
Type: BINARY
p<audio_data>
<audio_data> is the voice data in the audio format specified by the s command at the start of the session. This voice data is prefixed with 0x70 (ASCII code for 'p') and sent as a binary frame.
The speech recognition server processes the received voice data sequentially, detects the start and end of utterances, and returns real-time interim and final recognition results for each utterance segment. The speech recognition server continues to process the received voice data and return results until it receives an e command packet from the client or until a session timeout set on the server side occurs.
p Command Response Packet
Sent from the server to the client in response to the p command.
Format
Type: TEXT
Response Packet on Success
There is no specific response indicating successful transmission.
Response Packet on Transmission Failure
p <error_message>
If the server fails to process the p command, an error message is returned after 'p' separated by a single space.
Error Messages
Client Errors
These are errors originating from the client. Please remove the cause and retry from the s
command request.
Error Message | Description |
---|---|
p received unsupported audio format | The sent voice data is in an unsupported audio format. Please check the audio format specified in the s command and the data sent with the p command. |
Errors Due to Limitations
These occur when limitations are violated. Please retry from the s
command request.
Error Message | Description |
---|---|
p can't feed audio data to recognizer server | Voice data was sent when the speech recognition server was not in a state to receive audio. This occurs when the forced disconnection time due to non-speech intervals limitation is exceeded. It can also occur rarely due to congestion in the underlying system. |
p session timeout occurred | A session timeout has occurred. This happens when the maximum session time limitation is exceeded. The server has initiated the disconnection process. |