如何录制两个麦克风?

如何录制两个麦克风?

我正在尝试录制 USB 耳机的麦克风并将监视器输出录制到该耳机,到目前为止尝试同时打开两个录音没有成功(通过 python 或 Audacity),此评论让我相信我的基于 portaudio 的库都无法同时录制两件事。

我看到多次提到我可以使用 jack 或 pactl 来创建组合源,我曾尝试使用 pactl 来创建组合音频源,但这不起作用,需要手动选择脉冲音频 GUI 中的输入,而我本来希望它是自动的。

    pactl load-module module-null-sink sink_name=MySink
    pactl load-module module-loopback sink=MySink
    pactl load-module module-loopback sink=MySink

最后我尝试使用插孔,但无论我尝试使用什么设备打开,alsa_in都会出现错误。

annot connect to server socket err = Connection refused
Cannot connect to server request channel
jackdmp 1.9.12
Copyright 2001-2005 Paul Davis and others.
Copyright 2004-2016 Grame.
Copyright 2016-2017 Filipe Coelho.
jackdmp comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details
Cannot create RT messagebuffer thread: Operation not permitted (1)
Retrying messagebuffer thread without RT scheduling
Messagebuffer not realtime; consider enabling RT scheduling for user
no message buffer overruns
Cannot create RT messagebuffer thread: Operation not permitted (1)
Retrying messagebuffer thread without RT scheduling
Messagebuffer not realtime; consider enabling RT scheduling for user
no message buffer overruns
Cannot create RT messagebuffer thread: Operation not permitted (1)
Retrying messagebuffer thread without RT scheduling
Messagebuffer not realtime; consider enabling RT scheduling for user
no message buffer overruns
JACK server starting in realtime mode with priority 10
self-connect-mode is "Don't restrict self connect requests"
Cannot lock down 82280346 byte memory area (Cannot allocate memory)
audio_reservation_init
Acquire audio card Audio0
creating alsa driver ... hw:0|hw:0|1024|2|44100|0|0|nomon|swmeter|-|32bit
configuring for 44100Hz, period = 1024 frames (23.2 ms), buffer = 2 periods
ALSA: final selected sample format for capture: 32bit integer little-endian
ALSA: use 2 periods for capture
ALSA: final selected sample format for playback: 32bit integer little-endian
ALSA: use 2 periods for playback
Cannot use real-time scheduling (RR/10)(1: Operation not permitted)
AcquireSelfRealTime error
Cannot lock down 82280346 byte memory area (Cannot allocate memory)
ALSA lib pcm_dmix.c:990:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
Capture open error: Invalid argument
Unknown error...                                                                                          
terminate called after throwing an instance of 'Jack::JackTemporaryException'
  what():  

相关内容