D-Link Forums

The Graveyard - Products No Longer Supported => IP Cameras => DCS-2132L => Topic started by: efrecon on September 03, 2014, 03:57:53 AM

Title: How to send audio to camera?
Post by: efrecon on September 03, 2014, 03:57:53 AM
(I also own a DCS-2230, on which I have tried most of the same stuff without more luck, so I will be cross-posting there as well.)

I have been spending a number of days figuring out how to send AUDIO to the camera so this audio stream will be played on the internal speaker without any luck. Has anyone been able to do that? Could anyone point me to a knowledgable person at D-link (?) or elsewhere? Here is what I've been trying:


So which entry point should I use? Is there yet another one? and in which specific format should the sound and packets be. POST:ing using regular HTTP is the only real option that I have, UDP is out of my scope of operation.

[/list]
Title: Re: How to send audio to camera?
Post by: efrecon on September 03, 2014, 07:15:05 AM
I finally managed to make some progress on this. So audio sent to the
Code: [Select]
/ipcam/speakstream.cgi seems to actually be in G.726 format, unlike what was stated in my previous message. I've been able to construct back a .WAV header, prepend it to the raw data and open this successfully in a number of programs (e.g. audacity, avplay and mplayer). That is good news...

The bad news is that I still can't send any proper to the camera. I am now having two issues when POSTing to the camera:

Code: [Select]
avconv -f alsa -i hw:1 -acodec g726 -ar 8000 -ac 1 -f s16le - > me_talking.g726[code][list] amd send this raw data to the camera in chunks, as described above. But I can't hear anything. This is valid data to what I can understand though: if I add the .WAV header, I can listen it back in those various programs. Any idea?[/li]
[/list]
[/code]