This discussion is archived
0 Replies Latest reply: Nov 8, 2010 11:57 AM by 804900 RSS

JSML tags not processed by synthesiser

804900 Newbie
Currently Being Moderated
Hello,

I am writing a TTS system, and am applying prosody changes through JSML. My classes implement Speakable, the XML is well formed, and there are no compiler errors however any additional tags are ignored by the synthesiser and the text spoken the same as if speakPlainText() were called instead.

a snippet of code is as follows:
//following text is what is returned by get JSMLText()
String text=("<jsml> <prosody rate=\"300\">Text at 300 words per minute</prosody> </jsml> ");

//code used to play the text
        EngineList syns = Central.availableSynthesizers(null);
        SynthesizerModeDesc synDesc;

        final SynthesizerModeDesc desc = (SynthesizerModeDesc) syns.elementAt(smde);
        synDesc = desc;
        synth = Central.createSynthesizer(synDesc);
        synth.allocate();

            synth.resume();
            synth.speak(new JSMLExample(), listener);
            synth.waitEngineState(Synthesizer.QUEUE_EMPTY);
            System.out.println("spoken");
            synth.deallocate();
is anyone else having this problem? or is there something I am missing out of my code?

Many thanks,
Fiona

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points