This forum has been archived. All content is frozen. Please use KDE Discuss instead.

record both playback and microphone, at the same time

Tags: None
(comma "," separated)
contremaitre
Registered Member
Posts
71
Karma
0
Hi,

I read a ton of forum posts about that and no solution working.
How can I record my microphone AND the sound played by the computer ?

Thanks.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Assuming ambient noise in the immediate background isn't going to be an issue, you would need to perform two recordings simultaneously to achieve the result desired here. You would then need to combine these two audio files, which software such as Audacity might be able to help you do.

In order to record the output from your computer, you will need to ensure a loopback device is enabled.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
contremaitre
Registered Member
Posts
71
Karma
0
Thanks, it kind of work, here is how :
$ arecord r1.wav & arecord r2.wav&
Then, in pavucontrol, set the first recording to internal audio, and the other one to "Monitor of ..."
when finished :
$ killall arecord

This is better than nothing, but not ideal because :
- It requires a lot a manual command (launching arecord, swithching settings in pavucontrol, mixing the tracks).
- The synchronisation is not perfect, I can hear a delay when I try to hear both track at the same time. So I need to sync afterward, I can't mix them directly.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Perhaps you could try using a Pulseaudio native recording application - such as "parecord", which might offer more direct options to select your desired audio devices?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
contremaitre
Registered Member
Posts
71
Karma
0
Thanks !
Something like :
Code: Select all
 parecord -r -d 3 r1.wav& parecord -r -d 1 r2.wav&

Just need to adapt the device number for your computer.
Then, killall parecord when finished.

To play both files at the same time :
Code: Select all
vlc r1.wav& vlc r2.wav&


So it's easier now, and the sync looks good.
I think this can be usefull to many people, because a lot of questions about that on forums stay unanswered.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot]