tts
Posted: Tuesday 16 July 2019 21:13
hi, i made a script for playing tts commands.
When i execute the url in a browser it works!
But in dzvents when i activate switch test i get:
2019-07-16 21:12:33.752 Error: dzVents: Error: (2.4.26) speak: response: 0 ==>>
2019-07-16 21:12:33.802 Error: Error opening url: http://api.voicerss.org/?key=<i removed this api key>8&hl=nl-nl&src=hallo iedereen!
When i execute the url in a browser it works!
But in dzvents when i activate switch test i get:
2019-07-16 21:12:33.752 Error: dzVents: Error: (2.4.26) speak: response: 0 ==>>
2019-07-16 21:12:33.802 Error: Error opening url: http://api.voicerss.org/?key=<i removed this api key>8&hl=nl-nl&src=hallo iedereen!
Code: Select all
local response = "sound_response"
return {
on = {
devices = {'test'},
httpResponses = { response }
},
logging = { level = domoticz.LOG_ERROR,
marker = "speak" },
execute = function(dz, item,info)
local url = "http://api.voicerss.org/?key=<i removed this api key>8&hl=nl-nl&src=hallo iedereen!"
dz.openURL({url = url,method = "GET",callback = response})
end
}