GNU电台:使用声音输出作为输入源 [英] GNU Radio: Use sound output as input source

查看:1122
本文介绍了GNU电台:使用声音输出作为输入源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

中的gnuradio-伴侣我使用的是音频信号源块作为下一个块我的输入信号。所有作品几乎罚款。唯一的小问题是,我碰到我的麦克风信号(这是正常的行为偏离了航线)。我宁愿喜欢,而不必经过我的发言,从我的房间和麦克风空气得到直接播放的音频信号。

In gnuradio-companion I'm using the audio source block as my input signal for the next blocks. All works almost fine. The only little problem is that I'm getting the signal from my microphone (this is the normal behavior off course). I would rather like to get the audio signal being played directly without having to go through my speakers, the air from my room and the microphone.

这一切产生的信号损失,并增加了噪音。

All this generates signal losses and adds noise.

我知道有一个文件源块,但这不是我一个真正的解决方案。

I know there is the file source block but this isn't a real solution for me.

我也知道我可以只从输出到输入从我的声卡插入一个微型插孔电缆。这不是一个解决方案,可能是因为它可能会损坏声卡,并且仍然会增加失真。

I also know I could just plug a mini-jack cable from the output to the input from my sound-card. this isn't a solution either because it could damage the sound-card, and would still add distortion.

目前我使用的是Ubuntu和ALSA音频驱动程序。

Currently I'm using Ubuntu and alsa as audio driver.

我知道有像JAAA和xoscope计划这是能够做到这一点,所以我觉得我问的不是那个奇怪的。

I know there are programs like jaaa and xoscope which are able to do this so I think what I'm asking for isn't that strange.

推荐答案

您将需要建立一个班长ALSA装置。

You will need build a "monitor" ALSA device.

我发现其中建议按照以下步骤此ArchLinux的维基页面,这应该适用于Ubuntu的,也一样,也使用了PulseAudio:

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

挑选合适的显示器字符串,例如 alsa_output.pci-0000_00_1b.0.analog-stereo.monitor 。然后在你的home目录创建(如果不存在的话),并编辑 .asoundrc

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

添加

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

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

该文件。

现在,使用 pulse_monitor 作为音频信号源设备的字符串。很适合我(在Fedora 22):

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

修改

增加了一个 GNU收音机维基页面这个问题。

这篇关于GNU电台:使用声音输出作为输入源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆