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.

    MMM-voice

    Scheduled Pinned Locked Moved Utilities
    voice control
    329 Posts 55 Posters 1.0m Views 50 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.
    • strawberry 3.141S Offline
      strawberry 3.141 Project Sponsor Module Developer @daenick
      last edited by

      @daenick remove the node_modules folder in MagicMirror/modules/MMM-voice first and go into /root/pocketsphinx and execute sudo make uninstall same in /root/sphinxbase then rerun the installer

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

      daenickD 2 Replies Last reply Reply Quote 0
      • daenickD Offline
        daenick @strawberry 3.141
        last edited by daenick

        @strawberry-3.141 I ran the bash without the sudo. Finish ok

        1 Reply Last reply Reply Quote 0
        • daenickD Offline
          daenick @strawberry 3.141
          last edited by

          @strawberry-3.141 Hello Again,

          Finnaly I got the MMM-voice installed, but how can I set the micro as default? Sometimes the micro can “hear me” but mostly of time no

          There´s some kind of special configuration with the micro?

          Thanks!

          1 Reply Last reply Reply Quote 0
          • A Offline
            Advokaten
            last edited by Advokaten

            @strawberry-3-141
            I get this error (or is it?) when starting MagicMirror.

            MMM-voice: Starting pocketsphinx.
            (node:1844) DeprecationWarning: Calling an asynchronous function without callback is deprecated.
            (node:1844) DeprecationWarning: Calling an asynchronous function without callback is deprecated.
            (node:1844) DeprecationWarning: Calling an asynchronous function without callback is deprecated.
            (node:1844) DeprecationWarning: Calling an asynchronous function without callback is deprecated.
            (node:1844) DeprecationWarning: Calling an asynchronous function without callback is deprecated.

            The microphone icon appears and after it it states “ERROR”, within MagicMirror.

            Thanks!

            1 Reply Last reply Reply Quote 0
            • strawberry 3.141S Offline
              strawberry 3.141 Project Sponsor Module Developer
              last edited by

              @daenick can you give more details about the issue? the only thing that is configurable is the mic the module should use like microphone: 0 or microphone: 1 …

              @Advokaten what is inside the error.log, if you only can see numbers in there please enable debug: true in the config and share the debug.log

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

              A daenickD 2 Replies Last reply Reply Quote 0
              • A Offline
                Advokaten @strawberry 3.141
                last edited by Advokaten

                @strawberry-3.141

                error.log says 11111111

                debug.log in /home/pi/MagicMirror/modules/MMM-voice ? There’s a ton of INFO: lines and at the bottom it says
                Error opening audio device plughw:1 for capture: Connection refused
                FATAL: "continuous.c", line 245: Failed to open audio device

                It works fine with Alexa.

                EDIT: When I added debug: true to the config file. When MagicMirror is up, it says “ERROR undefined” rather than just “ERROR”, like it did before.

                strawberry 3.141S 1 Reply Last reply Reply Quote 0
                • strawberry 3.141S Offline
                  strawberry 3.141 Project Sponsor Module Developer @Advokaten
                  last edited by

                  @Advokaten did you choose the correct audio device id?

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

                  A 1 Reply Last reply Reply Quote 0
                  • A Offline
                    Advokaten @strawberry 3.141
                    last edited by

                    @strawberry-3.141 when installing it said my mic was 1 so that’s what I have in my config. I tried doing microphone: 0 but that didn’t work either.

                    strawberry 3.141S 1 Reply Last reply Reply Quote 0
                    • strawberry 3.141S Offline
                      strawberry 3.141 Project Sponsor Module Developer @Advokaten
                      last edited by strawberry 3.141

                      @Advokaten can you check out this? http://cmusphinx.sourceforge.net/wiki/faq#qfailed_to_open_audio_device_dev_dspno_such_file_or_directory and troubleshoot section here http://robot.laylamah.com/?p=35

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

                      A 1 Reply Last reply Reply Quote 0
                      • daenickD Offline
                        daenick @strawberry 3.141
                        last edited by daenick

                        @strawberry-3.141 The voice recognition works extremely slow. There’s a way to use Spanish as default language for voice commands?

                        Maybe using Google voice API?

                        Thanks

                        strawberry 3.141S 1 Reply Last reply Reply Quote 0
                        • strawberry 3.141S Offline
                          strawberry 3.141 Project Sponsor Module Developer @daenick
                          last edited by strawberry 3.141

                          @daenick please read this https://github.com/fewieden/MMM-voice#information if you want to use faster detection you have to use a different module as this one will never support online services like google, apple, amazon, etc.

                          there are some custom language models for other languages https://sourceforge.net/projects/cmusphinx/files/Acoustic and Language Models/

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

                          1 Reply Last reply Reply Quote 1
                          • A Offline
                            Advokaten @strawberry 3.141
                            last edited by

                            @strawberry-3.141 I’m lost. Still can’t figure out what’s wrong. :(

                            strawberry 3.141S 1 Reply Last reply Reply Quote 0
                            • strawberry 3.141S Offline
                              strawberry 3.141 Project Sponsor Module Developer @Advokaten
                              last edited by

                              @Advokaten did you try what the second link suggested?

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

                              A 1 Reply Last reply Reply Quote 0
                              • A Offline
                                Advokaten @strawberry 3.141
                                last edited by Advokaten

                                @strawberry-3.141 Yes, sir! The ERROR text is gone. Now it’s displaying “Initialising…” and the mic icon has a slash through it and is blinking infinitely. I bet I’m doing a rookie mistake somewhere.

                                strawberry 3.141S 1 Reply Last reply Reply Quote 0
                                • strawberry 3.141S Offline
                                  strawberry 3.141 Project Sponsor Module Developer @Advokaten
                                  last edited by

                                  @Advokaten never had this happened before neither did someone report this issue. I would need to see it myself in order to debug it.

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

                                  A 1 Reply Last reply Reply Quote 0
                                  • A Offline
                                    Advokaten @strawberry 3.141
                                    last edited by Advokaten

                                    @strawberry-3.141 I tried reinstalling it with bash dependencies.sh and it’s back to “ERROR”. Derp.

                                    Looking at error.log in the MMM-voice folder I can find:

                                    Error opening audio device plughw:1,0 for capture: Connection refused
                                    FATAL: "continuous.c", line 245: Failed to open audio device

                                    Somebody gave a suggestion on running:

                                    pocketsphinx_continuous -inmic yes -adcdev plughw:1,0

                                    That too gave me:

                                    Error opening audio device plughw:1,0 for capture: Connection refused
                                    FATAL: "continuous.c", line 245: Failed to open audio device

                                    I haven’t attached anything to my RPi except for an USB microphone.

                                    strawberry 3.141S 1 Reply Last reply Reply Quote 0
                                    • strawberry 3.141S Offline
                                      strawberry 3.141 Project Sponsor Module Developer @Advokaten
                                      last edited by

                                      @Advokaten did. you disable pulseaudio like in the Link?

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

                                      A 1 Reply Last reply Reply Quote 0
                                      • A Offline
                                        Advokaten @strawberry 3.141
                                        last edited by

                                        @strawberry-3.141 Yes.

                                        checking pulse/pulseaudio.h usability... no
                                        checking pulse/pulseaudio.h presence... no
                                        checking for pulse/pulseaudio.h... no
                                        checking alsa/asoundlib.h usability... yes
                                        checking alsa/asoundlib.h presence... yes
                                        checking for alsa/asoundlib.h... yes

                                        1 Reply Last reply Reply Quote 0
                                        • P Offline
                                          pepemujica
                                          last edited by

                                          Hi @strawberry-3-141 Now when I launch the mirror first it says “ready choose a mode” and after a few secnods “error” any idea why?

                                          A 1 Reply Last reply Reply Quote 0
                                          • A Offline
                                            Advokaten @pepemujica
                                            last edited by

                                            @pepemujica if you scroll to the bottom in your error.log, what does it say? I also cannot get it started.

                                            P 1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 8
                                            • 9
                                            • 10
                                            • 11
                                            • 12
                                            • 16
                                            • 17
                                            • 10 / 17
                                            • 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