LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-24-2017, 06:30 PM   #1
obinice
LQ Newbie
 
Registered: May 2017
Posts: 1

Rep: Reputation: Disabled
Question Capturing microphone and speaker concurrently (preferably to individual stereo channels) from CLI script via pulseaudio?


Capturing microphone and speaker concurrently (preferably to individual stereo channels) from CLI script via pulseaudio?

Hey folks! I posted this over on the Raspberry Pi subreddit and the Linux Questions subreddits, but alas I got no responses. I think perhaps folks didn't know the answer and so didn't reply, I'm hoping someone here might have some idea?

I'm working on a project that's almost 100% complete bar this key issue. I've hunted around and tried a few things but I've not figured out how to record the system sound output, and I've not figured out how to do both that and the mic reliably at the same time?

Oh in case it's important, they're both going to be in use already at the time that I want to jump in and record, so I hope there's not going to be any conflict issues!?

I don't mind if it requires stitching two audio files together after the fact as long as they're in sync, a little post processing is no harm (I've figured out how to do that part already, though my notes have been lost on a faulty hard drive last week actually so... any reminder would be extremely welcome! ). Though I'd rather be able to do it during recording if possible. The project will be headless, so I need a solution that requires no human interaction.

I'd like the mic to be on one stereo channel and the speaker output on the other, I'd rather not downmix them together.

I'm running Raspbian on a Pi3, and using a USB sound device that has a mic & speaker. If you need any more info to point me in the right direction let me know. I can tinker and figure things out, but only if I know what I'm doing to begin with....and pulseaudio is kinda confusing! :P

Oh! Importantly - I've got ExaGear Desktop too, so I can run debian x86 applications pretty comfortably too. There's some emulation overhead though, so I'd rather avoid running more non-native stuff if I can help it

Thanks in advance for the help!!
 
Old 05-25-2017, 10:56 AM   #2
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 5,788

Rep: Reputation: 2140Reputation: 2140Reputation: 2140Reputation: 2140Reputation: 2140Reputation: 2140Reputation: 2140Reputation: 2140Reputation: 2140Reputation: 2140Reputation: 2140
An old post, but the solutions that worked then should work now
http://www.linuxquestions.org/questi...202/page2.html

This may help
https://www.youtube.com/watch?v=96FXCUjM2qA
and
http://wiki.archlinux.org/index.php/PulseAudio/Examples
http://www.freedesktop.org/wiki/Soft...entation/User/
 
  


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
Swap stereo channels in OpenAL alex-void Programming 0 08-01-2012 11:41 AM
5.1 Speaker/soudcard setup but only stereo sound Wynand1 Linux - Hardware 4 05-22-2006 02:46 PM
Sound through two different stereo hardware channels? tuxedo-notebook Linux - Hardware 1 01-02-2006 04:35 AM
Virtual surround sound (Splitting stereo into more channels) redarrow Linux - Software 1 07-14-2005 12:18 PM
SBlive! stereo channels w/ALSA kodon Slackware 1 07-17-2004 08:58 PM

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

All times are GMT -5. The time now is 10:25 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