Read the statement by Michael Teeuw here.
ReSpeaker 4Mic USB with GA, noise, interference
-
Recently i bought a ReSpeaker USB Mic Array for my RapberryPi 4 (8Gb).
I use this Mic for GoogleAssistant (SDK), but it hears me badly.
I decided to check the Mic with next commands:[ pi@raspberrypi:~ $ arecord test.waw ] — and say some words.
answer:
[ Recording WAVE ‘test.waw’ : Unsigned 8 bit, Rate 8000 Hz, Mono
^CAborted by signal Interrupt… ][ pi@raspberrypi:~ $ aplay test.waw ] — I hear my words with VERY loud digital noise and interference!
answer:
[ Playing WAVE ‘test.waw’ : Unsigned 8 bit, Rate 8000 Hz, Mono. ]Then i cheked Mic with commands:
[ arecord --format=S16_LE --duration=5 --rate=16000 --file-type=raw out.raw ]
[ aplay --format=S16_LE --rate=16000 out.raw ]
With these commands the sound was PERFECT ! (just some echo).I suppose that my Mic records sound in bad quality (by defalt), because my GA hardly hears me from distance even 1 metre.
Can you help me with this problem ?
I want to have my Mic recording always with good quality.Best wishes!
-
@ilgiz
I’m not sure what it really means"I use this Mic for GoogleAssistant (SDK),"
. Do you mean you are building your own GA implementation with that SDK by yourself? with which language?
Anyway, you need to adjust yourAudioInConfig
when you implement your GA with SDK.
The recommended values are;- sample_rate_hertz : 16000(recommended)
- Encoding: LINEAR16(Uncompressed 16-bit signed little-endian samples (Linear PCM)) or FLAC(Free Lossless Audio Codec)
- Mono sound (no channel)
So your audio input should be formatted with the above value and your SDK implementation should be configured with those.
Add the additional flags when you use
arecord
to get your voice input. -
@mmrize
Do you mean you are building your own GA implementation with that SDK by yourself? - Ofcourse no, Im not…Anyway, you need to adjust your AudioInConfig - Can you explain me, what I have to do exactly…
Im not experienced user of MagicMirror…your SDK implementation should be configured with those - How ?