Wednesday, January 23, 2013

Working with Pulse Audio with Alsa

After Integration/Installation of Alsa and Pulse Audio We have to follow the following steps to play and record mp3 files.

Also we have set some configuration in the default.pa file

For setting the volume using pulseaudio::
$pacmd set-sink-volume 0 65537 (volume full)

For setting the volume to the mute::
$pacmd set-sink-mute 0 0 (volume)

This command put all the error and message into the file(cfg.out)
$ ./configure --help 1> cfg.out  2>&1

This command is used for the starting the pulseaudio binary file or we can say the server.
$pulseaudio --start --log-target=syslog --exit-idle-time=-1 (for run the pulseaudio)

This command is used for the recording of the .wav file using the pulseaudio
$gst-launch pulsesrc ! audio/x-raw-int,rate=8000,channels=1,width=16 ! queue ! audioconvert ! wavenc ! filesink location=/home/root/audio/far_from_love.wav

This command is used to play the mp3 file using the alsa it is not using the pulseaudio.
$gst-launch-0.10 filesrc location=/home/root/audio/far_from_love.mp3 ! mad ! alsasink

This command is used to play the mp3 file using the pulseaudio.
$gst-launch-0.10 filesrc location=/home/root/audio/far_from_love.mp3 ! mad ! pulsesink

This command is used for the recording of .wav file using the alsa .
$arecord -vv -fdat foo.wav

This command will set the Pulse input
$export PULSE_SOURCE=alsa_input.dsnoop

This command will give the list of alsa input/output cards
$LANG=C pactl list | grep -A2 'Source #' | grep 'Name: ' | cut -d" " -f2

This command will record the .mp3 file
gst-launch-0.10 pulsesrc device=alsa_input.hw_0_0 ! lame ! filesink location=sample.mp3

Qualcomm Short Term

  113 is the SL. 1st Target by mid July.

Total Pageviews