octoblu / meshblu

Meshblu is a cross-protocol IoT machine-to-machine messaging system.
https://meshblu.readme.io/
MIT License
815 stars 182 forks source link

NodeBlu - Voice tts only outputs 1st time when text is same #52

Closed gadgethome closed 10 years ago

gadgethome commented 10 years ago

I did 2 injects. First with a payload of On and second as Off. Then a switch and then a function comparison and then speech and debug.

When you click the inject for On, it speaks "on" and debug outputs on. Also works for off but if you run "on" and then "on" again, the second on does not speak but does output to the debug window. Same when you inject "off" twice.

thanks

octoblu commented 10 years ago

We are deliberately suppressing duplicate messages from speaking in the text-to-speech node. It was driving us crazy with repeating sensor data. We should probably make that a checkbox so that they user can allow or disallow duplicate messages.

monteslu commented 10 years ago

Forgot to document this.

You can override the suppressing of same messages with

msg.canRepeat = true;

Put that in a function block somewhere before the tts node.

monteslu commented 10 years ago

Also agree that it should have a checkbox for this option.