Here are the steps for troubleshooting microphone issues in both MATRIX Creator and Voice.
For initial setup please follow the steps in the post MATRIX Creator/Voice Hardware Test.
Then, follow the steps below to test the microphones.
Clone and build the HAL examples
# Installing prerequisits sudo apt-get install cmake g++ git libfftw3-dev wiringpi libgflags-dev # Clone and build git clone https://github.com/matrix-io/matrix-creator-hal.git cd matrix-creator-hal mkdir build && cd build cmake .. make
cd ~/matrix-creator-hal/build/demos/ ./micarray_recorder
After recording you will see these files on the
$ ls -1 *raw mic_16000_s16le_channel_0.raw mic_16000_s16le_channel_1.raw mic_16000_s16le_channel_2.raw mic_16000_s16le_channel_3.raw mic_16000_s16le_channel_4.raw mic_16000_s16le_channel_5.raw mic_16000_s16le_channel_6.raw mic_16000_s16le_channel_7.raw
2. Convert from
sudo apt-get install sox alsa-utils sox -r 16000 -c 1 -e signed -c 1 -e signed -b 16 mic_16000_s16le_channel_0.raw channel_0.wav sox -r 16000 -c 1 -e signed -c 1 -e signed -b 16 mic_16000_s16le_channel_1.raw channel_1.wav sox -r 16000 -c 1 -e signed -c 1 -e signed -b 16 mic_16000_s16le_channel_2.raw channel_2.wav sox -r 16000 -c 1 -e signed -c 1 -e signed -b 16 mic_16000_s16le_channel_3.raw channel_3.wav sox -r 16000 -c 1 -e signed -c 1 -e signed -b 16 mic_16000_s16le_channel_4.raw channel_4.wav sox -r 16000 -c 1 -e signed -c 1 -e signed -b 16 mic_16000_s16le_channel_5.raw channel_5.wav sox -r 16000 -c 1 -e signed -c 1 -e signed -b 16 mic_16000_s16le_channel_6.raw channel_6.wav sox -r 16000 -c 1 -e signed -c 1 -e signed -b 16 mic_16000_s16le_channel_7.raw channel_7.wav
3. Check the audio recordings
After this you should see the wav files in the folder. To play the recordings back, you should use the 3.5mm audio jack in the Raspberry Pi if played there. You can play the files using
aplay as shown below:
You could also use an audio software to better diagnose the issue. We recommend using Audacity. See image as a reference:
So far, cases of damaged mics from the factory it’s been very rare. However, we are making this guide to help you to fast diagnose the issue in the case you have it.
If you find noice or any problem in the recordings please contact us at firstname.lastname@example.org