Mathematica doesn't recognize USB mic (Raspberry Pi / Linux)

  • Thread starter Thread starter Swamp Thing
  • Start date Start date
  • Tags Tags
    Usb
AI Thread Summary
The discussion centers on issues with using a USB microphone in Wolfram Mathematica on a Raspberry Pi running Linux. Although the microphone is recognized in PulseAudio and works with applications like Audacity and arecord, it does not appear in Mathematica, which returns a null list for audio input devices. Suggestions include checking the Wolfram support site for potential solutions or existing tickets. Users also shared experiences with microphone compatibility issues, particularly with lapel mics that had the same USB address, leading to the decision to switch manufacturers. A project involving directional microphones for hearing-impaired speakers highlighted challenges with audio processing speed, resulting in noticeable echo effects. Although a workaround exists by using shell commands to record audio and then access it in Mathematica, the user is seeking a more integrated solution.
Swamp Thing
Insights Author
Messages
1,028
Reaction score
767
Raspberry Pi / Linux...

My USB mic shows up in the PulseAudio volume control, and also works OK with Audacity and arecord.

However, it doesn't show up in Wolfram Mathematica -- $AudioInputDevices returns a null list.

Anything I can do to get the mic working in Mathematica?
 
Technology news on Phys.org
I had some issues with lapel mics on Raspberry PI Linux. The problem was due to the mics having the same USB address with no way to change them. The company didn't think someone might want to do stereo recording with their lapel mics.

In our case, we switched to another mic manufacturer. Our project was to make a headset for hearing impaired speakers who could pick out an audience member asking a question by simply looking in their direction and the two mics acted as directional mics beamforming the audio where you pointed your head.
 
  • Like
Likes Swamp Thing
I forgot to add that we beamformed in the PI, and the one noticeable flaw was the time it took to reach your ears. It was enough to make it sound like an echo.

You'd hear the person speaking and then the beamformed audio stream of them speaking slightly behind them. This was due to the speed at which the PI could process the mic input, add them together, and then push the result to the headset.
 
Is it hard to get a good beam shape over an acceptable range of audio frequencies?

And re my original question, my use case works ok if I run a shell command from Wolfram, where I run "arecord". Then Mathematica can open the recorded file and get to the audio samples. But I will keep looking for a more elegant way.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...
Back
Top