wiki:UsingMaryTTS

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

--

^ElckerlycDocumentation?

Using Mary TTS

You can include MaryXML speech commands by using the BMLT description level extension.

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>

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