Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 askubuntu.com/a/168338/3940 –  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 freedesktop.org/wiki/Software/PulseAudio/Documentation/User/… –  Suhaib Feb 8 '13 at 21:35

1 Answer 1

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

 
discard

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.