So I need to make a script that will be able to easily extract the first 10 seconds of audio from an audio file.
I found this on the web, after looking for "extract first 10 seconds of audio"
but it doesn't work, since it's for Ti.Media (whatever that is):
I want to extract the first 10 seconds of classical songs, and be able to recognize the composer and title in Anki. ^^
Anyone has any knowledge about scripts?
Cheers!
-Mesqueeb
I found this on the web, after looking for "extract first 10 seconds of audio"
but it doesn't work, since it's for Ti.Media (whatever that is):
Quote:var sound = Ti.Media.createSound({→ error: couldn't write the class name after this identifier.
sound: file,
duration: 10
});
I want to extract the first 10 seconds of classical songs, and be able to recognize the composer and title in Anki. ^^
Anyone has any knowledge about scripts?
Cheers!
-Mesqueeb
Edited: 2011-12-16, 3:39 am

ox-14.3.2 Mesqueeb$ ./sox 1.mp3 2.mp3 trim 0 10