Synthesizer PAUSE
The PAUSE method from the client to the server tells the synthesizer resource to pause speech output if it is speaking something.
If a PAUSE method is issued on a session when a SPEAK is not active, the server will respond with a status-code of 402 "Method not valid in this state". If a PAUSE method is issued on a session when a SPEAK is active and is already paused, the server will respond with a status-code of 200 "Success".
If a SPEAK request was active, the server will return an Active-Request-Id-List header field whose value contains the request-id of the SPEAK request that was paused.
MRCPV1 PAUSE Example:
C->S: SPEAK 543258 MRCP/1.0 Voice-gender:neutral Prosody-volume:medium Content-Type:application/synthesis+ssml Content-Length:104 <?xml version="1.0"?> <speak> <paragraph> <sentence>You have 4 new messages.</sentence> <sentence>The first is from <say-as type="name">Stephanie Williams</say-as> and arrived at <break/> <say-as type="time">3:45pm</say-as>.</sentence> <sentence>The subject is <prosody rate="0.8">ski trip</prosody></sentence> </paragraph> </speak> S->C: MRCP/1.0 543258 200 IN-PROGRESS C->S: PAUSE 543259 MRCP/1.0 S->C: MRCP/1.0 543259 200 COMPLETE Active-Request-Id-List:543258 |
MRCPV2 PAUSE Example:
C->S: MRCP/2.0 ... SPEAK 543258 |