LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-26-2012, 10:59 AM   #1
kdelover
Member
 
Registered: Aug 2009
Posts: 311

Rep: Reputation: 36
Linux Alsa question


Hi,

I have 2 USB headsets connected to my pc and i see both of them when i do
Code:
cat /proc/asound/cards
,i tested to see if both are working or not by running a
Code:
speaker-test
for both the cards.

What id like to do is,when i speak from the microphone on the first headset,id like the audio output to come from the secondary headset.Is it possible ? Do i need to create some sort of ALSA loop-back device for this ?

Thanks
 
Old 09-26-2012, 01:23 PM   #2
flower.Hercules
Member
 
Registered: Aug 2005
Distribution: Gentoo
Posts: 228

Rep: Reputation: 31
You may want to take a look at Jack.

Sorry about the vague response, I misread your original post and don't see an option to delete mine.

Last edited by flower.Hercules; 09-26-2012 at 01:26 PM.
 
Old 09-26-2012, 02:15 PM   #3
kdelover
Member
 
Registered: Aug 2009
Posts: 311

Original Poster
Rep: Reputation: 36
I dont think Jack would work in this case,would it ?
 
Old 09-26-2012, 02:29 PM   #4
flower.Hercules
Member
 
Registered: Aug 2005
Distribution: Gentoo
Posts: 228

Rep: Reputation: 31
I doubt it, as I said, I misread your original post and could not delete my response...
 
Old 09-26-2012, 02:57 PM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 8,695

Rep: Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886
arecord [options] | aplay [options] ?
 
Old 09-27-2012, 12:23 AM   #6
kdelover
Member
 
Registered: Aug 2009
Posts: 311

Original Poster
Rep: Reputation: 36
@business.kid - I think i can give aplay/arecord a try. I am just curious what are the other options that i might have to do this ?
 
Old 09-27-2012, 04:15 AM   #7
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 8,695

Rep: Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886Reputation: 886
alsa installs aplay and arecord man pages.

I would start with

arecord -D <card> -r <rate> | aplay -D<card> -r <rate>

default settings are mono 8000hz sampling, which is poor.
 
Old 09-27-2012, 01:34 PM   #8
kdelover
Member
 
Registered: Aug 2009
Posts: 311

Original Poster
Rep: Reputation: 36
I haven't given that a try yet,but i found this works as well since both the headsets are on the same host

Quote:
# dd if=/dev/dsp of=/dev/dsp1

# dd if=/dev/dsp1 of=/dev/dsp
This works well,but with a slight delay.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Alsa question... CryptDragoon Slackware 1 02-20-2004 11:51 AM
2.6-ALSA question Scruff Slackware 1 12-21-2003 08:44 PM
ALSA question JROCK1980 Slackware 10 11-29-2003 05:24 AM
Linux 2.6 and Alsa question via82xx SuperNoob Linux - Newbie 2 11-15-2003 11:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:04 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration