Core Electronics Forum

USP Mcrophone (MI-305) installation. Rpi 3 B+

I spent a number of hours trying to make to work the USB Mic (purchased here, MI-305) connected to RPi 3 B+(updated/upgrated), but still no results, except wav files with silence. I followed all possible guides presented by links on the core-electronincs and other web-sites i could find. I also tested “plug-n-play” on win10 - the same, not working
I suspect the device is faulty or malfunctioned or i missed important step(s) (including win10 tests?).

Techs-Support, could you please advise or install the MI-305 on RPi 3B+ yourself and share you results using the same device model and RPi 3 B+?

Regards

Heyo,

With the USB Microphone connected, what do you get when you run this in Terminal:

lsusb

And:

arecord -l

Tip you could use the browser on the Pi to login to our forum and copy paste the results. Use the preformatted text wrapper on Terminal text to keep things tidy in the forum.

image

pi@raspberrypi:~ $ lsusb
Bus 001 Device 016: ID 8086:0808 Intel Corp. 
Bus 001 Device 004: ID 046d:c534 Logitech, Inc. Unifying Receiver
Bus 001 Device 007: ID 1c4f:0002 SiGma Micro Keyboard TRACER Gamma Ivory
Bus 001 Device 017: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
Bus 001 Device 009: ID 0424:7800 Standard Microsystems Corp. 
Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
pi@raspberrypi:~ $ arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
pi@raspberrypi:~ $

Hi Alexei,

Thats pretty hard to read without formatting. Would you mind reposting using the method that Graham indicated?

It looks to me that your device recognizes the USB Audio Device:

**** List of CAPTURE Hardware Devices ****
card 1: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio]

What software are you using to record audio / measure the input from the Mic?

Cheers for that info. I’ve also edited your post so that it’s easier to read the terminal text.

Everything is setup fine, and the only other variable is gain. The MI-305 has very low-performance compared to something like a Blue Yeti Microphone and you’ll either need to talk directly into it, or, increase the gain.

This guide ought to help

http://wiki.sunfounder.cc/index.php?title=To_use_USB_mini_microphone_on_Raspbian

The biggest impact will be the distance from the audio source to the mic itself.

   pi@raspberrypi:~ $ lsusb
Bus 001 Device 016: ID 8086:0808 Intel Corp. 
Bus 001 Device 004: ID 046d:c534 Logitech, Inc. Unifying Receiver
Bus 001 Device 007: ID 1c4f:0002 SiGma Micro Keyboard TRACER Gamma Ivory
Bus 001 Device 017: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
Bus 001 Device 009: ID 0424:7800 Standard Microsystems Corp. 
Bus 001 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
pi@raspberrypi:~ $ arecord -l
**** List of CAPTURE Hardware Devices ****

card 1: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
pi@raspberrypi:~ $

What software are you using to record audio / measure the input from the Mic?
arecord -D plughw:1,0 -d 5 test10.wav
!! Empty file !!

PyAudio (Python3):
pi@raspberrypi:~ $ python3
Python 3.5.3 (default, Sep 27 2018, 17:25:39)
[GCC 6.3.0 20170516] on linux
Type “help”, “copyright”, “credits” or “license” for more information.

import pyaudio
p = pyaudio.PyAudio()
ALSA lib pcm_dmix.c:1052:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition ‘defaults.bluealsa.device’
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4996:(snd_config_expand) Args evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM bluealsa
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition ‘defaults.bluealsa.device’
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4996:(snd_config_expand) Args evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM bluealsa
ALSA lib pcm_dmix.c:1052:(snd_pcm_dmix_open) unable to open slave
connect(2) call to /tmp/jack-1000/default/jack_0 failed (err=No such file or directory)
attempt to connect to server failed

[1]+ Stopped python3

Thank you Graham.
I configured my RPi yesterday exactly the link explains (I knew the link you provided).
arecord -D plughw:1,0 -d 5 test_mic10.wav
creates “empty” 39.1Kb file . Empty means “white noise” only and doesn’t matter how far sound source located.
arecord -D plughw:1,0 -d 5 test_headseatUSB.wav
With microphone from my headset it records well, as expected
For me, it looks like the USB microphone MI-305 is faulty.

I think I am stuck at the same problem, so is there anybody who reached to a logical solution to this problem

Check and make sure the card index you are using is correct with

cat /proc/asound/cards