Skip to content

Instantly share code, notes, and snippets.

View ShayneP's full-sized avatar

Shayne Parmelee ShayneP

View GitHub Profile
@ShayneP
ShayneP / universal_pi_zero_translator.py
Created April 3, 2025 20:47
Universal Translator running on Pi Zero 2
# Real-time translator that uses Gladia to transcribe and translate any language to English
# It displays the translated text on a Pirate Audio display on a Raspberry Pi Zero 2 W
from pathlib import Path
from dotenv import load_dotenv
from livekit.agents import JobContext, WorkerOptions, cli
from livekit.agents.voice import Agent, AgentSession
from livekit.plugins import gladia
from PIL import Image