When I ran the script and send the audio stream into the camera speaker, I can hear in the camera speaker audio artifacts for each pulse of that request.
I have been told that this could be due to converting the pcm into G711 and passing the truncated data to 2048 bytes.
The reason because I am sending the truncated data to 2048 bytes, is because, when I using wireshark to replicate the two way audio button that the camera already has, I can see the data is truncated to those bytes every time.
For the converting the pcm, I tried just using pcm compression but I still have the same issue
When I ran the script and send the audio stream into the camera speaker, I can hear in the camera speaker audio artifacts for each pulse of that request.
I have been told that this could be due to converting the pcm into G711 and passing the truncated data to 2048 bytes.
The reason because I am sending the truncated data to 2048 bytes, is because, when I using wireshark to replicate the two way audio button that the camera already has, I can see the data is truncated to those bytes every time.
For the converting the pcm, I tried just using pcm compression but I still have the same issue