Skip to content

Instantly share code, notes, and snippets.

@Didgeridrew
Created January 21, 2021 15:49
Show Gist options
  • Save Didgeridrew/bd9030c462e3642dbe6ffad41112107b to your computer and use it in GitHub Desktop.
Save Didgeridrew/bd9030c462e3642dbe6ffad41112107b to your computer and use it in GitHub Desktop.
Alexa Media Player Announce fail
[{"id":"8e92c506.9cb788","type":"api-call-service","z":"39b51019.f8067","name":"TTS in Basement","server":"","version":1,"debugenabled":false,"service_domain":"notify","service":"alexa_media_basement_dot","entityId":"","data":"{\"message\":\"{{payload}}\",\"data\":{\"type\":\"tts\"},\"target\":\"{{service}}\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1810,"y":300,"wires":[[]]},{"id":"96203b86.3412e8","type":"function","z":"39b51019.f8067","name":"Testing TTS Variations","func":"var line1 = [\n 'This is a Test',\n 'I am trying to test something',\n 'This is only a test',\n 'Testing. Testing. 1. 2. 3.',\n 'Is this thing working?',\n 'Hello World',\n 'The quick brown fox jumps over the lazy dog',\n 'This device is conducting a test of the Alexa Broadcast System'\n ]\n \nmsg.payload = \n\nline1[Math.floor(Math.random() * line1.length)]\n\nreturn msg\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1600,"y":380,"wires":[["eb35582a.73ec78"]]},{"id":"d3e6c1e.be2b44","type":"inject","z":"39b51019.f8067","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":1400,"y":380,"wires":[["96203b86.3412e8"]]},{"id":"aac65d31.9828c","type":"function","z":"39b51019.f8067","name":"Testing TTS Variations","func":"var line1 = [\n 'This is a Test',\n 'I am trying to test something',\n 'This is only a test',\n 'Testing. Testing. 1. 2. 3.',\n 'Is this thing working?',\n 'Hello World',\n 'The quick brown fox jumps over the lazy dog',\n 'This device is conducting a test of the Alexa Broadcast System'\n ]\n \nmsg.payload = \n\nline1[Math.floor(Math.random() * line1.length)]\n\nreturn msg\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":1600,"y":300,"wires":[["8e92c506.9cb788"]]},{"id":"4bbd6203.6d83bc","type":"inject","z":"39b51019.f8067","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":1400,"y":300,"wires":[["aac65d31.9828c"]]},{"id":"eb35582a.73ec78","type":"api-call-service","z":"39b51019.f8067","name":"Announce in Basement","server":"","version":1,"debugenabled":false,"service_domain":"notify","service":"alexa_media_basement_dot","entityId":"","data":"{\"message\":\"{{payload}}\",\"data\":{\"type\":\"announce\"},\"target\":\"{{service}}\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1830,"y":380,"wires":[[]]}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment