V5 audio mapping with api connection
CompletedHi,
We have set up audio mapping in our v5 nx box and it works great on the box.
Our question is: Is it possible to use the API 2 way audio websocket connection with audio mapping?
The use case would be - we have camera 1 that is connected to speaker 1 with 2 way audio. We connect to camera 1 with our websocket connection and stream audio from our device. the audio then comes out over speaker 1.
Currently if we connect directly to the speaker over websocket it works as expected.
If we connect to the camera mapped to a speaker over websocket, the audio does not come out over the speaker.
Any help is greatly appreciated.
-
Hello,
Is it possible to use the API 2 way audio websocket connection with audio mapping?
yes, it is. Please see our example on GitHub
-
Andrey Terentyev Thanks for the reply! I have the 2 way audio part working. The issue is when the camera is audio mapped to another device,the audio does not come from the second device. Does that part work?
-
Andrey Terentyev On further investigation, it appears that cameras that do not support audio natively are refused a connection by the websocket. Is there a way around this?
-
hi,
On further investigation, it appears that cameras that do not support audio natively are refused a connection by the websocket. Is there a way around this?
There is no workaround.
There is something interesting and unusual in what you're writing. Could you please give more detailed on your setup? How cameras are/should be connected to speakers? Speakers to Server? Cameras to Server?
What are camera and speaker models?
Your information could shed a light on the up-to-date setups in the field and make us to think about the appropriate solution.
-
I used the following article to try and connect an rtsp stream camera to a TOA IP horn speaker
https://support.networkoptix.com/hc/en-us/articles/7613206388631-Nx-Audio-Video-Mapping
I connected them using the following steps:
- To transmit the audio to another device (Audio output/audio destination):
a. Check the Enable 2-way audio option
b. Select a camera from the dropdown.
Note: 2-way audio option is now available for all devices with or without the function.
I then used a web socket connection similar to the one in your github link to pass audio from my mic to the camera, hoping the audio would come through the speaker.
- To transmit the audio to another device (Audio output/audio destination):
-
To add: I tested with a camera that supports audio : an IPC-HFW3549T1-AS-PV
I connected this camera to the speaker using the article above. I was able to connect to this camera with my websocket and the audio came from the TOA IP horn speaker.
When I try to connect to a camera that does not support audio the websocket connection is refused and so the audio does not get to the speaker.
Please sign in to leave a comment.
Comments
7 comments