Resample is a small commandline application for samplerate conversion and playback of audio data.
open sound system (OSS) to run.
resample takes it's input from standard input and sends the resampled sound to the soundcard. It can convert from any samplerate to any other samplerate, and supports up to 6 channels (see resample --help for options). It is optimixed for converting ftom 44.1kHz to 48kHz, and may give a small frequency offset for other combinations.
Below is an example of how to use resample with cdparanoia to rip a track from a audio CD in realtime and play it at 48kHz using the soundcard:
cdparanoia -p -Z -Y -r -e -q 1 - | resample -q