1

<mark> element informs that reading went on to some point. But is there a way we could read the prompt again from the specified position returned by mark (name) id?

It could be useful in such a scenario: we are reading a long text. Then the user commands: PAUSE. We stop. Then the user would say "Go on". And we continue to read the prompt from the last position.

IS that possible at all?

And I would ask yet another question. No matter with the usage of SSML or not: How to make it work - pause the prompt reading and then continue from the position where we stopped? Pause means "take full control over that pause", so that we could continue whenever we wanted. Dynamically.

EugeneP
  • 11,783
  • 32
  • 96
  • 142

1 Answers1

2

Mark is normally meant to be used at normal breakpoints. You may find it useful to place them at paragraph breaks or maybe at sentence breaks. As long as your application keeps track of where the mark ids are in your source text, you should be able to restart audio in that area.

Be aware that to implement mark, most platforms break the text and submit the pieces between mark entries to a rendering layer, then play the clip, one at a time. Therefore, you might see pauses as the platform crosses a mark.

It is also worth noting that only a subset of VoiceXML platforms implement mark so the availability of mark or differences in behavior could become an issue if you need to run on additional platforms.

Jim Rush
  • 4,143
  • 3
  • 25
  • 27
  • That is not as easy as it sounds. I do have mark id but I cannot see any reference how to use it to start playing prompt from that point. At least, w3 standards [VoiceXML & SSML] do not explain that. – EugeneP Nov 27 '09 at 12:47
  • 1
    You would have to carve up the text or audio pieces. VoiceXML doesn't have any type of continue at within an audio prompt or text playback. VoiceXML 3.0 will have some functionality within the media resource, but even that may not meet your needs. – Jim Rush Nov 27 '09 at 13:48
  • OK, thanks. I see. I must have it by hand. Cut the long text into pieces and analyze mark id, then generate new vxml document that contains prompt text from the last point. – EugeneP Dec 01 '09 at 11:33
  • I like that idea. Maybe chop up by grammatical phrase as human speakers often complete current phrase when interrupted. Also, a data function could do this given annotated text and a start parameter, right? – David J. Liszewski Jan 21 '11 at 14:27