[mary-users] mary process with http error 400

Joshua Reetz josh100288 at jrtechsupport.com
Wed Jun 30 22:10:58 CEST 2010


Hi Robert,
As far as I know OpenMARY does not support MP3. The only formats it 
supports is WAV, AU, and AIFF format. If you want the file to be in an 
MP3 format you would have to do some external processing on the file.

Josh

On 06/30/2010 01:53 PM, robert.email at gmx.de wrote:
> Hello guys,
>
> i'm new with mary 4.0 and today i want to make my first steps with it. My mary-server is running and is working fine.
>
> After that i want to code some lines of code to see mary in action. But when my mary-client calls the process method, i get an error.
>
> My code looks like the following:
>
> MaryClient mary = MaryClient.getMaryClient(new Address("localhost", 59125));
> String text = "Hello John Smith, it is time to change to winter tires.";
> String locale = "en-US";
> String inputType = "TEXT";
> String outputType = "AUDIO";
> String audioType = "MP3";
> String defaultVoiceName = null;
> ByteArrayOutputStream baos = new ByteArrayOutputStream();
>
> mary.process(text, inputType, outputType, locale, audioType, defaultVoiceName, baos);
>
>
> And my Eclipse console show me the following error:
>
> java.io.IOException: Server returned HTTP response code: 400 for URL: http://localhost:59125/process
>   at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1313)
>        at marytts.client.http.MaryHttpClient.requestInputStream(MaryHttpClient.java:430)
>        at marytts.client.http.MaryHttpClient._process(MaryHttpClient.java:476)
>        at marytts.client.MaryClient.process(MaryClient.java:654)
>        at marytts.client.MaryClient.process(MaryClient.java:661)
>
>
>
> Could anyone help me?
> Is it possible to get an MP3 with this method?
>
> Thanks for your help.
> Regards,
> Robert
>    



More information about the Mary-users mailing list