Sign inSign up

jsmeet/livekit-ai-subtitles

By jsmeet

•Updated 5 months ago

Real-time AI-powered multilingual subtitles and translation for LiveKit streams.

Image
Languages & frameworks
Machine learning & AI
0

144

jsmeet/livekit-ai-subtitles repository overview

⁠LiveKit AI Subtitles

Real-time speech translation agent built on LiveKit Agents⁠.
Transcribes Hindi speech via Deepgram STT and streams translated subtitles to subscribers using OpenAI GPT.


⁠How It Works

  1. Agent joins a LiveKit room and listens to participant audio
  2. Deepgram transcribes speech in real-time (Hindi)
  3. Subscribers send a subscribe message with their desired language
  4. OpenAI translates and streams subtitle chunks back over the data channel

⁠Quick Start

docker run --env-file .env jsmeet/livekit-ai-subtitles:latest

⁠Environment Variables

VariableDescription
LIVEKIT_URLWebSocket URL of your LiveKit server
LIVEKIT_API_KEYLiveKit API key
LIVEKIT_API_SECRETLiveKit API secret
DEEPGRAM_API_KEYDeepgram API key for STT
OPENAI_API_KEYOpenAI API key for translation

⁠Docker Compose

services:
  ai-translation-service:
    image: jsmeet/livekit-ai-subtitles:latest
    restart: unless-stopped
    env_file: .env
    extra_hosts:
      - "host.docker.internal:host-gateway"

⁠Supported Languages

en hi mr ta te bn gu kn ml pa ur
es fr de zh ja ko ar ru it pt

⁠Data Channel Protocol

⁠Subscribe
{ "type": "subscribe", "lang": "en" }
⁠Incoming subtitles
{ "type": "subtitle_chunk", "lang": "en", "speaker": "Alice", "text": "Hello", "ts": 1234567890 }

⁠Tags

TagDescription
latestMost recent stable release
1.0.0Initial release

Tag summary

Content type

Image

Digest

sha256:3a9e64796…

Size

164.3 MB

Last updated

5 months ago

docker pull jsmeet/livekit-ai-subtitles