Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.
#!/usr/local/bin/tclsh

package require sound

sound::sound snd

set file_list [glob *.mp3]

foreach file $file_list {
 snd read $file
 snd convert -format lin16 -channels 1 -frequency 16000
 snd write [file rootname $file].wav
 }

==========================================================================

files total 275456 KB

==========================================================================

share|improve this question
    
Please post the command you issued, the location of your mp3 files and the exact error message. –  Frantique Dec 18 '12 at 9:10
    
@Frantique files located at ~/desktop/vectors and command issued wish rateconvs.tcl {rateconvs.tcl tcl script located in same directory as mp3 files} error just show segmentation fault –  Dave Dec 18 '12 at 13:59
    
Really hard to debug, it works for me... You have rights to write in that directory? –  Frantique Dec 19 '12 at 11:05
    
@Frantique Yes , i have write access. –  Dave Dec 19 '12 at 14:06
    
Try to use some debugging data to get more info about the crash. How? Take a look here: wiki.tcl.tk/473 –  Frantique Dec 20 '12 at 8:06
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.