Synthesizer RESUME

The RESUME method from the client to the server tells a paused synthesizer resource to resume speaking.  

If a RESUME request is issued on a session with no active SPEAK request, the server will respond with a status-code of 402 "Method not valid in this state".  If a RESUME request is issued on a session with an active SPEAK request that is speaking (i.e., not paused), the server will respond with a status-code of 200 "Success".  If a SPEAK request was paused, the server will return an Active-Request-Id-List header field whose value contains the request-id of the SPEAK request that was resumed.



MRCPV1 RESUME Example:

   C->S:  SPEAK 543258 MRCP/1.0
Voice-gender:female
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

C->S: RESUME 543260 MRCP/1.0

S->C: MRCP/1.0 543260 200 COMPLETE
Active-Request-Id-List:543258

MRCPV2 RESUME Example:

   C->S: MRCP/2.0 ... SPEAK 543258
Channel-Identifier:32AECB23433802@speechsynth
Voice-gender:female
Prosody-volume:medium
Content-Type:application/ssml+xml
Content-Length:...

<?xml version="1.0"?>
<speak version="1.0"
xmlns="http://www.w3.org/2001/10/synthesis"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/2001/10/synthesis
http://www.w3.org/TR/speech-synthesis/synthesis.xsd"
xml:lang="en-US">
<p>
<s>You have 4 new messages.</s>
<s>The first is from Stephanie Williams and arrived at
<break/>
<say-as interpret-as="vxml:time">0342p</say-as>.</s>
<s>The subject is
<prosody rate="0.8">ski trip</prosody></s>
</p>
</speak>

S->C: MRCP/2.0 ... 543258 200 IN-PROGRESS@speechsynth
Channel-Identifier:32AECB23433802
Speech-Marker:timestamp=857206027059

C->S: MRCP/2.0 ... PAUSE 543259
Channel-Identifier:32AECB23433802@speechsynth

S->C: MRCP/2.0 ... 543259 200 COMPLETE
Channel-Identifier:32AECB23433802@speechsynth
Active-Request-Id-List:543258

C->S: MRCP/2.0 ... RESUME 543260
Channel-Identifier:32AECB23433802@speechsynth

S->C: MRCP/2.0 ... 543260 200 COMPLETE
Channel-Identifier:32AECB23433802@speechsynth
Active-Request-Id-List:543258

Was this article helpful?