Menu

sox command

Help
viviane
2008-04-03
2012-09-22
  • viviane

    viviane - 2008-04-03

    Can someone tell me which sox command should I use in order to convert a list of wav audio files to raw?
    I need to use it in sphinx4..

     
    • Nickolay V. Shmyrev

      sphinx4 requires files in mswav format, not raw files. The only requirement for them is to have proper sample rate. You can convert sample rate with sox using the following script:

      for f in cat files.list; do sox $f -r 16000 $f.new.wav; mv $f.new.wav $f; done

      where files.list contains the list of files you need to convert.

       
    • viviane

      viviane - 2008-04-03

      Or is there anyway I could use my wav audio files directly to run performance tests at sphinx 4?

       
      • Nickolay V. Shmyrev

        Sure, you can use wav files. First of all think a bit, then write a code based on demo.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.