gnuradio.audio

This is the gr-audio package. This package is used to connect to audio sources (mic-in) and sinks (speaker-out) ports on a computer. The underlying hardware driver is system and OS dependent and this module should automatically discover the correct one to use.

gnuradio.audio.source(int sampling_rate, string device_name = "", bool ok_to_block = True) → sptr

Creates a source from an audio device.

Creates a source from an audio device at a specified sample_rate. The specific audio device to use can be specified as the device_name parameter. Typical choices are:

  • pulse, hw:0,0, plughw:0,0, surround51, /dev/dsp
gnuradio.audio.sink(int sampling_rate, string device_name = "", bool ok_to_block = True) → sptr

Creates a sink from an audio device.

Creates a sink from an audio device at a specified sample_rate. The specific audio device to use can be specified as the device_name parameter. Typical choices are:

  • pulse, hw:0,0, plughw:0,0, surround51, /dev/dsp

Previous topic

gnuradio.blks2

Next topic

gnuradio.gr_unittest

This Page