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.
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?
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