• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

Microphone/MMM-voice Help

Scheduled Pinned Locked Moved Troubleshooting
31 Posts 7 Posters 12.4k Views 7 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.
  • S Offline
    sdetweil @tnp0327
    last edited by Jun 19, 2018, 11:45 AM

    have u restarted the mirror a few times, without reboot?

    the sound process does NOT get restarted…

    get back to the commandline and do

    ps -ef | grep pocket

    and then kill that process so it can be restarted…

    or reboot…

    i created this little script for a prior mirror runtime that I use here too

    #!/bin/bash
    
    ps -ef | grep pocket | grep -v "color=auto" | awk '{print $2}' | xargs sudo kill -9
    ps -ef | grep node | grep -v "color=auto"  | awk '{print $2}' | xargs sudo kill -9
    

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    T 1 Reply Last reply Jun 19, 2018, 11:53 AM Reply Quote 0
    • T Offline
      tnp0327 @sdetweil
      last edited by Jun 19, 2018, 11:53 AM

      @sdetweil I have restarted the MM process and rebooted the PI - still no debug.log file.

      S 1 Reply Last reply Jun 19, 2018, 11:57 AM Reply Quote 0
      • S Offline
        sdetweil @tnp0327
        last edited by sdetweil Jun 19, 2018, 11:57 AM Jun 19, 2018, 11:57 AM

        @tnp0327 can u minimize the mirror and look at the console log of the terminal window… maybe there is some other error…

        minimize = alt-spacebar, n

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • T Offline
          tnp0327
          last edited by Jun 19, 2018, 12:10 PM

          @sdetweil @strawberry-3-141 so I did not find a debug file but was able to follow the instructions to look at the console log and the only message I am seeing regarding MMM-voice is:

          Starting module: MMM-voice MMM-voice.js:82
          MMM-voice is waiting for voice command registrations. MMM-voice.js:85

          S 1 Reply Last reply Jun 19, 2018, 12:19 PM Reply Quote 0
          • S Offline
            sdetweil @tnp0327
            last edited by Jun 19, 2018, 12:19 PM

            @tnp0327 before the modules is the startup of the node_helpers… if u can scroll back up the console window, you might find something else…

            have u tested to make sure the mic is working? with the rec command?

            rec somefile.wav

            on the bottom of the console window should be a meter like bar that moves when u speak…
            then you can control-z out of the rec command and then play somefile.wav to see how it sounds…

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • T Offline
              tnp0327
              last edited by Jun 19, 2018, 12:22 PM

              OMW to work now - will run it again later and update with my feedback. Thanks for the help so far.

              A 1 Reply Last reply Jul 28, 2018, 8:41 PM Reply Quote 0
              • A Offline
                Abhilash1368 @tnp0327
                last edited by Jul 28, 2018, 8:41 PM

                @tnp0327 I am going through same thing,it displays mic flashing symbol and just says initialising and undefined at bottom(if degug:true).Did you resolve it?please let me how to make it work?
                Thanks

                S 1 Reply Last reply Jul 29, 2018, 4:20 PM Reply Quote 0
                • S Offline
                  strawberry 3.141 Project Sponsor Module Developer @Abhilash1368
                  last edited by Jul 29, 2018, 4:20 PM

                  @abhilash1368 do you have content in your debug log file?

                  Please create a github issue if you need help, so I can keep track

                  A 1 Reply Last reply Jul 31, 2018, 1:23 AM Reply Quote 0
                  • A Offline
                    Abhilash1368 @strawberry 3.141
                    last edited by Jul 31, 2018, 1:23 AM

                    @strawberry-3-141 I don’t see any content,but its working now.Initially I have my own custom twitter module loaded along with MMM-voice(my twitter.js is not modified yet to support MMM-voice). Once after making changes to my twitter.js according to “Hey Lucy” documentation to receive voice notifications,then it is started working. Thanks

                    1 Reply Last reply Reply Quote 0
                    • R Offline
                      richland007
                      last edited by Jul 31, 2018, 2:24 AM

                      @strawberry-3-141 Ok so i have a very similar situation i have AlexaPi (and MMM-AlexaPi for visual feedback) and want to use MMM-voice and Hello-Lucy. I have 2 USB microphones (a webcam that i talk to AlexaPI and a USB sound card that i want to use for MMM-voice)
                      On the config.js i have assigned microphone id of 2 for MMM-voice ( arecord -l and the install of MMM-voice show that alsa as 0 USB webcam as card 1 and USB sound card as card 2)
                      when i start magic mirror MMM-voice says “initializing” than briefly “Waiting for module commands” than settles on “error”
                      My questions are:

                      1. and i am pretty sure i have an answer for this is that AlexaPi and MMM-voice can they use the same mic or not … most likely not .
                      2. why isn’t using microphone #2 straight forward do i have to twitch anything on alsa config, etc will pulse audio be better and what is the difference ?? how do we mitigate this problem??

                      I have tested and confirmed that both usb microphones work when they are plugged each by themselves but not when they are both simultaneously plugged in only the webcam would record … i am not sure if i am putting the right parameter here “arecord hw:1,0 -d 10 /tmp/test-mic.wav”

                      Please any help will be greatly appreciated
                      Denis

                      T 1 Reply Last reply Jan 8, 2020, 7:31 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 2 / 4
                      • 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