in reply to On-the-fly Wav to mp3 encoding

BTW, you'd probably be much better off converting to mp3 offline and then using that, rather then reconverting over and over, which is a waste of CPU. For that matter, you'd probably be better off converting everything to mp3 and then converting to wav on the fly, if and when needed. Much less disk space and mp3->wav is a much less cpu-intensive process.


Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).

Replies are listed 'Best First'.
Re: Re: On-the-fly Wav to mp3 encoding
by LAI (Hermit) on Nov 28, 2002 at 22:16 UTC

    See, that crossed my mind... but I figured it made too much sense and therefore was not viable :o)

    Yes, that probably is what I will do if nothing else seems to work, although half the point of the exercise was to learn how to do something new. Oh, well.


    LAI
    :eof

      ...although half the point of the exercise was to learn how to do something new.

      Get a file with stupid quotes. Use MBROLA (http://tcts.fpms.ac.be/synthesis/) to produce a Text-To-Speech WAV file, using a different voice every time. Mix the file with your existing file. Encode as MP3. Stream.

      You don't have to solve easy tasks in a complex way. There are enough challenges out there. You just need to look for them.

      And for someone who pays you to do it.