<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 métro 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 ergänzen 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 code.