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 setup but MagicMirror wont display

    Scheduled Pinned Locked Moved Troubleshooting
    31 Posts 4 Posters 16.9k Views 4 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
      shazglass @shazglass
      last edited by

      I have my mic plugged into a USB sound card on my pi. Is that ok, or should I plug it directly into the audio of the pi? My mic is not a USB connection.

      1 Reply Last reply Reply Quote 0
      • C Offline
        cyberphox
        last edited by

        Run this from terminal

        cat /proc/asound/cards

        and see if your microphone is listed as : 1

        Full time Dad, DJ and entertainer and lover of technology.

        S 1 Reply Last reply Reply Quote 1
        • S Offline
          shazglass @cyberphox
          last edited by

          @cyberphox said in MMM-voice setup but MagicMirror wont display:

          cat /proc/asound/cards

          this is the response:

          pi@raspberrypi:~ $ cat /proc/asound/cards
          0 [ALSA ]: bcm2835_alsa - bcm2835 ALSA
          bcm2835 ALSA
          pi@raspberrypi:~ $

          1 Reply Last reply Reply Quote 0
          • S Offline
            shazglass
            last edited by

            @cyberphox said in MMM-voice setup but MagicMirror wont display:

            cat /proc/asound/cards

            the one above I took the USB sound card out and plugged the mic directly to the pi.

            this one I did your command again with the sound card in the USB slot and mic connected to USB sound card:
            pi@raspberrypi:~ $ cat /proc/asound/cards
            0 [ALSA ]: bcm2835_alsa - bcm2835 ALSA
            bcm2835 ALSA
            1 [Device ]: USB-Audio - USB Audio Device
            GeneralPlus USB Audio Device at usb-3f980000.usb-1.3, full speed

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              shazglass @shazglass
              last edited by

              I have gone onto the pi itself and chossen the usb as an audio device with clicking microphone and microphone capture… but still shows the “error” in MM display.

              1 Reply Last reply Reply Quote 0
              • C Offline
                cyberphox
                last edited by

                and you ran the dependencies script from the installers folder?

                Full time Dad, DJ and entertainer and lover of technology.

                S 1 Reply Last reply Reply Quote 0
                • C Offline
                  cyberphox
                  last edited by

                  mine was error cause i accidentally cloned into MMM-Voice…capital V and it didnt create the dic file…
                  maybe try running npm start dev and see what errors you have in the console

                  Full time Dad, DJ and entertainer and lover of technology.

                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    shazglass @cyberphox
                    last edited by

                    @cyberphox yes, that I def did -was super careful with that.

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      shazglass @cyberphox
                      last edited by

                      @cyberphox heres what I get with the npm start dev…not sure I am doing this in the right dir. I checked the Capital V or v, and mine is def lowercase v

                      pi@raspberrypi:~/MagicMirror/modules/MMM-voice $ npm start dev
                      npm ERR! missing script: start

                      npm ERR! A complete log of this run can be found in:
                      npm ERR! /home/pi/.npm/_logs/2018-04-07T15_24_32_070Z-debug.log

                      S 1 Reply Last reply Reply Quote 0
                      • S Offline
                        shazglass @shazglass
                        last edited by

                        pi@raspberrypi:~/MagicMirror $ npm start dev

                        magicmirror@2.3.1 start /home/pi/MagicMirror
                        sh run-start.sh “dev”

                        Starting MagicMirror: v2.3.1
                        Loading config …
                        Loading module helpers …
                        No helper found for module: alert.
                        Initializing new module helper …
                        Module helper loaded: updatenotification
                        No helper found for module: clock.
                        Initializing new module helper …
                        Module helper loaded: MMM-EARTH
                        No helper found for module: compliments.
                        No helper found for module: currentweather.
                        No helper found for module: weatherforecast.
                        No helper found for module: MMM-CountDown.
                        Initializing new module helper …
                        Module helper loaded: MMM-voice
                        No helper found for module: MMM-QRCode.
                        Initializing new module helper …
                        Module helper loaded: newsfeed
                        All module helpers loaded.
                        Starting server on port 8080 …
                        Server started …
                        Connecting socket for: updatenotification
                        Connecting socket for: MMM-EARTH
                        Starting module: MMM-EARTH
                        Connecting socket for: MMM-voice
                        Starting module helper: MMM-voice
                        Connecting socket for: newsfeed
                        Starting module: newsfeed
                        Sockets connected & modules started …
                        Launching application.
                        https://epic.gsfc.nasa.gov/api/natural
                        Create new news fetcher for url: http://ewn.co.za/RSS Feeds/Latest News - Interval: 300000
                        MMM-voice: Checking files.
                        MMM-voice: Starting pocketsphinx.
                        Shutting down server…
                        Stopping module helper: updatenotification
                        Stopping module helper: MMM-EARTH
                        Stopping module helper: MMM-voice
                        Stopping module helper: newsfeed

                        1 Reply Last reply Reply Quote 0
                        • C Offline
                          cyberphox
                          last edited by

                          is the dev window…check the console tab…look for errors

                          Full time Dad, DJ and entertainer and lover of technology.

                          S 1 Reply Last reply Reply Quote 0
                          • S Offline
                            shazglass @cyberphox
                            last edited by

                            @cyberphox hi… I am so hard trying not to be an ass… but I dont know what you mean? Sorry…I am serously a 5 day taught myself to help my son with his project.

                            Mykle1M 1 Reply Last reply Reply Quote 0
                            • Mykle1M Offline
                              Mykle1 Project Sponsor Module Developer @shazglass
                              last edited by

                              @shazglass said in MMM-voice setup but MagicMirror wont display:

                              I am serously a 5 day taught myself to help my son with his project.

                              No worries dude. Personally, I’m glad to see you involved with your son. That’s how this started for me. I wanted to have something in common with my 21 year old son so I could stay “cool” in his eyes. Now . . .

                              I don’t use voice on my Pi mirror anymore but I do use it extensively on other boards. This is what I remember.

                              • I didn’t use a 3rd party sound card
                              • USB microphone plugged directly into USB port of the Pi
                              • Needing to run alsamixer in a terminal window to set mic/capture device.
                              • Testing mic by recording your voice (forgot command - google it)

                              After that, installing MMM-voice, paying careful attention to the directions on how to install the dependencies. If at this point the module runs but displays a microphone and the word “ERROR” then I can help you. If, on the other hand, the module does not run and errors in the terminal or the dev console then something in your beginning steps is amiss

                              Create a working config
                              How to add modules

                              S 1 Reply Last reply Reply Quote 2
                              • S Offline
                                shazglass @Mykle1
                                last edited by

                                @Mykle1 Good morning.
                                thank you for the reply, makes a lot of sense. I don’t know how to run alsamixer? which directory would I do that in. I have tested the mic and it def works. I am at the point where it displays a microphone with ERROR showing. Sometimes it says , INITIALISING, CHOOSE MODE, then straight away shows ERROR again. Is there something on the pi I need to configure? thnx again Mykle, and I am a mom to a 15 year old :)

                                strawberry 3.141S Mykle1M 2 Replies Last reply Reply Quote 0
                                • strawberry 3.141S Offline
                                  strawberry 3.141 Project Sponsor Module Developer @shazglass
                                  last edited by

                                  @shazglass There is a error log in the module. Also there is a hidden debug option for for informations debug: true

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

                                  S 1 Reply Last reply Reply Quote 1
                                  • S Offline
                                    shazglass @strawberry 3.141
                                    last edited by

                                    @strawberry-3.141 Hi - thank you for your reply. Ok, so how do I fix the error log in the module? and where must i type debug: true? Sorry for being a pain - like I said, I have no idea, I am seriously just helping my son, who also just taught himself by reading all of this information.

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

                                      @shazglass

                                      {
                                        module: 'MMM-voice',
                                        position: 'bottom_bar',
                                        config: {
                                          microphone: 1,
                                          debug: true
                                        }
                                      },
                                      

                                      post your error and debug log, it’s huge so maybe on pastebin

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

                                      S 1 Reply Last reply Reply Quote 1
                                      • S Offline
                                        shazglass @strawberry 3.141
                                        last edited by yawns

                                        @strawberry-3.141

                                        /* Magic Mirror Config Sample
                                         *
                                         * By Michael Teeuw http://michaelteeuw.nl
                                         * MIT Licensed.
                                         *
                                         * For more information how you can configurate this file
                                         * See https://github.com/MichMich/MagicMirror#configuration
                                         *
                                         */
                                        
                                        var config = {
                                        	address: "localhost", // Address to listen on, can be:
                                        	                      // - "localhost", "127.0.0.1", "::1" to listen on loopback interface
                                        	                      // - another specific IPv4/6 to listen on a specific interface
                                        	                      // - "", "0.0.0.0", "::" to listen on any interface
                                        	                      // Default, when address config is left out, is "localhost"
                                        	port: 8080,
                                        	ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses
                                        	                                                       // or add a specific IPv4 of 192.168.1.5 :
                                        	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.1.5"],
                                        	                                                       // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
                                        	                                                       // ["127.0.0.1", "::ffff:127.0.0.1", "::1", "::ffff:192.168.3.0/28"],
                                        
                                        	language: "en",
                                        	timeFormat: 24,
                                        	units: "metric",
                                        
                                        	modules: [
                                        		{
                                        			module: "alert",
                                        		},
                                        		{
                                        			module: "updatenotification",
                                        			position: "top_bar"
                                        		},
                                        		{
                                        			module: "clock",
                                        			position: "top_left"
                                        		},
                                        		{
                                        			module: "mmm-systemtemperature",
                                        			position: "top_center",	
                                        			classes: 'small dimmed', 		
                                        		},
                                        		{
                                            			module: "MMM-Lunartic",
                                            			position: "top_center",                   
                                            			config: { 
                                        					image: "animation",                    
                                        					distance: "km",                      
                                        					useHeader: true,                      
                                        					header: "The Moon",   
                                        					maxWidth: "300px",
                                        					animationSpeed: 3000,                   
                                            			}
                                        		},
                                        		{
                                        			module: "compliments",
                                        			position: "lower_third",
                                        			config: {
                                        				compliments: {
                                        					anytime: [
                                        						"Hey there Tyler!"
                                        					],
                                        					morning: [
                                        						"Good morning, Tyler!",
                                        						"Enjoy your day!",
                                        						"How was your sleep Tyler?"
                                        					],
                                        					afternoon: [
                                        						"Hello, Tyler!",
                                        						"How was school Tyler?",
                                        						"Looking good today!"
                                        					],
                                        					evening: [
                                        						"Have a great evening!",
                                        						"You look nice!",
                                        						"Sleep well Tyler!"
                                        					]
                                        				}
                                        			}
                                        		},
                                        		{
                                        			module: "currentweather",
                                        			position: "top_right",
                                        			config: {
                                        				location: "Johannesburg,South_Africa",
                                        				locationID: "3362024",  //ID from http://www.openweathermap.org/help/city_list.txt
                                        				appid: "9cb2b560a465957274fa56860a202af5"
                                        			}
                                        		},
                                        		{
                                        			module: "weatherforecast",
                                        			position: "top_right",
                                        			header: "Weather Forecast",
                                        			config: {
                                        				location: "Johannesburg,South_Africa",
                                        				locationID: "3362024",  //ID from http://www.openweathermap.org/help/city_list.txt
                                        				appid: "c65138e0beb14c63bdf5f804f8816f74"
                                        			}
                                        		},
                                        		{
                                        			module: "MMM-CountDown",
                                        			position: "bottom_right",
                                        			config: {
                                        				event: "End of Term 2",
                                        				date: "2018-06-22",
                                        			}
                                        		},
                                        		{
                                        			module: "MMM-voice",
                                        			position: "bottom_bar",
                                        			config: {
                                        				microphone: 1,
                                        			debug: true
                                            			}
                                        		},
                                        		{
                                        			module: "MMM-QRCode",
                                        			position: "bottom_left",
                                        			config: {
                                        				text: " Scan to join Home Wifi",
                                        				colorDark  : "#fff",
                                        				colorLight : "#000",
                                                			imageSize  : 60,               
                                                			showRaw    : false,
                                        			}
                                        		},
                                        		{
                                        			module: "newsfeed",
                                        			position: "bottom_bar",
                                        			config: {
                                        				feeds: [
                                        					{
                                        						title: "EWN News",
                                        						url: "http://ewn.co.za/RSS%20Feeds/Latest%20News"
                                        					}
                                        				],
                                        				showSourceTitle: true,
                                        				showPublishDate: true
                                        			}
                                        		},
                                        	]
                                        
                                        };
                                        
                                        /*************** DO NOT EDIT THE LINE BELOW ***************/
                                        if (typeof module !== "undefined") {module.exports = config;}
                                        

                                        This is my config/config.js I have no clue whats wrong, but things arent even in the same place as before? The QRCode is higher, the Countdown is higher, the Moon thing is squashed. I think I am killing my sons project. The MM shows the mic display but says ERROR then UNDEFINED.

                                        1 Reply Last reply Reply Quote 0
                                        • Mykle1M Offline
                                          Mykle1 Project Sponsor Module Developer @shazglass
                                          last edited by

                                          @shazglass said in MMM-voice setup but MagicMirror wont display:

                                          thnx again Mykle, and I am a mom to a 15 year old :)

                                          That is fantastic, and you are most welcome. I will leave you in the hands of @strawberry 3.141. He is the author of MMM-voice and best qualified to help you. If there is anything else that I can help you with, just ask, or PM me.

                                          A chilly, sunny NYC morning to you. :-)

                                          Create a working config
                                          How to add modules

                                          S 2 Replies Last reply Reply Quote 1
                                          • S Offline
                                            shazglass @Mykle1
                                            last edited by

                                            @Mykle1 Thank you!! I hope I can help my son with this! Thank you for your help, I seriously appreciate your time.
                                            From a hot sunny South Africa;)

                                            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
                                            • 1 / 2
                                            • 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