edu.columbia.cs.util
Class AudioConverter

java.lang.Object
  |
  +--edu.columbia.cs.util.AudioConverter

public class AudioConverter
extends java.lang.Object

Takes a file and a mimetype and converts it to a WAV file playable by TellMe. Supports WAV, AU, AIFF, and MP3 file formats.


Constructor Summary
AudioConverter()
           
 
Method Summary
 void convertAudio(java.lang.String srcfile, java.lang.String destfile, java.lang.String mimetype)
          Makes a JNI class to /usr/bin/sox.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AudioConverter

public AudioConverter()
Method Detail

convertAudio

public void convertAudio(java.lang.String srcfile,
                         java.lang.String destfile,
                         java.lang.String mimetype)
Makes a JNI class to /usr/bin/sox.
Parameters:
srcfile - the name of the file to convert
destfile - the name of the file to output
mimetype - the mimetype of the srcfile

main

public static void main(java.lang.String[] args)