Hi all,
I am wondering if anyone was able to successfully send an audio file to an Annke AC800 ip cam via ISAPI. There are multiple posts discussing this topic, however I could not find a clear an concise solution. It appears that Annke uses the Hikvision firmware and ISAPI commands are identical.
1. curl --digest -X PUT admin:pwd@IPaddress/ISAPI/System/TwoWayAudio/channels/1/open - opens the channel
2. curl --digest -H "Content-Type: application/binary" -X PUT --data-binary @alert.wav - sends audio file
3. curl --digest -X PUT admin:pwd@IPaddress/ISAPI/System/TwoWayAudio/channels/1/close- closes the channel
I have tried to send the audio file as a .wav or .ulaw with the G.711 ulaw codec, however without success. I receive a status 200OK message and only able to hear bits of the message.
Also tried to stream audio at steady rate with Pipe Viewer:
pv -L 8000 alert.ulaw | curl --digest -u admin
assword -X PUT --data-binary @- \
-H "Content-Type: application/octet-stream" \
http://<camera_ip>/ISAPI/System/TwoWayAudio/channels/1/audioData
Unfortunately, no improvement. Hope someone else has an alternative or a fix to accomplish this. I would greatly appreciate any suggestions. Thank you
I am wondering if anyone was able to successfully send an audio file to an Annke AC800 ip cam via ISAPI. There are multiple posts discussing this topic, however I could not find a clear an concise solution. It appears that Annke uses the Hikvision firmware and ISAPI commands are identical.
1. curl --digest -X PUT admin:pwd@IPaddress/ISAPI/System/TwoWayAudio/channels/1/open - opens the channel
2. curl --digest -H "Content-Type: application/binary" -X PUT --data-binary @alert.wav - sends audio file
3. curl --digest -X PUT admin:pwd@IPaddress/ISAPI/System/TwoWayAudio/channels/1/close- closes the channel
I have tried to send the audio file as a .wav or .ulaw with the G.711 ulaw codec, however without success. I receive a status 200OK message and only able to hear bits of the message.
Also tried to stream audio at steady rate with Pipe Viewer:
pv -L 8000 alert.ulaw | curl --digest -u admin

-H "Content-Type: application/octet-stream" \
http://<camera_ip>/ISAPI/System/TwoWayAudio/channels/1/audioData
Unfortunately, no improvement. Hope someone else has an alternative or a fix to accomplish this. I would greatly appreciate any suggestions. Thank you