Bugsounet Coding

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular

    Solved How to correctly configure the microphone. Default config doesn't pick it up?

    EXT-Detector
    2
    3
    55
    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.
    • D
      denis4o last edited by denis4o

      Hardware:
      Raspberry Pi 3b+
      Raspbian 11 (Debian 11 bullseye)
      USB microphone

      Issue: The Detector starts normally however, I believe that the USB mic is not correctly selected as no hotword is picked up.

      I can record and play wav files via:

      arecord --format=S16_LE --rate=16000 --file-type=wav out.wav
      
      aplay out.wav
      

      Logs:

      0|MagicMir | > magicmirror@2.18.0 start
      0|MagicMir | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      0|MagicMir | 
      
      0|MagicMirror  | [24.03.2022 15:06.15.103] [LOG]   
      0|MagicMirror  | Starting MagicMirror: v2.18.0
      0|MagicMirror  | [24.03.2022 15:06.15.120] [LOG]   
      0|MagicMirror  | Loading config ...
      0|MagicMirror  | [24.03.2022 15:06.15.136] [LOG]   
      0|MagicMirror  | Loading module helpers ...
      0|MagicMirror  | [24.03.2022 15:06.15.145] [LOG]   
      0|MagicMirror  | No helper found for module: alert.
      0|MagicMirror  | [24.03.2022 15:06.15.179] [LOG]   
      0|MagicMirror  | Initializing new module helper ...
      0|MagicMirror  | [24.03.2022 15:06.15.185] [LOG]   
      0|MagicMirror  | Module helper loaded: updatenotification
      0|MagicMirror  | [24.03.2022 15:06.15.192] [LOG]   
      0|MagicMirror  | No helper found for module: clock.
      0|MagicMirror  | [24.03.2022 15:06.15.852] [LOG]   
      0|MagicMirror  | Initializing new module helper ...
      0|MagicMirror  | [24.03.2022 15:06.15.858] [LOG]   
      0|MagicMirror  | Module helper loaded: MMM-MyCalendar
      0|MagicMirror  | [24.03.2022 15:06.16.421] [LOG]   
      0|MagicMirror  | Initializing new module helper ...
      0|MagicMirror  | [24.03.2022 15:06.16.428] [LOG]   
      0|MagicMirror  | Module helper loaded: MMM-DarkSkyForecast
      0|MagicMirror  | [24.03.2022 15:06.16.538] [LOG]   
      0|MagicMirror  | Initializing new module helper ...
      0|MagicMirror  | [24.03.2022 15:06.16.543] [LOG]   
      0|MagicMirror  | Module helper loaded: newsfeed
      0|MagicMirror  | [24.03.2022 15:06.17.318] [LOG]   
      0|MagicMirror  | Initializing new module helper ...
      0|MagicMirror  | [24.03.2022 15:06.17.322] [LOG]   
      0|MagicMirror  | Module helper loaded: MMM-GoogleAssistant
      0|MagicMirror  | [24.03.2022 15:06.17.333] [LOG]   
      0|MagicMirror  | Initializing new module helper ...
      0|MagicMirror  | [24.03.2022 15:06.17.338] [LOG]   
      0|MagicMirror  | Module helper loaded: EXT-Detector
      0|MagicMirror  | [24.03.2022 15:06.17.420] [LOG]   
      0|MagicMirror  | Initializing new module helper ...
      0|MagicMirror  | [24.03.2022 15:06.17.425] [LOG]   
      0|MagicMirror  | Module helper loaded: MMM-Spotify
      0|MagicMirror  | [24.03.2022 15:06.18.021] [LOG]   
      0|MagicMirror  | Initializing new module helper ...
      0|MagicMirror  | [24.03.2022 15:06.18.026] [LOG]   
      0|MagicMirror  | Module helper loaded: MMM-MyCommute
      0|MagicMirror  | [24.03.2022 15:06.20.001] [LOG]   
      0|MagicMirror  | Initializing new module helper ...
      0|MagicMirror  | [24.03.2022 15:06.20.005] [LOG]   
      0|MagicMirror  | Check MagicMirror version for node helper 'MMM-GoogleBirthdaysProvider' - Minimum version: 2.6.0 - Current version: 2.18.0
      0|MagicMirror  | [24.03.2022 15:06.20.011] [LOG]   
      0|MagicMirror  | Version is ok!
      0|MagicMirror  | [24.03.2022 15:06.20.016] [LOG]   
      0|MagicMirror  | Module helper loaded: MMM-GoogleBirthdaysProvider
      0|MagicMirror  | [24.03.2022 15:06.20.521] [LOG]   
      0|MagicMirror  | Initializing new module helper ...
      0|MagicMirror  | [24.03.2022 15:06.20.526] [LOG]   
      0|MagicMirror  | Module helper loaded: MMM-homeassistant-sensors
      0|MagicMirror  | [24.03.2022 15:06.20.530] [LOG]   
      0|MagicMirror  | All module helpers loaded.
      0|MagicMirror  | [24.03.2022 15:06.20.716] [LOG]   
      0|MagicMirror  | Starting server on port 8080 ... 
      0|MagicMirror  | [24.03.2022 15:06.20.740] [LOG]   
      0|MagicMirror  | Server started ...
      0|MagicMirror  | [24.03.2022 15:06.20.745] [LOG]   
      0|MagicMirror  | Connecting socket for: updatenotification
      0|MagicMirror  | [24.03.2022 15:06.20.752] [LOG]   
      0|MagicMirror  | Starting module helper: updatenotification
      0|MagicMirror  | [24.03.2022 15:06.20.754] [LOG]   
      0|MagicMirror  | Connecting socket for: MMM-MyCalendar
      0|MagicMirror  | [24.03.2022 15:06.20.756] [LOG]   
      0|MagicMirror  | Starting node helper for: MMM-MyCalendar
      0|MagicMirror  | [24.03.2022 15:06.20.759] [LOG]   Connecting socket for: MMM-DarkSkyForecast
      0|MagicMirror  | [24.03.2022 15:06.20.761] [LOG]   ====================== Starting node_helper for module [MMM-DarkSkyForecast]
      0|MagicMirror  | [24.03.2022 15:06.20.764] [LOG]   
      0|MagicMirror  | Connecting socket for: newsfeed
      0|MagicMirror  | [24.03.2022 15:06.20.767] [LOG]   Starting node helper for: newsfeed
      0|MagicMirror  | [24.03.2022 15:06.20.769] [LOG]   Connecting socket for: MMM-GoogleAssistant
      0|MagicMirror  | [24.03.2022 15:06.20.796] [LOG]   
      0|MagicMirror  | [GA] Read config.js and check ConfigDeepMerge...
      0|MagicMirror  | [24.03.2022 15:06.20.798] [LOG]   
      0|MagicMirror  | [GA] Perfect ConfigDeepMerge activated!
      0|MagicMirror  | [24.03.2022 15:06.20.801] [LOG]   Connecting socket for: EXT-Detector
      0|MagicMirror  | [24.03.2022 15:06.20.807] [LOG]   
      0|MagicMirror  | [DETECTOR] EXT-Detector Version: 1.0.1 rev: 220315
      0|MagicMirror  | [24.03.2022 15:06.20.810] [LOG]   Connecting socket for: MMM-Spotify
      0|MagicMirror  | [24.03.2022 15:06.20.813] [LOG]   
      0|MagicMirror  | Connecting socket for: MMM-MyCommute
      0|MagicMirror  | [24.03.2022 15:06.20.816] [LOG]   
      0|MagicMirror  | ====================== Starting node_helper for module [MMM-MyCommute]
      0|MagicMirror  | [24.03.2022 15:06.20.818] [LOG]   Connecting socket for: MMM-GoogleBirthdaysProvider
      0|MagicMirror  | [24.03.2022 15:06.20.827] [LOG]   MMM-GoogleBirthdaysProvider: Server is running
      0|MagicMirror  | [24.03.2022 15:06.20.828] [LOG]   Connecting socket for: MMM-homeassistant-sensors
      0|MagicMirror  | [24.03.2022 15:06.20.830] [LOG]   
      0|MagicMirror  | Sockets connected & modules started ...
      0|MagicMirror  | Fontconfig warning: ignoring UTF-8: not a valid region tag
      0|MagicMirror  | [24.03.2022 15:06.21.240] [LOG]   
      0|MagicMirror  | Launching application.
      0|MagicMirror  | [28139:0324/150622.168731:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization
      0|MagicMirror  | [28180:0324/150622.489068:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.
      0|MagicMirror  | [24.03.2022 15:06.26.525] [LOG]   
      0|MagicMirror  | Create new calendar fetcher for url: https://xxxxxxxxxx - Interval: 300000
      0|MagicMirror  | [24.03.2022 15:06.26.590] [LOG]   
      0|MagicMirror  | Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/bg.bulgarian%23holiday%40group.v.calendar.google.com/public/basic.ics - Interval: 300000
      0|MagicMirror  | [24.03.2022 15:06.26.611] [LOG]   
      0|MagicMirror  | Create new calendar fetcher for url: http://localhost:8080/mmm-googlebirthdaysprovider - Interval: 300000
      0|MagicMirror  | [24.03.2022 15:06.26.728] [LOG]   
      0|MagicMirror  | Create new newsfetcher for url: https://www.investor.bg/news/rss/last/ - Interval: 300000
      0|MagicMirror  | [24.03.2022 15:06.26.763] [LOG]   
      0|MagicMirror  | [DETECTOR] Config: {
      0|MagicMirror  |   debug: true,
      0|MagicMirror  |   useIcon: true,
      0|MagicMirror  |   touchOnly: false,
      0|MagicMirror  |   snowboyMicConfig: {
      0|MagicMirror  |     recorder: 'auto',
      0|MagicMirror  |     device: 'default',
      0|MagicMirror  |     audioGain: 2,
      0|MagicMirror  |     applyFrontend: true
      0|MagicMirror  |   },
      0|MagicMirror  |   detectors: [
      0|MagicMirror  |     { detector: 'Snowboy', Model: 'jarvis', Sensitivity: null },
      0|MagicMirror  |     { detector: 'Porcupine', Model: 'ok google', Sensitivity: null },
      0|MagicMirror  |     { detector: 'Porcupine', Model: 'hey google', Sensitivity: null }
      0|MagicMirror  |   ],
      0|MagicMirror  |   mic: { recorder: 'auto', device: 'default' }
      0|MagicMirror  | }
      0|MagicMirror  | [24.03.2022 15:06.26.853] [INFO]  
      0|MagicMirror  | Checking git for module: MMM-MyCalendar
      0|MagicMirror  | [24.03.2022 15:06.26.933] [LOG]   
      0|MagicMirror  | [GA] MMM-GoogleAssistant Version: 4.0.2 rev: 220322
      0|MagicMirror  | [24.03.2022 15:06.26.952] [LOG]   
      0|MagicMirror  | [GA] Platform: 'raspberry-pi'; attempting to use 'arecord' to access microphone ...
      0|MagicMirror  | [24.03.2022 15:06.26.969] [LOG]   
      0|MagicMirror  | [GA] Google Assistant is initialized.
      0|MagicMirror  | [24.03.2022 15:06.26.983] [LOG]   
      0|MagicMirror  | [SPOTIFY] MMM-Spotify Version: 2.2.1
      0|MagicMirror  | [24.03.2022 15:06.27.129] [LOG]   
      0|MagicMirror  | [DETECTOR] Loaded: @bugsounet/porcupine
      0|MagicMirror  | [24.03.2022 15:06.27.599] [LOG]   
      0|MagicMirror  | [DETECTOR] Loaded: @bugsounet/snowboy
      0|MagicMirror  | [24.03.2022 15:06.27.602] [LOG]   
      0|MagicMirror  | [DETECTOR] All needed @bugsounet library loaded !
      0|MagicMirror  | [24.03.2022 15:06.27.615] [LOG]   
      0|MagicMirror  | [DETECTOR] Platform: 'raspberry-pi'; attempting to use 'arecord' to access microphone ...
      0|MagicMirror  | [24.03.2022 15:06.27.621] [LOG]   
      0|MagicMirror  | [DETECTOR] Porcupine DetectorConfig: [
      0|MagicMirror  |   { Model: 'ok google', Sensitivity: 0.7 },
      0|MagicMirror  |   { Model: 'hey google', Sensitivity: 0.7 }
      0|MagicMirror  | ]
      0|MagicMirror  | [24.03.2022 15:06.27.646] [LOG]   
      0|MagicMirror  | [PORCUPINE] Ready for listening this wake word(s): ok google,hey google
      0|MagicMirror  | [24.03.2022 15:06.27.652] [LOG]   
      0|MagicMirror  | [DETECTOR] Porcupine is initialized with 2 Models: ok google,hey google
      0|MagicMirror  | [24.03.2022 15:06.27.659] [LOG]   
      0|MagicMirror  | [DETECTOR] Snowboy DetectorConfig: [ { detector: 'Snowboy', Model: 'jarvis', Sensitivity: null } ]
      0|MagicMirror  | [24.03.2022 15:06.27.665] [LOG]   
      0|MagicMirror  | [SNOWBOY] Checking models
      0|MagicMirror  | [24.03.2022 15:06.27.670] [LOG]   
      0|MagicMirror  | [SNOWBOY] Model selected: jarvis
      0|MagicMirror  | [24.03.2022 15:06.27.671] [LOG]   [SNOWBOY] Sensitivity set: 0.7,0.7
      0|MagicMirror  | [24.03.2022 15:06.27.676] [LOG]   
      0|MagicMirror  | [DETECTOR] Snowboy is initialized with 1 Models: jarvis
      0|MagicMirror  | [24.03.2022 15:06.27.730] [INFO]  
      0|MagicMirror  | Checking git for module: MMM-DarkSkyForecast
      0|MagicMirror  | [24.03.2022 15:06.27.873] [INFO]  
      0|MagicMirror  | Checking git for module: MMM-GoogleAssistant
      0|MagicMirror  | [24.03.2022 15:06.29.098] [INFO]  
      0|MagicMirror  | Checking git for module: EXT-Detector
      0|MagicMirror  | [24.03.2022 15:06.29.630] [INFO]  
      0|MagicMirror  | Checking git for module: MMM-Spotify
      0|MagicMirror  | [24.03.2022 15:06.29.743] [INFO]  
      0|MagicMirror  | Newsfeed-Fetcher: Broadcasting 20 items.
      0|MagicMirror  | [24.03.2022 15:06.29.810] [INFO]  
      0|MagicMirror  | Checking git for module: MMM-MyCommute
      0|MagicMirror  | [24.03.2022 15:06.29.980] [INFO]  
      0|MagicMirror  | Checking git for module: MMM-GoogleBirthdaysProvider
      0|MagicMirror  | [24.03.2022 15:06.30.519] [INFO]  
      0|MagicMirror  | Checking git for module: MMM-homeassistant-sensors
      0|MagicMirror  | [24.03.2022 15:06.30.693] [INFO]  
      0|MagicMirror  | Checking git for module: default
      

      arecord -l output:

      **** List of CAPTURE Hardware Devices ****
      card 2: CameraB404271 [USB Camera-B4.04.27.1], device 0: USB Audio [USB Audio]
        Subdevices: 1/1
        Subdevice #0: subdevice #0
      

      /home/pi/.asoundrc contents

      pcm.!default {
        type asym
        capture.pcm "mic"
      }
      pcm.mic {
        type plug
        slave {
          pcm "hw:2,0"
        }
      }
      
      1 Reply Last reply Reply Quote 0
      • bugsounet
        bugsounet Main Coder last edited by

        EXT-Detector is a plug-in so what MMM-GoogleAssistant wiki says?

        1 Reply Last reply Reply Quote 0
        • D
          denis4o last edited by

          @bugsounet got it! Thanks. I was coming from MMM-GoogleAssistant v3 with a separate Snowboy module thus the confusion. Now everything is working.

          1 Reply Last reply Reply Quote 0
          • Topic has been marked as solved  D denis4o 
          • First post
            Last post
          Powered by NodeBB | @bugsounet ©2022