Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. GinSeng
    MagicMirror² v2.15.0 is available! For more information about this release, check out this topic.
    G
    • Profile
    • Following 0
    • Followers 1
    • Topics 2
    • Posts 13
    • Best 3
    • Groups 0

    GinSeng

    @GinSeng

    6
    Reputation
    969
    Profile views
    13
    Posts
    1
    Followers
    0
    Following
    Joined Last Online

    GinSeng Follow

    Best posts made by GinSeng

    • RE: VoiceControl module

      @Jeff
      Lets see if i can make a complete list for you.
      Step 1. cd in your MagicMirror/module folder then git clone the modul ( https://github.com/alexyak/voicecontrol.git )
      Step 2. cd in the voice module and install dependencies ( sudo apt-get install python-pyaudio python3-pyaudio sox )
      Step 3. Create snowboy files and copy them into the ( im not sure which works i copied them in 3 placed) 1. voice control module 2. mm-music-player module and MagicMirror folder
      Step 4. cd into your mm-music-player and sudo nano mm-music-player.js add following lines after this lines:
      start: function() {
      Log.info("Starting module: " + this.name);
      },

      ->> Add this
      notificationReceived: function(notification, payload, sender) {
      if (notification === “PLAY”){
      var playButton = document.getElementById(‘play-button’);
      playButton.click();

      if (notification === “STOP”){
      var pauseButton = document.getElementById(‘pause-button’);
      pauseButton.click();

      then go down to

          playButton.className = "play";
          playButton.innerHTML = '<i class="fa fa-play" aria-hidden="true"></i>'; 
      

      playButton.id = ‘play-button’;

          pauseButton.className = "pause";
          pauseButton.innerHTML = '<i class="fa fa-pause" aria-hidden="true"></i>'; 
      

      pauseButton.id = ‘pause-button’;

      Then cd in your MagicMirror config and sudo nano config.js

      and add the following lines

      {
      module: ‘voicecontrol’,
      position: ‘bottom_right’,
      config: {
      models: [
      {
      keyword: “play music”, // keyword
      description:
      file: “yourfile.pmdl”,
      message: “PLAY”,
      },
      {
      keyword: “stopmusic”, // keyword
      description:
      file: “yourfile.pmdl”,
      message: “STOP”
      },

      This should be all.
      If it doesn’t work, feel free to write me a PM.
      greez GinSeng

      posted in Utilities
      G
      GinSeng
    • RE: Where are you from?

      Ulm, Germany / Ravensburg, Germany

      posted in General Discussion
      G
      GinSeng
    • RE: Mobile app (bachelor thesis)

      Done ! 🙂

      Good luck with your bachelor thesis.

      posted in Development
      G
      GinSeng

    Latest posts made by GinSeng

    • RE: VoiceControl module

      @frodrd00 Hey sorry i didn’t try this. Maybe i find time in the Christmas vacations but exams are near so i can’t promise you 😛

      posted in Utilities
      G
      GinSeng
    • RE: VoiceControl module

      @Jeff
      Lets see if i can make a complete list for you.
      Step 1. cd in your MagicMirror/module folder then git clone the modul ( https://github.com/alexyak/voicecontrol.git )
      Step 2. cd in the voice module and install dependencies ( sudo apt-get install python-pyaudio python3-pyaudio sox )
      Step 3. Create snowboy files and copy them into the ( im not sure which works i copied them in 3 placed) 1. voice control module 2. mm-music-player module and MagicMirror folder
      Step 4. cd into your mm-music-player and sudo nano mm-music-player.js add following lines after this lines:
      start: function() {
      Log.info("Starting module: " + this.name);
      },

      ->> Add this
      notificationReceived: function(notification, payload, sender) {
      if (notification === “PLAY”){
      var playButton = document.getElementById(‘play-button’);
      playButton.click();

      if (notification === “STOP”){
      var pauseButton = document.getElementById(‘pause-button’);
      pauseButton.click();

      then go down to

          playButton.className = "play";
          playButton.innerHTML = '<i class="fa fa-play" aria-hidden="true"></i>'; 
      

      playButton.id = ‘play-button’;

          pauseButton.className = "pause";
          pauseButton.innerHTML = '<i class="fa fa-pause" aria-hidden="true"></i>'; 
      

      pauseButton.id = ‘pause-button’;

      Then cd in your MagicMirror config and sudo nano config.js

      and add the following lines

      {
      module: ‘voicecontrol’,
      position: ‘bottom_right’,
      config: {
      models: [
      {
      keyword: “play music”, // keyword
      description:
      file: “yourfile.pmdl”,
      message: “PLAY”,
      },
      {
      keyword: “stopmusic”, // keyword
      description:
      file: “yourfile.pmdl”,
      message: “STOP”
      },

      This should be all.
      If it doesn’t work, feel free to write me a PM.
      greez GinSeng

      posted in Utilities
      G
      GinSeng
    • Voicecontrol : Microphone stopped working

      Hey everybody, i use the voicecontrol from @alexyak and the mm-music-player from @EoF. I managed to control the music player with my voice (play, stop, back, forward) it worked pretty well for about 2 days. Then suddenly it stopped working, the modules and everything works fine. So i take a look at the pm2 logs mm. This is the log :

      pi@raspberrypi:~ $ pm2 logs mm
      [TAILING] Tailing last 10 lines for [mm] process (change the value with --lines option)
      /home/pi/.pm2/logs/mm-error-0.log last 10 lines:
      0|mm | File “./modules/voicecontrol/snowboy/kws-multiple.py”, line 34, in
      0|mm | detector = snowboydecoder.HotwordDetector(models, sensitivity=sensitivity)
      0|mm | File “/home/pi/MagicMirror/modules/voicecontrol/snowboy/snowboydecoder.py”, line 115, in init
      0|mm | stream_callback=audio_callback)
      0|mm | File “/usr/lib/python2.7/dist-packages/pyaudio.py”, line 747, in open
      0|mm | stream = Stream(self, *args, **kwargs)
      0|mm | File “/usr/lib/python2.7/dist-packages/pyaudio.py”, line 442, in init
      0|mm | self._stream = pa.open(**arguments)
      0|mm | IOError: [Errno Invalid sample rate] -9997

      So i tested the microphone (snowboy homepage), it doesn’t record anything. Next stepped i plugged my micro into my laptop and tested it there - works perfect.
      I googled around the error messages but i couldn’t find any help which worked for me.

      I would be glad if someone can help me. Thanks in advance

      Greetings

      GinSeng

      posted in Troubleshooting
      G
      GinSeng
    • RE: VoiceControl module

      I want to say a big thank your @gismo2006 for helping me at the voice control via message. I want to share my solution and gismos help just in case someones also struggles with this.

      1. It is important to record your voice with the raspberry pi and the connected microphone ( Was my first mistake i record them at my laptop with the internal microphone)
      2. Copy the .pdml files in the home/pi/MagicMirror folder and just in case also in the voicecontroll module.
      3. Copy the name of the pdml files and don’t write them manually in the config.js

      Again a big thank you at @gismo2006 for the help and @alexyak for the module :).

      Greetings GinSeng

      posted in Utilities
      G
      GinSeng
    • RE: Mobile app (bachelor thesis)

      Done ! 🙂

      Good luck with your bachelor thesis.

      posted in Development
      G
      GinSeng
    • RE: Where are you from?

      Ulm, Germany / Ravensburg, Germany

      posted in General Discussion
      G
      GinSeng
    • RE: MMM-Globe

      @matt25

      Hi Matt, try at position : ‘middle_center’ not only center.

      posted in Utilities
      G
      GinSeng
    • RE: VoiceControl module

      @gismo2006

      ger: Kein Problem 🙂 Ja bin auch deutsch. Okay wäre super und auch einfacher für mich 😃

      eng: No Problem 🙂 Yep also german. That would be great and also easier for me

      posted in Utilities
      G
      GinSeng
    • RE: VoiceControl module

      @gismo2006

      Hey Gismo, i would really appreciate that 🙂 Thank you.
      Maybe you can also help me with the pdml files. I’m not sure if i copied them into the right folder ( example: sudo mv machmusik.pdml / root).

      Greets GinSeng

      posted in Utilities
      G
      GinSeng
    • RE: VoiceControl module

      Good morning, really cool module, thanks for this 🙂

      @gismo2006
      I want to do the same think as you - control the mm-music-player with this module.
      I followed the help from @Jopyth but when i start the Mirror now it displays “mm-music-player” as a text instead of the module, the Voice commands are shown right so i guess i messed up something in the mm-music-player.js.
      I copied the pdml files in /MagicMirror/modules/voicecontrol
      Do i have have to changed the node_helper.js as well?

      thanks in advance for your help and greetings

      GinSeng
      €: Okay it shows me my music player now … was a little ) missing 🙂
      but still it don’t work my microphone works i’ve tested it with another voice control module. I guess the pdml files are now the problem. i copied them with : nano mv machmusik.pdml /root int the root folder

      posted in Utilities
      G
      GinSeng