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

Yet Another Voice Module (Sphinx + Alexa)

Scheduled Pinned Locked Moved Development
40 Posts 6 Posters 33.0k Views 6 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.
  • D Offline
    d3r @whyjustin
    last edited by Sep 19, 2016, 11:55 PM

    @whyjustin said in Yet Another Voice Module (Sphinx + Alexa):

    The oauth service can run on any port, I believe that 3000 may been taken by another process on my raspberry pi (either by Magic Mirror or something else) which is I why I used 5555. I think there is some redundancy in the three options (port/serviceUrl/redirectUrl) but it is required to keep the same port and hostname on all three. If you choose to keep 5555, you will have to update the Alexa settings that you previously set up to indicate the proper port:
    https://github.com/alexa/alexa-avs-raspberry-pi/blob/master/assets/avs-web-settings-filled.png

    Thank you.
    Changed the port on the amazon website and I got it to work.
    Your module is awesome! This is really good.

    W 1 Reply Last reply Sep 20, 2016, 4:49 PM Reply Quote 0
    • W Offline
      whyjustin @d3r
      last edited by Sep 20, 2016, 4:49 PM

      @d3r said in Yet Another Voice Module (Sphinx + Alexa):

      Your module is awesome! This is really good.

      Thanks, good to hear it’s working. Let me know if you have any other difficulties or feature requests. As mentioned to @cowboysdude, it is easiest for me to track these through GitHub Issues. Cheers.

      1 Reply Last reply Reply Quote 0
      • C Offline
        clumsy_ninja
        last edited by Nov 18, 2016, 2:34 AM

        @whyjustin What kind of visual feedback does it display on the mirror?

        D 1 Reply Last reply Nov 18, 2016, 3:54 PM Reply Quote 0
        • D Offline
          d3r @clumsy_ninja
          last edited by Nov 18, 2016, 3:54 PM

          @clumsy_ninja This module has no visual feedback. You only get an audio prompt which indicates that alexa is listening and a second audio prompt when the audio stops.

          1 Reply Last reply Reply Quote 0
          • C Offline
            clumsy_ninja
            last edited by Nov 19, 2016, 7:01 AM

            @d3r Thanks. I’ve been looking at AlexaPi and i’m not sure how similar the code is but i did notice is has led’s indicating the status (listening, processing, speaking).
            https://github.com/alexa-pi/AlexaPi

            What i really want to achieve is a module for the mirror which shows the visual feedback with a microphone icon and also show the GUI cards alexa service returns. Problem is I’m not sure how to make this hahah I’m only use to writing in C and Java.

            W 1 Reply Last reply Nov 21, 2016, 6:46 PM Reply Quote 0
            • W Offline
              whyjustin @clumsy_ninja
              last edited by Nov 21, 2016, 6:46 PM

              @clumsy_ninja said in Yet Another Voice Module (Sphinx + Alexa):

              notice is has led’s indicating the status (listening, processing, speaking).
              https://github.com/alexa-pi/AlexaPi

              IIRC I exposed some of this stuff in the plugin, it shouldn’t be too hard to provide UI feedback for these events. Look at the events passed to the Java client here: https://github.com/whyjustin/magic-mirror-voice/blob/master/node_helper.js#L49. If you get anything working, PRs welcome.

              What i really want to achieve is a module for the mirror which shows the visual feedback with a microphone icon and also show the GUI cards alexa service returns. Problem is I’m not sure how to make this hahah I’m only use to writing in C and Java.

              GUI Cards are going to take more work.

              1 Reply Last reply Reply Quote 0
              • C Offline
                clumsy_ninja
                last edited by Nov 21, 2016, 11:39 PM

                @whyjustin Thanks for that, I’m new to javascript myself but I’m trying to recruit a mate to give us a hand haha. I’ll post something back if I get anything working.

                1 Reply Last reply Reply Quote 0
                • C Offline
                  clumsy_ninja
                  last edited by Nov 24, 2016, 8:49 AM

                  @whyjustin Is it possible to change the activation work in your alexa? I remember seeing it defined in json somewhere but does it require voice training or something?

                  W 1 Reply Last reply Nov 29, 2016, 6:56 AM Reply Quote 0
                  • L Offline
                    lb-rezende
                    last edited by Nov 29, 2016, 4:36 AM

                    Hi,

                    I’m having a problem installing this module and maybe someone could help me, because this is my first experience with Linux and the Magic Mirror.

                    I followed the link describe in the Github to install Alexa. It was everything ok, I talked to her at the end.

                    I followed the rest of the instructions to install the module, although when I start the Magic Mirror it keeps at “loading” and after a while the application crash.

                    The last message is:
                    Listening for transport dt_socket at address: 5005
                    electron js/electron.js: …/src/java.cpp:105: v8::Localv8::Value Java::ensureJvm(): Assertion `result->IsNull()’ failed.

                    How can I solve it?

                    Thanks in advance.

                    W 1 Reply Last reply Nov 29, 2016, 6:59 AM Reply Quote 0
                    • W Offline
                      whyjustin @clumsy_ninja
                      last edited by Nov 29, 2016, 6:56 AM

                      @clumsy_ninja said in Yet Another Voice Module (Sphinx + Alexa):

                      @whyjustin Is it possible to change the activation work in your alexa? I remember seeing it defined in json somewhere but does it require voice training or something?

                           commands: {
                              "mirror mirror": {
                                action: 'alexa'
                              }
                            },
                      

                      If you edit the above you can adjust the activation of Alexa. Haven’t spent much time with this project recently but IIRC you have to remove sphinx-model-generator/commands.dic and sphinx-model-generator/commands.lm when changing the commands.

                      C 1 Reply Last reply Nov 29, 2016, 11:28 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 3 / 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