livekit-plugins-pinch
Real-time voice translation for LiveKit Agents, powered by Pinch.
What it does
Drop this plugin into any LiveKit room and it will:
- Translate spoken audio in real time from one language to another
- Publish the translated audio back into the room as a separate track
- Emit transcripts (original + translated) via a simple callback
Installation
pip install livekit-plugins-pinch
Configuration
You need a Pinch API key. Get one at the developers portal.
Set it in your environment:
export PINCH_API_KEY=pk_your_key_here
That's the only credential this plugin needs. Your LiveKit credentials stay in your own app as usual.
Usage
from livekit import rtc
from livekit.plugins.pinch import Translator, TranslatorOptions
async def entrypoint(ctx: JobContext):
await ctx.connect()
translator = Translator(
options=TranslatorOptions(
source_language="en-US",
target_language="es-ES",
voice_type="clone", # "clone" | "female" | "male"
)
)
@translator.on_transcript
def on_transcript(event):
if event.is_final:
print(f"[{event.type}] {event.text}")
await translator.start(ctx.room)
Voice types
| Value | Description |
|---|---|
clone |
Preserves the speaker's original voice identity (default) |
female |
Standard female voice |
male |
Standard male voice |
Supported languages
Full list of language codes: supported languages
License
Apache 2.0 — see LICENSE for details.
Metadata
Release files for livekit-plugins-pinch 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| livekit_plugins_pinch-0.1.0.tar.gz | 11.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| livekit_plugins_pinch-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.8 kB
Release files / livekit_plugins_pinch-0.1.0.tar.gz
| Download URL | livekit_plugins_pinch-0.1.0.tar.gz |
|---|---|
| Size | 11.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
89c7753d0e626a1dc7760d3c1efe006f3db95eeecc683fa386db901237e92cd0
|
|
BLAKE2b-256 checksum How to use checksums |
d8b4fe81dac055dc5a71da04b307c5b1c7edd2af15a1d17367639676ac0220d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 2, 2026.
Transparency logRelease files / livekit_plugins_pinch-0.1.0-py3-none-any.whl
| Download URL | livekit_plugins_pinch-0.1.0-py3-none-any.whl |
|---|---|
| Size | 12.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bc2a1ab575b3e05cd73d882c0d9b10e98344bcc08dc3950b2cb10353b2f6383b
|
|
BLAKE2b-256 checksum How to use checksums |
98e36faf4477dc569db39dbf542140d525c9e500ea58a7a21d1ac824b9b939f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 2, 2026.
Transparency log