AdrianInfante / 2wayAudio

0 stars 0 forks source link

Audio Artifacts when the audio stream is sent to the ONVIF camera speaker #1

Open AdrianInfante opened 1 week ago

AdrianInfante commented 1 week ago

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

AdrianInfante commented 4 days ago

Buffer size has been modified from 1024 to 2048, the audio artifacts noise is gone but, the audio from my mic is breaking up