Replies: 4 comments 11 replies
-
This automatically generated reply acts as a friendly reminder. Answers to your questions will most often come from the community, from developers like yourself. You will, from time to time, find that Axis employees answers some of the questions, but this is not a guarantee. Think of the discussion forum as a complement to other support channels, not a replacement to any of them. If your question remains unanswered for a period of time, please revisit it to see whether it can be improved by following the guidelines listed in Axis support guidelines. |
Beta Was this translation helpful? Give feedback.
-
Hi @mattfeury , I use the following FFmpeg command to stream the songs: ffmpeg.exe -i "s1.mp3" -probesize 32 -analyzeduration 32 -c:a pcm_mulaw -ab 128k -ac 1 -ar 16000 -f wav -chunked_post 0 -content_type audio/axis-mulaw-128 http://root:pass@10.176.13.53/axis-cgi/audio/transmit.cgi I understand you can loop the song with FFmpeg : |
Beta Was this translation helpful? Give feedback.
-
hello @vivekatoffice, thanks for the response. it was helpful and i can now see that i can send audio data in real time. however i'm noticing that around ~10seconds into the stream, the sound starts to degrade and eventually stop. e.g. i tested your ffmpeg command (with an input from the microphone so it is properly streaming in real time), and it sounds good for about 10-15 seconds and then starts to get choppy before stopping altogether. the request stays open and doesn't seem to show any error (data continues to be transmitted, just not played)
i've upgraded to the latest firmware but still seeing this issue. |
Beta Was this translation helpful? Give feedback.
-
Hello, |
Beta Was this translation helpful? Give feedback.
-
Hello all,
I'm looking at the VAPIX Audio API, specifically the Transmit Audio Data section.
I am able to successfully send a request with a predefined audio chunk and here it play out of the speaker. What i'm interested in is to continuously stream data to the speaker so that it can play continuously in real-time. Is this possible? My testing keeps the socket open and I continuously pump data to it, but I do not hear anything from the speaker.
here is some sample code to show what i'm trying. this takes an mp3 file and loops it continuously:
Thank you
Beta Was this translation helpful? Give feedback.
All reactions