MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    ReSpeaker 4Mic USB with GA, noise, interference

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    3 Posts 2 Posters 441 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I Offline
      Ilgiz
      last edited by

      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!

      M 1 Reply Last reply Reply Quote -1
      • M Offline
        MMRIZE @Ilgiz
        last edited by

        @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 your AudioInConfig 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.

        I 1 Reply Last reply Reply Quote 0
        • I Offline
          Ilgiz @MMRIZE
          last edited by

          @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 ?

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Enjoying MagicMirror? Please consider a donation!
          MagicMirror created by Michael Teeuw.
          Forum managed by Sam, technical setup by Karsten.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy