Get sox for the OpenPandora here: http://repo.openpandora.org/?page=detail&app=sox
If you install the pnd and run it once, then /mnt/utmp/sox/bin/ is created. You can reuse that directory until you reboot again (do not close the terminal that it opens, or copy bin include and lib to your directory).
A few different binaries are found there, let's focus on sox for now.
First, we open a terminal and we export two important variables the program needs:
export LD_LIBRARY_PATH=/mnt/utmp/sox/lib
export PATH="/mnt/utmp/sox/bin"
PATH
Then, we can run this command:
sox -q -t oss -c 1 /dev/adsp recording.mp3
It will write to recording.mp3. Use Control+C to cancel recording.
These settings will create a 48000 32kb mp3 file. Crisp, yet smaller than wav
Sox has many other tricks up its sleeve, for example:
sox -q -t oss -v 18.0 -c 1 /dev/adsp recording.mp3 trim 0 00:05 tempo 2
It will be quiet, use oss, amplify the sound 18 times, 1 channel (mono), read from adsp internal microphone with compression model 0 and write to recording.mp3 for 5 seconds only, and with twice the normal speed.
You can type "sox --help" or check this webpage for more effects: http://linux.about.com/od/commands/l/blcmdl1_sox.htm
I've written a small memo recorder you can use as a starting point, it is attached. If you rightclick on the desktop you can create a launcher for it.
In order to not write to the nand (bad!) create a symbolic link called "audio" in your homefolder to a directory on your card, like so:
ln -s /media/mycard/mydirectory ~/audio
For more recording related topics, see also:
Pandora Wiki: http://pandorawiki.org/Audio_system#Recording
Voice recording with arecord: http://boards.openpandora.org/index.php/topic/4471-voice-recorder/
If you install the pnd and run it once, then /mnt/utmp/sox/bin/ is created. You can reuse that directory until you reboot again (do not close the terminal that it opens, or copy bin include and lib to your directory).
A few different binaries are found there, let's focus on sox for now.
First, we open a terminal and we export two important variables the program needs:
export LD_LIBRARY_PATH=/mnt/utmp/sox/lib
export PATH="/mnt/utmp/sox/bin"
Then, we can run this command:
sox -q -t oss -c 1 /dev/adsp recording.mp3
It will write to recording.mp3. Use Control+C to cancel recording.
These settings will create a 48000 32kb mp3 file. Crisp, yet smaller than wav
Sox has many other tricks up its sleeve, for example:
sox -q -t oss -v 18.0 -c 1 /dev/adsp recording.mp3 trim 0 00:05 tempo 2
It will be quiet, use oss, amplify the sound 18 times, 1 channel (mono), read from adsp internal microphone with compression model 0 and write to recording.mp3 for 5 seconds only, and with twice the normal speed.
You can type "sox --help" or check this webpage for more effects: http://linux.about.com/od/commands/l/blcmdl1_sox.htm
I've written a small memo recorder you can use as a starting point, it is attached. If you rightclick on the desktop you can create a launcher for it.
In order to not write to the nand (bad!) create a symbolic link called "audio" in your homefolder to a directory on your card, like so:
ln -s /media/mycard/mydirectory ~/audio
For more recording related topics, see also:
Pandora Wiki: http://pandorawiki.org/Audio_system#Recording
Voice recording with arecord: http://boards.openpandora.org/index.php/topic/4471-voice-recorder/
Last edited by a moderator: