How do I record stereo from my sound card?
1 view (last 30 days)
Show older comments
Really simple title, oddly infuriating problem: I have my sound card set up to record stereo, and my {audiorecorder} object is =audiorecorder(44100,16,2,0). However, instead of the Y matrix being Y(:,1)=left part of signal and Y(:,2)=right part of signal, both columns of data are equal. After some testing, I found out that the "stereo" was actually a duplicated stereo mix of my L&R channels.
How do I take in both the L & R channels from my audio input without them mixing? Should I get another sound card (external)? What specs should I look for? To clarify, I'm 90% sure my internal sound card isn't capable of delivering unmixed channels to MATLAB.
0 Comments
Answers (1)
Star Strider
on 27 Apr 2015
I would check your sound card driver and operating system sound recording options to be sure you are recording in stereo and not mixing.
Also, you obviously need two separate microphones or other different sound sources.
2 Comments
Star Strider
on 28 Apr 2015
I’m suggesting that you need two separate sound sources to record two separate and distinct channels in stereo. If MATLAB is only getting one signal, it will create two identical channels with the same data.
If you want to see your input capabilities, use the audiodevinfo function:
info = audiodevinfo
openvar info.input
Of course, you can also go into Control Panel (Windows) to see what your sound sources are. When I have my gaming headset connected, it reports two microphones; with it disconnected, one.
See Also
Categories
Find more on Audio and Video Data in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!