LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Linux Alsa question (https://www.linuxquestions.org/questions/linux-newbie-8/linux-alsa-question-4175429127/)

kdelover 09-26-2012 09:59 AM

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

flower.Hercules 09-26-2012 12:23 PM

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.

kdelover 09-26-2012 01:15 PM

I dont think Jack would work in this case,would it ?

flower.Hercules 09-26-2012 01:29 PM

I doubt it, as I said, I misread your original post and could not delete my response...

business_kid 09-26-2012 01:57 PM

arecord [options] | aplay [options] ?

kdelover 09-26-2012 11:23 PM

@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 ?

business_kid 09-27-2012 03:15 AM

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.

kdelover 09-27-2012 12:34 PM

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.


All times are GMT -5. The time now is 10:34 PM.