Berkeley CSUA MOTD:Entry 43372
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/07/09 [General] UID:1000 Activity:popular
7/9     

2006/6/13-15 [Computer/SW/Languages/Java] UID:43372 Activity:nil
6/13    I need a way to convert uLaw WAV to PCM WAV in Java.  The tritonus
        library does not offer this.  Anyone know a library that does?  I'd
        rather not reinvent the wheel.
        \_ IIRC JavaSound can handle conversion of mu-law to PCM. Is there
           a reason to do this in Java? If you just need to convert, can you
           just exec sox to do the conversion? - ciyer
        \_ OK, It now seems that while the Tritonus Javadoc says it can't do it
           the code tells a different story.  The problem is that when I
           request a uLaw to PCM converter, the aLaw converter claims it is
           capable, so gets picked, then fails.  When I force it to use the
           uLaw converter, Tritonus works.  Execing sox would have been a
           clunky but usable workaround.  Thanks -OP.