Stream audio/video in realtime with webrtc
VLMEvalKit Eval Results in video understanding benchmark
Generate subtitled videos from YouTube links
Extract audio, transcribe, and chunk YouTube video
Generate and animate images with Waifu GAN
Video upscaler/restorer
Video Super-Resolution with Text-to-Video Model
Generate a video from text prompts
Generates a sound effect that matches video shot
Apply the motion of a video on a portrait
Convert image to video
Generate 3D motion from text prompts
gradio_webrtc is a WebRTC-based plug-in for Gradio that allows real-time streaming of audio and video. It provides an easy-to-use interface for developers to incorporate real-time communication features into their applications. This tool leverages the WebRTC protocol, enabling low-latency, peer-to-peer communication directly in the browser.
• Real-time Audio/Video Streaming: Enable live communication with minimal delay. • WebRTC Compatibility: Built on the WebRTC standard for reliable and secure connections. • Bi-directional Communication: Supports both sending and receiving audio/video streams. • Cross-Platform Support: Works seamlessly across modern browsers and devices. • Secure Communication: Includes built-in encryption for data security. • Easy Integration: Simple API for developers to implement real-time streaming in Gradio interfaces. • Open Source: Free to use and modify under an open-source license.
import gradio_webrtc as webrtc
with gradio.Blocks() as demo:
webrtc_output = webrtc.WebRTC(label="WebRTC Stream")
@demo демокит(
inputs=webrtc_input,
outputs=webrtc_output
)
if __name__ == "__main__":
demo.launch()
What is WebRTC?
WebRTC (Web Real-Time Communication) is a free, open-source project that enables real-time communication over peer-to-peer connections.
How do I handle disconnections?
You can monitor connection status using event handlers and implement reconnect logic if needed.
Is gradio_webrtc secure?
Yes, WebRTC encrypts all communication by default, ensuring secure data transmission.