[mary-users] mp3 example

Spencer Lord spencer at spokentech.com
Sun Nov 14 01:06:54 CET 2010


Hi Ingmar,

Thanks for the reply.

When you say you abandoned the tritonius solution  with Mary 4.0, do you
mean that you stopped supporting and testing it -- but it may still work
with some tweaks perhaps.  Or do you mean you know for sure it will not
work?

Thanks for the suggestion regarding piping to a converter.  Maybe I can do
something along those lines.  I do prefer the old functionality that allowed
you to stream mp3 directly from mary server .  If it would not be too hard
for me to make tritonius solution work with 4.0, i'd prefer doing that work.

have you considered some form of integration with xuggler.  It does have the
same cross-platform issues as tritonius, but supports many codecs.

Thanks again,
Spencer

On Mon, Nov 8, 2010 at 1:46 AM, Ingmar Steiner <ingmar.steiner at dfki.de>wrote:

> Dear Spencer,
>
> we used to support the tritonus MP3 encoder, but cross-platform compilation
> issues forced us to abandon it in Mary 4.0, so there is currently no support
> for MP3 output in Mary.
>
> You can of course use anything installed in your system to convert to MP3,
> e.g.
>
> > $ curl '
> http://localhost:59125/process?INPUT_TEXT=Hello+world&INPUT_TYPE=TEXT&OUTPUT_TYPE=AUDIO&LOCALE=en_US&AUDIO=WAVE_FILE'
> | lame - > hello.mp3
>
>
> We have an open call for volunteers to contribute a pure java audio encoder
> or cross-platform LGPL-compatible tie-in:
> http://mary.opendfki.de/ticket/294 =)
>
> Best wishes,
>
> /**
>  * Ingmar Steiner
>  * Researcher, Language Technology
>  * German Research Center for Artificial Intelligence
>  *
>  * Campus D3 1 +1.18
>  * D-66123 Saarbrücken
>  * Germany
>  * Phone: ++49-681-857-75-5263 (NEW!)
>  * Email: ingmar.steiner at dfki.de
>  *
>  * Deutsches Forschungszentrum für Künstliche Intelligenz GmbH
>  * Trippstadter Straße 122, D-67663 Kaiserslautern, Germany
>  * Geschäftsführung:
>  * Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster (Vorsitzender)
>  * Dr. Walter Olthoff
>  * Vorsitzender des Aufsichtsrats:
>  * Prof. Dr. h.c. Hans A. Aukes
>  * Amtsgericht Kaiserslautern, HRB 2313
>  */
>
> On 7 Nov 2010, at 04:34, Spencer Lord wrote:
>
> > Hi,
> >
> > I can get a wav file with the following code.   Is it possible to do
> something similar to produce an mp3 file?   is there any sample code that
> does mp3 encoding that you can point me towards?
> >
> >  public void testWave() throws Exception {
> >         Voice voice = Voice.getDefaultVoice(Locale.ENGLISH);
> >         AudioFormat af = voice.dbAudioFormat();
> >         AudioFileFormat aff = new
> AudioFileFormat(AudioFileFormat.Type.WAVE,
> >             af, AudioSystem.NOT_SPECIFIED);
> >         Request r = new Request(MaryDataType.get("TEXT"),
> MaryDataType.get("AUDIO"), Locale.US,
> >             voice, "", "", 1, aff);
> >         MaryData md = new MaryData(MaryDataType.get("TEXT"), Locale.US);
> >         md.setPlainText("This is a test.");
> >         r.setInputData(md);
> >         r.process();
> >         File f=new File("file.wav");
> >         FileOutputStream fop=new FileOutputStream(f);
> >         r.writeOutputData(fop);
> >         fop.close();
> >     }
> >
> > Spencer
> >
> > ps:  Openmary works very nicely.  Thanks.
> > _______________________________________________
> > Mary-users mailing list
> > Mary-users at dfki.de
> > http://www.dfki.de/mailman/cgi-bin/listinfo/mary-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.dfki.de/pipermail/mary-users/attachments/20101113/5e1b1d7b/attachment.htm 


More information about the Mary-users mailing list