<!ELEMENT mediaitem (#PCDATA)*> <!ATTLIST mediaitem mimetype CDATA #IMPLIED charset CDATA #IMPLIED src CDATA #IMPLIED alt CDATA #IMPLIED autoplay CDATA #IMPLIED modal CDATA #IMPLIED width CDATA #IMPLIED height CDATA #IMPLIED volume CDATA #IMPLIED annotationTemplate CDATA #IMPLIED languageISO639code CDATA #IMPLIED countryISO3166code CDATA #IMPLIED > |
All attributes are optional.
mimetype specifies the type of prompt item. For image and audio prompts, this attribute provides a hint for displaying the prompt item – image items are drawn on the screen, audio is played via the system speakers or a headphone. Default MIME type is text/plain. charset Charset of external text prompt file. The encoding of prompt text embedded in teh recording script is inherited from the encoding of the entire recording script which is by default UTF-8. src is a file name or a URL from which a prompt item is retrieved.
alt contains the text that is displayed if the item cannot be retrieved from the external source.
autoplay, modal and volume apply only to time-dependent prompt items, i.e. audio clips. If autoplay is set to yes the clip plays automatically as soon as the item is displayed, otherwise the user has to start playback explicitly. With modal set to yes item playback cannot be interrupted, and volume determines the audio volume for playback.
width and height specify the width and height in pixels of the image or video to display.
It is up to the recording script author to set the mediaitem attribute values to meaningful values. SpeechRecorder accepts the combinations given in table 1.7.
|
An audio <mediaitem> element without contents displays a generic symbol for audio playback. An audio <mediaitem> element combined with text or image media displays the text or image contents and plays back the audio.
<mediaitem mimetype="text/plain"> Welcome to the SpeechRecorder Demo Script. </mediaitem> |
This <mediaitem> element shows a formatted text loaded from a file:
<mediaitem mimetype="text/rtf" src="promptText.rtf" /> |
Note: RTF prompts only work on Windows operating systems.
This <mediaitem> element shows an image loaded from a relative (to the project directory) URL:
<mediaitem mimetype="image/jpeg" src="images/FelixWas.jpg" alt="Boy and washing machine" /> |
This <mediaitem> element shows an image loaded from a absolute URL:
<mediaitem mimetype="image/jpeg"
src="http://www.speechrecorder.org/prompts/images/FelixWas.jpg"
alt="Boy and washing machine" />
|
If you plan to use EMU-SDMS to annotate and analyze your recordings later you may mark a text media prompt item as annotation template. This means that the speaker is expected to read the prompt txt. If you export your project as an EMU-DB when the recordings are finished, the prompt text will appear in the TPL level of the exported database.
<recording itemcode="demo_031" postrecdelay="500" prerecdelay="2000" recduration="10000"> <recinstructions mimetype="text/plain">Lisez la phrase</recinstructions> <recprompt> <mediaitem annotationTemplate="true" languageISO639code="fr">A Paris il y a 14 lignes de mtro dont 9 traversent la Seine.</mediaitem> </recprompt> <reccomment> French sentence: In Paris there are 14 metro lines, 9 of which cross the Seine. </reccomment> </recording> |
If the expected spoken word(s) differ from the prompt a separate XML element ’annotationtemplate’ for the annotation template is required. For example:
<recording itemcode="demo_022" postrecdelay="500" prerecdelay="2000" recduration="10000"> <recinstructions mimetype="text/plain">Bitte ergnzen Sie</recinstructions> <recprompt> <mediaitem languageISO639code="de">Morgenstund hat ...</mediaitem> </recprompt> <annotationtemplate languageISO639code="de">Gold im Mund</annotationtemplate> </recording> |
Note: The optional attribute languageISO639code indicates the language of the template text as ISO639 code.