[pulseaudio-discuss] arecord from monitor and sink
Daniël Sonck
dsonck92 at gmail.com
Fri Nov 2 06:10:40 PDT 2012
Well since I learned a lot about combining and routing in pulseaudio,
the way I would configure it is this:
You want to create one virtual sink (null sink) which receives both
local audio and microphone data, you want a separate one because
otherwise you hear yourself.
First have the new sink using module-null-sink. Then connect the
microphone to it using module-loopback and lastly join the virtual and
real sound card using module-combine-sink. And you should direct the
audio output of the application to the combined sink.
Information about all the modules:
http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Modules
Daniel
On Fri 02 Nov 2012 05:09:39 AM CET, Amar Akshat wrote:
> Pardon my ignorance, however I do not fully understand, what is meant
> by mixing the two recordings ? Is it something Pulseaudio can do ? If
> you, could you guide me to the documentation regarding it.
>
> Also, in case of multiple sinks as one, or multiple sources as one,
> what is the best way to do it ? I think I posted this question once in
> this forum long back, and the result was we cant configure one virtual
> sound card to have multiple real sources.
>
> Thanks,
> Amar/
>
> On Thu, Nov 1, 2012 at 6:30 PM, Arun Raghavan
> <arun.raghavan at collabora.co.uk> wrote:
>> On Thu, 2012-11-01 at 17:04 +0900, Amar Akshat wrote:
>>> Hi,
>>>
>>> As we know, pulse recognizes every sound card's source as a source and
>>> a monitor device. We use monitor device to record any activity on that
>>> sound card's source.
>>>
>>> However, for a scenario like a sound card used for making a phone
>>> call, and we wish to record the entire ongoing conversation. In that
>>> case we need to capture both the streams, the source and sink. At
>>> first I thought, If I set PULSE_SOURCE as monitor and PULSE_SINK as
>>> the sink of the sound card, and then do
>>> arecord -D default > x.wav,
>>>
>>> both channels would be recorded. However that is not happening. Kindly
>>> suggest what is the best way to do it using pulse ?
>>
>> You basically need to capture from the mic source as well as the monitor
>> source and then mix it. We don't have the ability to combine the two (we
>> do have module-combine-sink that lets you present several sinks as one),
>> so you'll either need to make a module-combine-source or just do mixing
>> yourself.
>>
>> -- Arun
>>
>> _______________________________________________
>> pulseaudio-discuss mailing list
>> pulseaudio-discuss at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4459 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20121102/3d3d208c/attachment.bin>
More information about the pulseaudio-discuss
mailing list