[mary-users] mary process with http error 400
robert.email at gmx.de
robert.email at gmx.de
Wed Jun 30 21:53:47 CEST 2010
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
--
GMX DSL: Internet-, Telefon- und Handy-Flat ab 19,99 EUR/mtl.
Bis zu 150 EUR Startguthaben inklusive! http://portal.gmx.net/de/go/dsl
More information about the Mary-users
mailing list