Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have searched around the internet for answers; however, I was not successful in locating an answer. What is the best method of simulating two audio devices using Pulse Audio/ALSA/something else? Thank you.

Edit: For further clarification, I need these audio devices for input and output into Teamspeak 3. This setup will allow me to create a music bot of sorts when I play audio into the line that is the input of teamspeak. This setup is easily achieved through Virtual Audio Cable on Windows. Thank you.

share|improve this question
To better advice you it may be worth you said a word on the purpose why you need those simulated device. – Takkat Jan 30 '13 at 10:07
Sorry to not have gotten back to you earlier, I did not notice your edit. May it be that s a loopback sink meets your needs? See – Takkat Feb 4 '13 at 7:45
Have you tried asking in the #pulseaudio in IRC chat or the mailing list ? here is their wiki… – Suhaib Feb 8 '13 at 21:35

Using alsa, you can add in ~/.asoundrc

pcm.simulatedAudio {
  type file
  slave {
    pcm null
  format "raw"
   file " | /path/to/script"

This will run the script sending the audio data in to stdin (if you dont want the audio you can pipe it in to /dev/null).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.