Possibility to talk with doorbell Dahua VTO

Joined
Jan 27, 2023
Messages
3
Reaction score
0
Location
Italia
Hello, noob here.
I'm using this node red configuration in home assistant
[{"id":"f44654e214d92aa7","type":"ttsultimate","z":"3d4fa65bb2fbbf54","name":"","voice":"en-US","ssml":false,"sonosipaddress":"192.168.1.158","sonosvolume":"75","sonoshailing":"0","config":"e05dc2be35faa69b","property":"payload","propertyType":{},"rules":[],"playertype":"noplayer","speakingrate":"1","speakingpitch":"0","unmuteIfMuted":true,"x":290,"y":80,"wires":[["16cd8dd95f997800"],[]]},{"id":"35e8516f197e0774","type":"inject","z":"3d4fa65bb2fbbf54","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"\"Please wait while we come to the door.\"","payloadType":"str","x":90,"y":60,"wires":[["f44654e214d92aa7"]]},{"id":"40a2b1600946dee8","type":"function","z":"3d4fa65bb2fbbf54","name":"Parse Filename","func":"msg.filename = String(msg.filesArray[0].file);\nconst ffmpegIn = String(msg.filename);\nconst ffmpegOut = ffmpegIn.split('.').slice(0, -1).join('.');\nconst ffmpeg = \"-y -i \" + ffmpegIn +\" -c:a pcm_alaw -ac 1 -ar 8000 -sample_fmt s16 \" + ffmpegOut + \".wav\";\nmsg.ffmpegIn = ffmpegIn;\nmsg.ffmpegOut = ffmpegOut;\nmsg.ffmpeg = ffmpeg;\nmsg.filename = msg.ffmpegOut+\".wav\";\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":760,"y":80,"wires":[["d8f5be96b6a75f20"]]},{"id":"d8f5be96b6a75f20","type":"exec","z":"3d4fa65bb2fbbf54","command":"/usr/bin/ffmpeg","addpay":"ffmpeg","append":"","useSpawn":"false","timer":"15","winHide":false,"oldrc":false,"name":"Convert Audio","x":960,"y":80,"wires":[["5289ad38ed65ad56"],[],[]]},{"id":"66fac65b9f255c2b","type":"http request","z":"3d4fa65bb2fbbf54","name":"HTTP Request to Doorbell","method":"PUT","ret":"txt","paytoqs":"ignore","url":"","tls":"","persist":false,"proxy":"","authType":"basic","senderr":false,"x":840,"y":160,"wires":[[]]},{"id":"bde46b4bf680e208","type":"function","z":"3d4fa65bb2fbbf54","name":"Build http payload","func":"msg.headers = {};\nmsg.headers['Content-Length'] = \"9999999\"\nmsg.headers['Content-Type'] = \"Audio/G.711A\"\nmsg.headers['User-Agent'] = \"NodeRed\"\nmsg.requestTimeout = 5000\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":510,"y":160,"wires":[["66fac65b9f255c2b"]]},{"id":"5289ad38ed65ad56","type":"file in","z":"3d4fa65bb2fbbf54","name":"Read Converted File","filename":"","format":"","chunk":false,"sendError":false,"allProps":false,"x":260,"y":160,"wires":[["bde46b4bf680e208"]]},{"id":"16cd8dd95f997800","type":"switch","z":"3d4fa65bb2fbbf54","name":"Finished Processing","property":"payload","propertyType":"msg","rules":[{"t":"true"}],"checkall":"true","repair":false,"outputs":1,"x":540,"y":80,"wires":[["40a2b1600946dee8"]]},{"id":"e05dc2be35faa69b","type":"ttsultimate-config","name":"TTS Service","noderedipaddress":"192.168.1.14","noderedport":"1980","purgediratrestart":"purge","ttsservice":"googletranslate","TTSRootFolderPath":""}]

following this mini guide here Possibility to talk with doorbell · Issue #181 · rroller/dahua


EDIT:

sorry but some of the text was lost when I opened the topic. I was saying I don't know how to fix this and get this to work. I'm getting the "no response from server" error.
 

Attachments

Last edited:
Top