Microphone in MOS and CORE

Hi, everyone,

MOS finally worked on my Matrox Voice.
Can I use microphone array and audio output in MOS? (microphone is categoried into not_implemented in Github doc.).
If not, can MOS and CORE exist at the same time?

Thank you.

Hi @ucanlab,

Getting microphone data from MOS as you said is not currently available. But, you could instead get audio data from the mics using any nodejs package that uses arecord to record audio. An example is mic - npm. You can try their example, just bear in mind the setup for Matrix Voice should be :

var mic = require('mic');
var fs = require('fs');
var micInstance = mic({
    rate: '16000',
    device: 'hw:2,0',
    channels: '1',
    debug: true,
    exitOnSilence: 6

Another last thing to check for this to works. Check if you have the kernel modules installed. Use :

lsmod | grep matrix

output should be similar to:

matrixio_pcm          278528  1
matrixio_codec         16384  1
snd_soc_core          188416  2 matrixio_pcm,matrixio_codec
matrixio_uart          16384  0
matrixio_env           16384  0
matrixio_imu           16384  0
industrialio           73728  2 matrixio_imu,matrixio_env
matrixio_gpio          16384  0
matrixio_everloop      16384  0
matrixio_regmap        61440  0
matrixio_core          16384  4 matrixio_regmap,matrixio_pcm,matrixio_imu,matrixio_env
snd_pcm                98304  5 matrixio_pcm,snd_pcm_dmaengine,snd_bcm2835,snd_soc_core,snd_dummy

If is not installed use:

sudo apt install matrixio-kernel-modules
sudo reboot

After this you should be able to run the mic example and get audio data.

Actually yes, you must have Core running for MOS to be able to work. Core is the layer that allows MOS to interact with the hardware.

Let me know how it goes