Linux - Creating Virtual Audio Device

16

4

My question here is rather simple. How does one create a purely virtual audio device in ALSA that would be capable of:

  1. being used as an audio output destination,

  2. being used as an audio input source, outputting whatever has been sent to it.

What I'm essentially trying to achieve is outputting sound to this device, and using that device as a mic in another application (like Skype, for example), which allows me to play sounds and music in skype or whatever else that would be.

Information on this is really obscure, and search results show mostly irrelevant things, like splitting device outputs or something like that. I really have no idea where and what to look for now, so any help would be incredibly appreciated.

Samuel Moriarty

Posted 2013-03-08T08:03:10.473

Reputation: 277

12just load snd-aloop – CL. – 2013-03-08T10:31:28.263

1Thanks, that's exactly what I wanted - though it took me some time to figure it out properly. – Samuel Moriarty – 2013-03-08T12:21:38.533

2@CL. You should post your comment as an answer, thus marking the question as solved. Thank you! – Shadok – 2013-03-25T14:31:46.593

Answers

5

$ modprobe snd-aloop

PS Off-topic: Stackexchange is broken. It won't post the one-liner answer citing "Please check the error above. But there's no error. Oh, there it is, on the side, wrapped in a ribbon, dissolving into all the static on right-hand column. Dear SE, I'm sure you can afford to test your UI a bit more."

Dagelf

Posted 2013-03-08T08:03:10.473

Reputation: 585

$ modprobe snd-aloop # for newbs

UI: ...Looks like they fixed it :-) – Dagelf – 2017-04-12T13:22:45.670

1The reason for the error: "Body must be at least 30 characters...". The error is above and to the right side in my browser. – BenjiWiebe – 2013-06-16T01:17:07.623