LibreAI / 音声 / fastrtc
// audio · gradio-app/fastrtc

fastrtc

fastrtcは、gradio-appが公開しているオープンソースの音声プロジェクトです(GitHub: gradio-app/fastrtc)。GitHubスターは4,631、フォークは436で、MITライセンスの下で公開されています。GitHubでの最終更新は2026年1月12日です。

FastRTC turns any Python function into a real-time audio or video stream over WebRTC or WebSockets

★ 4.6k スター⑂ 436 フォークMIT更新 2026年1月
▦ ビジュアル — このプロジェクトのREADMEには埋め込み可能なスクリーンショットがないため、
ここではプレースホルダーを表示しています。下のガイド自体は完全な内容です。
// プロジェクトの基本情報

プロジェクト基本情報

リポジトリ
gradio-app/fastrtc
GitHubスター
4,631
フォーク
436
ライセンス
MIT
GitHubでの最終更新
2026年1月12日
カテゴリ
音声
掲載タイプ
完全なインストールガイド
公式サイト
Official site
// 仕組み

仕組み

  1. Define your reply function

    Write a Python generator that takes audio (or video) frames and yields responses.

  2. Install FastRTC

    Install from PyPI, adding the vad/tts extras if you want pause detection and text-to-speech.

  3. Wrap it in a Stream

    Create a Stream with ReplyOnPause for audio conversations, and pick a delivery mode: built-in UI, FastAPI mount, or a phone number.

  4. Launch and talk

    Start the stream and speak to your function in real time.

// 機能

選ばれる理由

Automatic turn-taking

Built-in voice activity detection (the ReplyOnPause handler) runs your function when the user stops speaking.

WebRTC and WebSockets

Stream real-time audio or video over either transport, in send, receive, or send-receive modes.

Built-in Gradio UI

Every stream can launch with a test interface via stream.ui.launch().

FastAPI mounting

Mount a stream into an existing FastAPI application with stream.mount(app).

FastPhone

Get a temporary phone number to call your stream, using a Hugging Face token.

Extras for speech

Optional vad and tts extras add pause detection and text-to-speech support.

Advertisement
// 自分で実行

自分で実行してみる

  1. Clone the repository

    Clone the project and enter its directory (library users can install from PyPI instead).

    git clone https://github.com/gradio-app/fastrtc.git
    cd fastrtc
  2. Install FastRTC

    Install the package, with the speech extras if you need them.

    pip install fastrtc
    pip install "fastrtc[vad, tts]"
  3. Create and launch a stream

    Wrap a reply function in a Stream and launch the built-in UI.

    from fastrtc import Stream, ReplyOnPause
    stream = Stream(handler=ReplyOnPause(fn), modality="audio", mode="send-receive")
    stream.ui.launch()
// 活用例

作れるもの

Advertisement
// よくある質問

よくある質問

Who maintains FastRTC?

The Gradio team (gradio-app) — the same group behind the Gradio ML interface library.

Is FastRTC free?

Yes, it is MIT-licensed open source. FastPhone numbers are provided through Hugging Face and require an HF token.

Does it need a paid API key?

No — the library is self-contained; you supply your own speech/LLM models inside your handler function.

How does it compare to raw WebRTC libraries like aiortc?

FastRTC abstracts the transport and adds the conversational layer — VAD, turn-taking, a test UI, and FastAPI mounting — so you write a plain function instead of managing peers and tracks.

How do I get started?

`pip install fastrtc`, wrap your function with `Stream(handler=ReplyOnPause(fn), ...)`, and call `stream.ui.launch()`.

// さらに探索

似ているツール

音声

hifi-gan

GAN vocoder that turns mel-spectrograms into high-fidelity speech audio, fast enough for real-time use.

★ 2.4k スターMIT
ガイドを見る →
音声

mcp-video-analyzer

MCP server that turns any video — YouTube.

★ 85 スターMIT
ガイドを見る →
音声

gTTS

gTTS — Python library and CLI that turns text into spoken mp3 via Google Translate's speech API

★ 2.6k スターMIT
ガイドを見る →
音声

Real-Time-Voice-Cloning

Clone a voice from 5 seconds of audio and generate arbitrary speech in real time

★ 60.2k スターNOASSERTION
ガイドを見る →
音声

VieNeu-TTS

Vietnamese TTS with instant voice cloning — on-device, real-time CPU inference, 48 kHz audio

★ 2.8k スターApache-2.0
ガイドを見る →
音声

librosa

Python library for audio and music analysis

★ 8.6k スターISC
ガイドを見る →
// 代替候補

代替候補: 音声

LibreAIカタログに掲載された音声プロジェクトの中で最もスターの多いもの — fastrtcが合わなかった場合に検討したい、現実的な候補リストです。

// さらに見る audio

さらに見る: 音声

カタログの中でfastrtcとスター数が近い音声プロジェクト — 前後の棚もそのまま見て回れます。

fastrtcを入手する

無料でオープン — ソースコードを入手して、リポジトリにスターを付け、作り始めましょう。