bropat / eufy-security-ws

Small server wrapper around eufy-security-client library to access it via a WebSocket.
MIT License
182 stars 28 forks source link

[Feature request]: Send audio file using it's path to devices with capability #179

Closed dffitch closed 1 year ago

dffitch commented 1 year ago

Describe the solution you'd like

I have tried to use the command interface to send an .aac file converted to a buffer and passed to the server from a node red function node. The input msg.payload is the converted .aac file.

var buffer = msg.payload; msg.payload = { "messageId": "string", "command": "device.talkback_audio_data", "serialNumber": "T8410xxxxxxxxx", "buffer": buffer } return msg;

In VScode debug, I can see the buffer is passed to the server, but no audio is heard. In a previous post someone was talking about splitting the file into frames or piping the output from ffmpeg to the server. This is a little beyond my remit, unless anyone can help with this.

Would it be possible to consider passing an audio file's path as a parameter in the command interface to capable devices?

many thanks