LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-03-2011, 10:40 PM   #1
ag_
LQ Newbie
 
Registered: Jan 2011
Posts: 2

Rep: Reputation: 0
Simulate Microphone (virtual mic)


Hi, I've got a problem where I need to "simulate" microphone output.

Data will be coming over the network, decoded into PCM and basically needs to be written into the mic - which then other programs can read/record/whatever.

I've been reading up on alsa but information is pretty sparse. The file plugin seemes promising - I was thinking of having a named pipe as "infile" which I could then deliver data to from my application. I can't get it to work however (vlc/audacity just segfault).
Code:
pcm.testing {
  type file
  slave {
    pcm {
      type hw
      card 0
      device 0
    }
  }
  infile "/dev/urandom"
  format "raw"
}
Are there any better ways of doing this? Any suggestions on alsa plug-ins (particularly the file plugin)?
 
Old 01-03-2011, 10:41 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
This might work.
http://jackaudio.org/
 
Old 01-03-2011, 10:56 PM   #3
ag_
LQ Newbie
 
Registered: Jan 2011
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for the swift response, but it seems jack is geared towards the more professional (musical) user.
My main requirement is chat applications (Skype, aMSN), etc, which don't seem to support jack (yet).

The ultimate solution is to write an alsa driver, it seems - that's what I've ended up doing on Windows.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with the mic on slackware - mic boost on still very quiet adrian2009 Slackware 1 06-09-2009 04:57 PM
Mic problem. Mic bar missing in alsaconf rengo.Java Linux - Hardware 4 02-15-2009 06:02 PM
Mic problems with Ventrilo (wine) - just need help getting the mic on Snipersnest Linux - Software 5 10-14-2008 05:44 AM
microphone problem mic is rear mic and when i rebooted after repair wont work adb0434 Linux - Newbie 2 10-02-2006 12:37 AM
MIC Problem > "Unable to find simple control mic" Balarabay1 SUSE / openSUSE 3 04-09-2006 11:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration