You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many of the examples in this repo show client to server media sinks (mic / video capture), which have frame based callback processing. I am looking to do server to client media playback, with frame based callback processing. This would be useful for real-time audio playback with real-time processing.
Would the correct approach be to create a new subclass of MediaStreamTrack and write a custom recv for the required processing? I found this related thread: aiortc/aiortc#571
Is this functionality supported currently? I would appreciate any guidance here.
Thanks heaps!
The text was updated successfully, but these errors were encountered:
Interested in pointers to potential solutions. My use case is similar, generate some text-to-speech and play it back.
@wenshutang I'm also interested in this issue for my text-to-speech streaming problem. I wonder if you've found a solution yet. If so, could you please share some references or suggestions? Thank you.
Many of the examples in this repo show client to server media sinks (mic / video capture), which have frame based callback processing. I am looking to do server to client media playback, with frame based callback processing. This would be useful for real-time audio playback with real-time processing.
After searching through this discussion https://discuss.streamlit.io/t/new-component-streamlit-webrtc-a-new-way-to-deal-with-real-time-media-streams/8669, and the example pages in streamlit-webrtc, I have not been able to find an example of this.
To be specific, I am looking to do the following:
This example uses the MediaPlayer class from aiortc:
streamlit-webrtc/pages/8_media_files_streaming.py
Line 9 in ff697dc
Digging deeper, the MediaPlayer class has a MediaStreamTrack instance (https://aiortc.readthedocs.io/en/latest/api.html#aiortc.MediaStreamTrack) which has a
recv
callback method for each frame.Would the correct approach be to create a new subclass of MediaStreamTrack and write a custom
recv
for the required processing? I found this related thread: aiortc/aiortc#571Is this functionality supported currently? I would appreciate any guidance here.
Thanks heaps!
The text was updated successfully, but these errors were encountered: