Hey guys,
i’m trying to play an audio file on the 2N SIP Speaker Horn using the MIP SDK.
I can’t find how to connect to it, and send an audio file.
Anybody has an idea?
Tnx
Hey guys,
i’m trying to play an audio file on the 2N SIP Speaker Horn using the MIP SDK.
I can’t find how to connect to it, and send an audio file.
Anybody has an idea?
Tnx
Please have a look at the Video Viewer with 2-way audio sample for an example of how to stream an audio file to a speaker device.
Sorry - forgot the link: http://doc.developer.milestonesys.com/html/index.html?base=samples/videoviewer2audio_sample.html&tree=tree_2.html
Thank you vary much!
Using the sample - i changd the filter to pick a speaker instead of a camera.
I was able to transfer sound from my mic to the speaker.
but I have not been able to transfer a WAV file to the speaker.
for some files -
the progress bar shows progress but there is no sound.
for other files -
the progress bar shows -1 and still no sound.
I checked with 2N about how the file should be constracted:
"The sound file must have the WAV format and use PCM encoding with 8/16 kHz sampling frequency and 8/16-bit sample resolution"
I have met all their criteria. any idea why streaming from the mic is working, but from files it doesn’t?
The sample uses the associated speaker of the camera you choose, but you can of course change it so that you select the speaker directly.
Be aware that you are not sending the file to the device. The sample opens the file and streams the content to the device. In this way it is very similar to what happens when using the microphone, so sounds like the speaker is working, but there is a problem with the files you are using. I just tried the sample with a simple wav file and it worked fine.
There is no progress bar in the sample - the bar is showing sound volume as it is played back. But there is a box next to the volume indicator that will show the number of seconds it has been playing so if it is working you should see this number increase.
Hi Peter.
the error I get is: OutgoingAudioErrorSendingAudioToSpeaker.
can you please advice?
Please goto Wikipedia - https://en.wikipedia.org/wiki/WAV
Find the file named “8k16bitpcm.wav”
Download and test with that file. Does it work for you?
If that one works there is something not completely right about the audio file you test with.
thanks! it works now
it seem like the player in the sample only work with that format.
I changed my file format to the same format and it works.