GNU Radio: Use sound output as input source

情到浓时终转凉″ 提交于 2019-11-30 23:45:20

You will need build a "monitor" ALSA device.

I found this ArchLinux wiki page which recommends the following procedure, which should apply to Ubuntu, too, as that also uses PulseAudio:

pactl list|grep monitor

pick the right monitor string, e.g. alsa_output.pci-0000_00_1b.0.analog-stereo.monitor. Then create (if it doesn't exist) and edit .asoundrc in your home directory:

gedit ~/.asoundrc

Add

pcm.pulse_monitor {
  type pulse
  device <device name from above>
}

ctl.pulse_monitor {
  type pulse
  device <device name from above>
}

to that file.

Now, use pulse_monitor as your device string in the Audio source. Works well for me (on Fedora 22):

EDIT:

Added a GNU Radio wiki page about this.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!