mirror of
https://github.com/HumanAIGC-Engineering/gradio-webrtc.git
synced 2026-02-05 09:59:22 +08:00
28 lines
1.3 KiB
Markdown
28 lines
1.3 KiB
Markdown
<h1 style='text-align: center; margin-bottom: 1rem; color: white;'> Gradio WebRTC ⚡️ </h1>
|
|
|
|
<div style="display: flex; flex-direction: row; justify-content: center">
|
|
<img style="display: block; padding-right: 5px; height: 20px;" alt="Static Badge" src="https://img.shields.io/pypi/v/gradio_webrtc">
|
|
<a href="https://github.com/freddyaboulton/gradio-webrtc" target="_blank"><img alt="Static Badge" src="https://img.shields.io/badge/github-white?logo=github&logoColor=black"></a>
|
|
</div>
|
|
|
|
<h3 style='text-align: center'>
|
|
Stream video and audio in real time with Gradio using WebRTC.
|
|
</h3>
|
|
|
|
## Installation
|
|
|
|
```bash
|
|
pip install gradio_webrtc
|
|
```
|
|
|
|
to use built-in pause detection (see [Audio Streaming](https://freddyaboulton.github.io/gradio-webrtc/user-guide/#reply-on-pause)), install the `vad` extra:
|
|
|
|
```bash
|
|
pip install gradio_webrtc[vad]
|
|
```
|
|
|
|
## Examples
|
|
1. [Object Detection from Webcam with YOLOv10](https://huggingface.co/spaces/freddyaboulton/webrtc-yolov10n) 📷
|
|
2. [Streaming Object Detection from Video with RT-DETR](https://huggingface.co/spaces/freddyaboulton/rt-detr-object-detection-webrtc) 🎥
|
|
3. [Text-to-Speech](https://huggingface.co/spaces/freddyaboulton/parler-tts-streaming-webrtc) 🗣️
|
|
4. [Conversational AI](https://huggingface.co/spaces/freddyaboulton/omni-mini-webrtc) 🤖🗣️ |