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

Scheduled Pinned Locked Moved Utilities
text-to-speech
19 Posts 4 Posters 12.6k Views 5 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
    strawberry 3.141 Project Sponsor Module Developer @cowboysdude
    last edited by Jan 2, 2018, 10:22 PM

    @cowboysdude where did you put that code piece?

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

    C 1 Reply Last reply Jan 2, 2018, 10:49 PM Reply Quote 0
    • C Offline
      cowboysdude Module Developer @strawberry 3.141
      last edited by Jan 2, 2018, 10:49 PM

      @strawberry-3.141

      checkCommands(data) {
              if (/(HELP)/g.test(data)) {
                  if (/(CLOSE)/g.test(data) || (this.help && !/(OPEN)/g.test(data))) {
                      this.help = false;
                      this.interval = this.createInterval();
                  } else if (/(OPEN)/g.test(data) || (!this.help && !/(CLOSE)/g.test(data))) { 
                      this.help = true;
                      clearInterval(this.interval);
                  }
              } else if (/(HIDE)/g.test(data) && /(CLOCK)/g.test(data)) {
                this.hide(300, {lockString: 'MMM-voice'});
               //  if (this.hide){
               // this.sendNotification('MMM-TTS', 'Hiding Clock');
              //   }
              }  else if (/(SHOW)/g.test(data) && /(CLOCK)/g.test(data)) {
                this.show(300, {lockString: 'MMM-voice'});
              //  this.sendNotification('MMM-TTS', 'Showing clock');
              }  
              
          },
      
      S 1 Reply Last reply Jan 3, 2018, 10:29 PM Reply Quote 0
      • S Offline
        strawberry 3.141 Project Sponsor Module Developer @cowboysdude
        last edited by Jan 3, 2018, 10:29 PM

        @cowboysdude could it be that the output of tts is putting you in a loop because it is triggering the command again :D try to change the output of tts so it will not trigger any output and then see if it still occurs

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

        1 Reply Last reply Reply Quote 0
        • C Offline
          cowboysdude Module Developer
          last edited by Jan 3, 2018, 11:38 PM

          OK have no idea what that means but I didn’t change anything and now this is all I get…

          Error: SIOD ERROR: unbound variable : voice_us1_mbrola

          at Socket. (/home/cowboysdude/MagicMirror/modules/MMM-TTS/node_modules/say/index.js:83:14)
          at Socket.g (events.js:286:16)
          at emitOne (events.js:96:13)
          at Socket.emit (events.js:188:7)
          at readableAddChunk (_stream_readable.js:176:18)
          at Socket.Readable.push (_stream_readable.js:134:10)
          at Pipe.onread (net.js:543:20)
          
          S 1 Reply Last reply Jan 4, 2018, 8:25 PM Reply Quote 0
          • S Offline
            strawberry 3.141 Project Sponsor Module Developer @cowboysdude
            last edited by Jan 4, 2018, 8:25 PM

            @cowboysdude For me it sounds like the output of tts showing clock triggered the voice module to recognize the command again, so tts said showing clock again -> infinite loop

            Not sure what this error is

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

            1 Reply Last reply Reply Quote 0
            • C Offline
              cowboysdude Module Developer
              last edited by cowboysdude Jan 5, 2018, 12:04 AM Jan 4, 2018, 11:37 PM

              Thanks!!! I got it… can’t understand the jibberish it’s saying but I think TTS didn’t install properly…

              FOR the record in simple form DO NOT use the same phrases in TTS that you use for sentences for voice…

              if anyone needs examples please let me know I’ll be happy to help.

              1 Reply Last reply Reply Quote 0
              • 1
              • 2
              • 2 / 2
              2 / 2
              • First post
                18/19
                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