LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-10-2010, 06:32 PM   #1
otkaz
LQ Newbie
 
Registered: Apr 2009
Location: Houston, TX
Posts: 26

Rep: Reputation: 0
recording from two audio sources simultaneously


Hi, I'm trying to set up a call monitoring system for work (I work for a non-profit, we're broke so a commercial solution is out of the question) We have two phone lines, so I built two wiretaps with built in amps. I hooked one of them to the mic input on my ubuntu server. I wrote a script that uses rec from sox with a silence filter. It works perfect for that one line. Problem I'm having is I cant figure out how to record from my second tap. In alsamixer I can only set one recording device even after I installed a second sound card. I was originally trying all this with pulseaudio, but was unable to get any of it to work until I removed pulseaudio. Only way I can think to get this to work is to plug both of the taps into linein and have each of them record on one of the stereo channels, but this is not preferable. I would like to be able to record each phone call on either line into its own separate file even if both lines are in use at the same time. It would be very nice if I could do this all on one computer (as again were broke and don't have spare computers laying around). Another thing I would like, but this part isn't as important right now. If my script is running and I try to use "ssh [host] dd if=/dev/dsp | dd of=/dev/dsp" to listen in live it tells me the hardware source is in use. Anyone have any ideas or directions they could point me?
 
Old 12-10-2010, 08:15 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
By law you have to warn people they are being recorded and provide a beep I forget the time between. No one seems to know that beep or tone part.


But to record maybe look at this and you may need an audio card that is multi channel supported or two cheap cards.

http://www.engadget.com/2005/09/27/h...-an-old-modem/
 
Old 12-11-2010, 04:09 AM   #3
Latios
Member
 
Registered: Dec 2010
Distribution: Arch
Posts: 115

Rep: Reputation: 21
You can do the stereo recording you suggested, and later separate the channels using ffmpeg or the like

You can try running all the software (mixer etc) 2 times under 2 different users. Perhaps set the permissions so that each can see only 1 card

You can try running 2 vm's and mapping a card to each



I dont know whats the law in your place. Some places allow you to invisibly tap every call in which you are one of the 2 speakers and not a third party
 
Old 12-11-2010, 11:40 AM   #4
otkaz
LQ Newbie
 
Registered: Apr 2009
Location: Houston, TX
Posts: 26

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jefro View Post
By law you have to warn people they are being recorded and provide a beep I forget the time between. No one seems to know that beep or tone part.


But to record maybe look at this and you may need an audio card that is multi channel supported or two cheap cards.

http://www.engadget.com/2005/09/27/h...-an-old-modem/
The laws on recording people differ from state to state. I have looked up my local laws, and I am in compliance. I tried two cheap cards alsa will not let me set two capture devices as stated in my prev post. Have you ever recorded from two sound cards in linux at the same time? If so how did you do it? Also I already built my taps using similar principles as the link you posted.

Last edited by otkaz; 12-11-2010 at 11:41 AM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Use multiple audio devices simultaneously mittfh Linux - Software 2 10-31-2009 08:44 PM
multiple programs play sound(audio) simultaneously mikepol Debian 7 02-12-2006 01:32 PM
Audio Recording. svendabassist Linux - Software 1 02-03-2005 11:08 PM
need help recording audio havokok Linux - Software 0 03-03-2004 07:41 PM
Sound -- can't play to audio sources simultaneously d33pdream Linux - General 4 02-09-2003 10:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:14 AM.

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