wiki:UsingMaryTTS

Version 8 (modified by dennisr, 8 years ago) (diff)

--

^ElckerlycDocumentation?

Using Mary TTS

You can include MaryXML speech commands by using the BMLT description level extension. Elckerlyc supports three description level extensions for using MaryXML in <Speech> behaviors. You can control the exact pronunciation of Speech elements by directly using Mary commands in MARYRAWXML, WORDS, and ALLOPHONES format. Other formats are quite easy to implement too, on request.

This document describes:

  • how to use these formats in BML requests
  • how to easily obtain versions of speech in the various formats, and how to add other information such as prosody or pauses.

A short example

<bml id="bml1">
  <speech id="speech1" start="5">   	
    <text>I'm speaking BML.</text>    	
    <description priority="10" type="maryxml">
      <maryxml xmlns="http://mary.dfki.de/2002/MaryXML">
      I'm speaking BML.
      </maryxml>
    </description>  	
  </speech>   
</bml>

Obtaining MaryTTS

Clearly, you can only use MaryXML speech if you have installed MaryTTS and are using one of the MaryTTS voices in your configuration of your virtual human (i.e., VirtualHumanSpec?). Downloads and documentation are found at the   MaryTTS web page.

In order to integrate speech/prosody features into a BML script, use MaryXML: start Maryserver c:\hmisvn\MaryTTS\bin\maryserver.bat start MaryEditor? in browser window: 127.0.0.1:59125 Select the proper voice First window: change type to text and insert the text you want to change Second window: change type to marywords Change first window type to marywords and copy-paste content of second window to first Second window: change type to audio Copy paste everything in between <bml><speech><text></text> <description priority=”1” type=”marywords”>

</description> </speech></bml>

  • delete: <?xml … utf-8>, <voice=> and </voice>

For short breaks use <boundary breakindex=”1-6”/> For changing wordlength use <prosody rate=”%”></prosody>

User contributions