Hi, <br><div class="gmail_quote"><div>I am running into the following error when using cmu-rms-hsmm and cmu-bdl-hsmm voices with MaryTTS 5.0. </div><div><br></div><div><i>Unsupported conversion: PCM_SIGNED 48000.0 Hz, 16 bit, mono, 2 bytes/frame, little-endian from PCM_SIGNED 16000.0 Hz, 16 bit, mono, 2 bytes/frame, little-endian</i></div>

<div><br></div><div>cmu-slt-hsmm is working fine, though. I am using voice-cmu-bdl-hsmm-5.0-SNAPSHOT.jar and voice-cmu-rms-hsmm-5.0-SNAPSHOT.jar that I downloaded from <a href="http://mary.dfki.de/download/5.0-SNAPSHOT/" target="_blank">http://mary.dfki.de/download/5.0-SNAPSHOT/</a></div>

<div><br></div><div>The source code is below.</div><div><br></div><div><div>import java.util.Locale;</div><div><br></div><div>import javax.sound.sampled.*;</div><div><br></div><div>import marytts.LocalMaryInterface;</div>

<div>import marytts.util.data.audio.MaryAudioUtils;</div><div>public class Test {</div><div><span style="white-space:pre-wrap">        </span></div><div><span style="white-space:pre-wrap">        </span>public static void main(String[] args) {</div>

<div><span style="white-space:pre-wrap">                </span>try {</div><div><span style="white-space:pre-wrap">                        </span>LocalMaryInterface marytts = new LocalMaryInterface();</div><div><span style="white-space:pre-wrap">                        </span>marytts.setLocale(Locale.US);</div>

<div><span style="white-space:pre-wrap">                        </span>//marytts.setVoice(&quot;cmu-slt-hsmm&quot;);</div><div><span style="white-space:pre-wrap">                        </span>marytts.setVoice(&quot;cmu-rms-hsmm&quot;);</div>
<div><span style="white-space:pre-wrap">                        </span>//marytts.setVoice(&quot;cmu-bdl-hsmm&quot;);</div><div><span style="white-space:pre-wrap">                        </span></div><div><span style="white-space:pre-wrap">                        </span>AudioInputStream audio = marytts.generateAudio(&quot;Hello World!&quot;);</div>

<div><span style="white-space:pre-wrap">                        </span>MaryAudioUtils.writeWavFile(MaryAudioUtils.getSamplesAsDoubleArray(audio), &quot;thisIsMyText.wav&quot;, audio.getFormat());</div><div><span style="white-space:pre-wrap">                        </span></div>

<div><span style="white-space:pre-wrap">                </span>} catch (Exception e) {</div><div><span style="white-space:pre-wrap">                        </span></div><div><span style="white-space:pre-wrap">                        </span>e.printStackTrace();</div>
<div><span style="white-space:pre-wrap">                </span>}</div><div><span style="white-space:pre-wrap">        </span>}</div><div>}</div></div><div><br></div><div>The complete stack trace is below.</div>
<div><br></div><div><div>marytts.exceptions.SynthesisException: cannot process</div><div><span style="white-space:pre-wrap">        </span>at marytts.LocalMaryInterface.process(LocalMaryInterface.java:378)</div>
<div><span style="white-space:pre-wrap">        </span>at marytts.LocalMaryInterface.generateAudio(LocalMaryInterface.java:306)</div><div><span style="white-space:pre-wrap">        </span>at Test.main(Test.java:17)</div>
<div>Caused by: java.lang.Exception: Module Synthesis: Problem processing the data.</div><div><span style="white-space:pre-wrap">        </span>at marytts.server.Request.processOneChunk(Request.java:551)</div><div>
<span style="white-space:pre-wrap">        </span>at marytts.server.Request.processOrLookupOneChunk(Request.java:389)</div><div><span style="white-space:pre-wrap">        </span>at marytts.server.Request.process(Request.java:336)</div>

<div><span style="white-space:pre-wrap">        </span>at marytts.LocalMaryInterface.process(LocalMaryInterface.java:376)</div><div><span style="white-space:pre-wrap">        </span>... 2 more</div><div>
Caused by: javax.sound.sampled.UnsupportedAudioFileException: Conversion from audio format PCM_SIGNED 16000.0 Hz, 16 bit, mono, 2 bytes/frame, little-endian to requested audio format PCM_SIGNED 48000.0 Hz, 16 bit, mono, 2 bytes/frame, little-endian not supported.</div>

<div>Unsupported conversion: PCM_SIGNED 48000.0 Hz, 16 bit, mono, 2 bytes/frame, little-endian from PCM_SIGNED 16000.0 Hz, 16 bit, mono, 2 bytes/frame, little-endian</div><div><span style="white-space:pre-wrap">        </span>at marytts.modules.Synthesis.synthesizeOneSection(Synthesis.java:288)</div>

<div><span style="white-space:pre-wrap">        </span>at marytts.modules.Synthesis.process(Synthesis.java:232)</div><div><span style="white-space:pre-wrap">        </span>at marytts.server.Request.processOneChunk(Request.java:549)</div>

<div><span style="white-space:pre-wrap">        </span>... 5 more</div></div><div><br></div><div>Please advise. Thanks in advance for your help.</div><div><br></div><div>Best Regards,</div><div>Sri</div>
</div><br>