• 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.

MMM-AssistantMk2

Scheduled Pinned Locked Moved System
421 Posts 61 Posters 470.6k Views 57 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
    Sun @Guest
    last edited by Jul 24, 2018, 2:42 AM

    @sean How to change the piping Linear 16 to ogg. Can I just put ogg in the

    encodingOut: “OPUS_IN_OGG”,

    ? 1 Reply Last reply Jul 24, 2018, 4:47 AM Reply Quote 0
    • ? Offline
      A Former User @Sun
      last edited by Jul 24, 2018, 4:47 AM

      @sun
      No, mp3 and Ogg should be written to file or piping to proper player, frankly I didn’t implement those function, because I thought nobody needs.
      I’ll try those till next update.

      1 Reply Last reply Reply Quote 0
      • J Offline
        jomwells
        last edited by Jul 24, 2018, 3:38 PM

        Thank you, I will look into piping the audio, but its unlikely I will get very far :)

        Question: is it possible to run terminal commands at the different stages of MMM-AssistantMk2, such as running a command to turn on a GPIO pin (using the built in ‘GPIO write X 1’ ) when the module begins listening, and turning it off again when it is understanding, or speaking perhaps? the use case for which would be a status LED on the mirror. Thanks again.

        ? 1 Reply Last reply Jul 24, 2018, 4:10 PM Reply Quote 0
        • ? Offline
          A Former User @jomwells
          last edited by Jul 24, 2018, 4:10 PM

          @jomwells
          You can fork my repository to yours and modify it.
          When you want to relay status to other modules, add .sendNotification() in ’socketNotificationReceived()’ of AssistantMk2.js where proper event is located.
          When you want to do something directly, add your job in ’Conversation.on(EVENT)’ of node_helper.js.

          1 Reply Last reply Reply Quote 0
          • S Offline
            Sun
            last edited by Jul 25, 2018, 4:08 AM

            1. What else do I need to do for install for mmm-assistantmk2 to play youtube.

            2. I try the same command say Celine Dion The power of love. Then pop up below detail about Celine Dion and the youtube video automatically pop up but cannot play anything.

            3. My magic mirror is vertical mode, rotate = 1 . I try to adjust from your height 480 width 854 of display but it also show in vertical mode height 480 with 640 also height 640 width 480. No different.

            ? 1 Reply Last reply Jul 25, 2018, 5:06 AM Reply Quote 0
            • ? Offline
              A Former User @Sun
              last edited by Jul 25, 2018, 5:06 AM

              @sun

              • Some youtube videos are not allowed for embedded player.
              • some videos are not caught, it will be fixed.
              • some videos are not only video but playlist, so it is not caught, but it will be fixed also.
              • sometime Google gives no information about youtube. I guess smart tv is using not only YouTube but also other dedicated apps for music and video, yogether
              D 1 Reply Last reply Aug 21, 2018, 9:44 AM Reply Quote 0
              • J Offline
                JRCelis @jomwells
                last edited by Aug 8, 2018, 5:39 PM

                @jomwells

                I get the same issue, I hear a buzz at the beginning of the answered sentences in my speaker and clear voice after two seconds of the sentences start.

                ? 1 Reply Last reply Aug 8, 2018, 5:46 PM Reply Quote 0
                • ? Offline
                  A Former User @JRCelis
                  last edited by Aug 8, 2018, 5:46 PM

                  @jrcelis
                  What kind of speaker do you use? Analog? HDMI output? USB? Bluetooth?
                  Except for Bluetooth speaker, All others could have buzz sound.

                  J T 2 Replies Last reply Aug 8, 2018, 5:57 PM Reply Quote 0
                  • J Offline
                    JRCelis @Guest
                    last edited by Aug 8, 2018, 5:57 PM

                    @sean
                    Hello @Sean and thanks for your help. I’m using the speaker that is coming with Google Voice Kit V1 and is working fine when I’m testing the sound, no buzz or distorted sound and the beginning of the sentences, the issue starts when I click the speaker icon when MMM-assistantk2 is running, the assistants answer start whit a big distorted noise o buzz and then will be fine.

                    ? 1 Reply Last reply Aug 8, 2018, 6:12 PM Reply Quote 0
                    • ? Offline
                      A Former User @JRCelis
                      last edited by Aug 8, 2018, 6:12 PM

                      @jrcelis
                      Unfortunately, I’m not an expert in sound configuration.
                      I use node module speaker for output. The buffered voice output from Google Assistant Server is directly piped to speaker module. And there is narrowly little margin to control speaker module.

                      My guess is, burden of system could make some delay causing distortion. but just guessing.

                      Anyway, I’m considering to convert voice output to mp3 file then play it. but it needs somewhat computing power, so I’m not sure whether it will be really good for RPI.
                      Or I will search other solution for better result.

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 42
                      • 43
                      • 4 / 43
                      • 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