Requesting audio samples using gstreamer

Benjamin M. Schwartz bmschwar at fas.harvard.edu
Mon Oct 22 00:27:59 EDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Arjun Sarwal wrote:
> Is there a way to explicitly request samples from Alsa using gstreamer ?

Not that I'm aware of.  You could set up a gstreamer pipeline that writes raw
audio into a named pipe (FIFO), and then read the data out of the FIFO in
python, throwing away data you don't want.

If you're recording from the microphone, amplifier weirdness requires an
approach like this, because the microphone must be turned on well before you
start recording (see bug 3813).  I don't know if there's an amplifier between
the line-in and ADC.

- --Ben
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHHCbPUJT6e6HFtqQRAlrJAKCNxLpg44QGETi+nhXzDhB3upn2nACeKS5x
FdJFtCSc8pxOo7GrPSqpLJ4=
=fkHg
-----END PGP SIGNATURE-----



More information about the Devel mailing list