Posts Tagged ‘audio’

Bash one-liner using sox to batch convert the sampling frequency of audio files

July 12, 2011

A bash one-liner to batch convert the sampling rate of WAV files using the SoX tool.  The example will resample *.wav files in the current directory to 8000Hz and place the output in an existing subdirectory called 8000Hz.

The one-liner below is overkill for this task, but the extra arguments provide a starting point for modification for related tasks.  The use of find/xargs should help the one-liner deal with very large numbers of audio files and filenames that contain whitespace.

Code


find . -maxdepth 1 -name '*.wav' -type f -print0 | xargs -0 -t -r -I {} sox {} -r 8000 8000Hz/{}

(more…)

Advertisements

Wiring a Shure PG30 Headset Microphone

March 15, 2011

I recently tried to rewire a Shure PG30 headset microphone so that it could be connected directly to a computer sound card via a stereo mini plug.  I had limited, but insufficient, success after some amateur tinkering.

(more…)

Creative Zen on Hardy Heron Ubuntu Linux

September 27, 2008

An upcoming trip to DC motivated me to search for ways to upload videos on my Creative Zen mp3 player.  While Gnomad2 is good for managing audio, it doesn’t yet handle video uploads.  All the applications referred to are available through the Synaptic package manager.

(more…)