RealtimeSTT icon indicating copy to clipboard operation
RealtimeSTT copied to clipboard

listening to m3u8 / rtmp audio

Open codenoid opened this issue 11 months ago • 1 comments

is it possible to do this?

codenoid avatar Feb 28 '24 18:02 codenoid

I also have a use case here, to analyze the audio coming from these sources. Is it possible to have a real-time live stream feed (such as RTMP) as an input? How would one go about using a remote feed as the input?

VideoFX avatar Apr 01 '24 02:04 VideoFX

Just use ffmpeg to pipe your audio. I am working on a bot to transcribe/translate youtube live stream in realtime. I use yt-dlp to fetch m3u8 audio chunk and pass it to ffmpeg to process audio into 16-bit PCM chunk, and finally pass the processed chunk to the RealtimeSTT server. Ends up something like this: python fetch.py [URL] | ffmpeg -f mpegts -i - -c:a pcm_s16le -ac 1 -ar 16000 -f wav - | python send_pcm_to_websocket.py

tychuang1211 avatar May 20 '24 08:05 tychuang1211

thankyou, I should close this, I already found reliable way to do this

codenoid avatar May 20 '24 08:05 codenoid