1.5 The <recprompt> element

The <recprompt> element holds the prompt item. It holds one or two media items, which will be prompted to the user.

Example: Simplke text prompt.

     <recprompt>
        <mediaitem>Welcome to the SpeechRecorder Demo Script.</mediaitem>
     </recprompt>

All text and image media types can be combined with audio prompts. Such a combined prompt will display the text or image and play an audio prompt simultaniously. In the script editor press Item ¿ Add extra media item to add a second media item. In the prompt item viewer a new tab ’Media 02’ will appear. Apply the audio file to the new media item.

Examples for combined audio prompts in XML script source:

     <recprompt>
        <mediaitem>Welcome to the SpeechRecorder Demo Script.</mediaitem>
        <mediaitem mimetype="audio/x-wave" src="resources/audio/welcome.wav"/>
     </recprompt>
     <recprompt>
        <mediaitem mimetype="image/svg+xml src="resources/image/welcome.xml>
        <mediaitem mimetype="audio/x-wave" src="resources/audio/wav/welcome.wav"/>
     </recprompt>