How to set up Espeak for voice announcing certain stuff?

175 views
Skip to first unread message

Marko S

unread,
Jan 28, 2016, 10:03:03 AM1/28/16
to Node-RED
I was searching the internet and the library and I couldn't find an espeak node.

Can someone help me how to make it work. I have espeak already installed, using Node-red on a netbook running Ubuntu 14.04.

My use case would be to annouce for example when i got a new email, or tie in mqtt sensor data and announce that, or maybe if possible announce certain gcal events. etc.

Dave C-J

unread,
Jan 28, 2016, 10:10:20 AM1/28/16
to node...@googlegroups.com
Hi, easiest things would to just call it using the exec node...

[{"id":"c9549960.33241","type":"inject","z":"eccc930b.13337","name":"","topic":"","payload":"\"Hello to Jason Issacs\"","payloadType":"str","repeat":"","crontab":"","once":false,"x":197.00001525878906,"y":39.00000476837158,"wires":[["6117a3c1.aea5ec"]]},{"id":"6117a3c1.aea5ec","type":"exec","z":"eccc930b.13337","command":"espeak","addpay":true,"append":"","useSpawn":false,"name":"","x":400,"y":40,"wires":[[],[],[]]}]

Marko S

unread,
Jan 28, 2016, 12:42:42 PM1/28/16
to Node-RED
Thanks, it works :). Do you know how to change the voice, since i believe espeak has a few different voice options (male, female).

Dne četrtek, 28. januar 2016 16.10.20 UTC+1 je oseba Dave C-J napisala:

Nicholas O'Leary

unread,
Jan 28, 2016, 12:52:17 PM1/28/16
to Node-RED Mailing List
Edit the exec node and add the appropriate command-line flags to the 'espeak' command.


--
http://nodered.org
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Marko S

unread,
Jan 28, 2016, 12:56:43 PM1/28/16
to Node-RED
Simple :), thanks! 

Dne četrtek, 28. januar 2016 18.52.17 UTC+1 je oseba Nick O'Leary napisala:

Marko S

unread,
Jan 28, 2016, 1:08:57 PM1/28/16
to Node-RED
So if I wanted to announce You have mail, in the exec node I should put -  espeak "You have mail"

What about the flow should I just connect the email node with the exec espeak node? Or do I need something in between?

Also when I tried doing this with gmail it blocked the connection (and sent me a mail that it did so).



Dne četrtek, 28. januar 2016 18.56.43 UTC+1 je oseba Marko S napisala:

Marko S

unread,
Jan 28, 2016, 1:20:11 PM1/28/16
to Node-RED
It seems to work if I just connect the email node and the espeak node. :) Cool, this is really easy and fun.

Tho' I needed to enable "access to less safe apps" on Google account. Is it possible to circumvent that?



Dne četrtek, 28. januar 2016 19.08.57 UTC+1 je oseba Marko S napisala:
Reply all
Reply to author
Forward
0 new messages