Axis Customer Forum
https://custforum.axis.com/

Audio streaming to Speakers from code
https://custforum.axis.com/viewtopic.php?f=33&t=5536
Page 1 of 1

Author:  Pablo López Morón 1238282 [ Wed Apr 11, 2018 7:29 pm ]
Post subject:  Audio streaming to Speakers from code

Hi there,

I'm trying to build an audio/video conferencing system in C#.NET using a Videocamera (P3215-VE Network Camera), an Audio Module with a mic connected to it (P8221 I/O Audio Module) and a speaker (C1004-E). Up to now I have successfully implemented a way to view the video stream from the Camera in my GUI using the AXIS Media Control SDK, but I have no idea how to send an audio stream from the mic to the speakers.

I have tried using VAPIX to capture the audio through a GET request (http://AudioModuleIP/axis-cgi/audio/receive.cgi) and then listen to the recorded stream with a POST method (http://SpeakersIP/axis-cgi/audio/transmit.cgi) but it doesn't work. I've also tried using the AMC with the following comands: axAxisMediaControl1.AudioTransmitURL and axAxisMediaControl1.AudioTransmitStart(), but again unsuccessfully. Is it because AMC only works with cameras or bc I'm doing something wrong?

My idea is to be able to send audio to the speakers (from the Audio Module or from my PC) by pushing a button in the application. Does anyone know how to implement this?

Author:  Cheng Xin 345535 [ Fri Apr 13, 2018 6:47 am ]
Post subject:  Re: Audio streaming to Speakers from code

This will help you to find the right commands.

https://www.axis.com/ftp/pub_soft/Solut ... Manual.pdf

https://www.axis.com/ftp/pub_soft/Solut ... _Setup.zip

Use Wireshark to monitor the commands send to the speaker.

If you are interested in further discussion, please contact me via Skype @ Cheng.Xin.SG

Author:  Pablo López Morón 1238282 [ Mon Apr 16, 2018 10:36 am ]
Post subject:  Re: Audio streaming to Speakers from code

Dear Cheng,

Thank you so much for your help. Is there any way I could get the Visual studio solution file of that application? I've successfully found the comands using Wireshark as you indicated and the Post/get requests have worked in Postman, but I can't manage to make it work in my own code, which is my main goal. Thanks again for your help.

Author:  Cheng Xin 345535 [ Thu Apr 19, 2018 10:19 am ]
Post subject:  Re: Audio streaming to Speakers from code

Hi Pablo,

The apps is a freeware from Axis. Ask Axis Support nicely and you should be able to get the source code.


regards,
Cheng Xin

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/