Skip to content

Instantly share code, notes, and snippets.

@CurlyWurly-1
Created May 21, 2016 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CurlyWurly-1/bda8a0690bdac007620ddbe90d539bc1 to your computer and use it in GitHub Desktop.
Save CurlyWurly-1/bda8a0690bdac007620ddbe90d539bc1 to your computer and use it in GitHub Desktop.
Ivona flow 2

This flow is for windows. To make it work, you need to

  1. Download Videolan's VLC player
  2. Install the IVONA node.

You will find that the audio files created by IVONA are stored in your user directory (e.g. C:\Users*your user id* and this is a great feature of the IVONA node, because these files are re-used if present.

N.B. If you use a sound effect MP3 for "amy--alert.mp3", it will be played before the speech

[{"id":"c3e3d8a.4c839a8","type":"ivona-credentials","z":"","name":"ivona","api_key":"GDNAIZON36CJ3Z2LPLWQ","password":"sxpMBamnL1bpKf/epIcP/qF/40m2mibFiNs430R4"},{"id":"2bb6dd4d.406e4a","type":"ivona-tts","z":"a81c5622.38e608","name":"","message":"{{payload}}","voice":"8","exec":"\"C:\\Program Files (x86)\\VideoLAN\\VLC\\vlc.exe\" --one-instance --intf dummy {{{file}}}","dir":"{{voice_name}}-{{lang}}-{{slug}}.mp3","broker":"c3e3d8a.4c839a8","x":584,"y":736,"wires":[[]]},{"id":"c3879532.278af8","type":"inject","z":"a81c5622.38e608","name":"","topic":"","payload":"I am a computer","payloadType":"str","repeat":"","crontab":"","once":false,"x":150,"y":730.5,"wires":[["28c46dbd.4166ba"]]},{"id":"3c99ce79.738532","type":"inject","z":"a81c5622.38e608","name":"","topic":"","payload":"can you dig it?","payloadType":"str","repeat":"","crontab":"","once":false,"x":149,"y":772,"wires":[["28c46dbd.4166ba"]]},{"id":"dfa44dc1.21cac8","type":"inject","z":"a81c5622.38e608","name":"","topic":"alert","payload":"Attention humans","payloadType":"str","repeat":"","crontab":"","once":false,"x":173,"y":689,"wires":[["28c46dbd.4166ba"]]},{"id":"28c46dbd.4166ba","type":"function","z":"a81c5622.38e608","name":"","func":"if (msg.topic!==\"\")\n {\n var msg1 = { payload : msg.topic };\n return [ [ msg1, msg ]];\n }\nelse \n {\nreturn msg; \n}","outputs":"1","noerr":0,"x":369,"y":736.5,"wires":[["2bb6dd4d.406e4a","23221156.7ba096"]]},{"id":"23221156.7ba096","type":"debug","z":"a81c5622.38e608","name":"","active":true,"console":"false","complete":"false","x":608,"y":668,"wires":[]}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment