gnuradio.audio

Blocks 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.

Constructor Specific Documentation:

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
Parameters:
  • sampling_rate
  • device_name
  • ok_to_block
source_sptr.active_thread_priority(self) → int
source_sptr.set_thread_priority(self, int priority) → int
source_sptr.thread_priority(self) → int
gnuradio.audio.sink(int sampling_rate, string device_name = "", bool ok_to_block = True) → sptr

Creates a sink from an audio device.

Constructor Specific Documentation:

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
Parameters:
  • sampling_rate
  • device_name
  • ok_to_block
sink_sptr.active_thread_priority(self) → int
sink_sptr.set_thread_priority(self, int priority) → int
sink_sptr.thread_priority(self) → int

Previous topic

gnuradio.digital

Next topic

gnuradio.channels

This Page