To configure audio devices:
$ alsamixer $ pavucontrol
To hier voice from mic in speaker:
$ arecord | aplay $ arecord -f cd | aplay -f cd
To list of available devices:
$ aplay -l $ aplay -L $ arecord -l $ arecord -L $ pactl list
$ sudo apt-get install sox $ play -n synth sin 440 vol -40dB $ play -n synth 10 square 100-10000 synth sin fmod 100 vol -40dB
$ arecord out.wav $ arecord -f cd -t raw | oggenc -r -o out.ogg - $ arecord -f cd -t raw | lame -r - out.mp3 $ sox -t alsa default out.wav $ audacity &
$ sudo apt-get install alsa-tools-gui $ hdajackretask
See also:
$ sudo apt-get install ffmpeg
or:
$ sudo apt-get install sox
List of sox supported format: See sox(1).
List of ffmpeg supported format:
$ ffmpeg -formats
$ sox in.mp3 out.ogg $ sox in.ogg out.wav ... etc
$ flac -c -d $file.flac | lame -m j -q 0 -V 0 -s 44.1 - $file.mp3
$ mplayer -vo null -vc dummy -af resample=44100 -ao pcm:file=$file.wav $file.wma $ lame -m s $file.wav -o "$file.mp3 $ rm $file.wav
$ faad -o - $file.m4a | lame -V 0 - $file.mp3