Overview
PinchTranslatorService provides real-time speech-to-speech translation powered
by Pinch. It is a drop-in FrameProcessor that
sits between your transport’s input and output: it receives InputAudioRawFrame
from the user and emits OutputAudioRawFrame (translated speech) and
TranscriptionFrame (transcripts) downstream.
Source Repository
Source code, examples, and issues for the Pinch integration
PyPI Package
The
pipecat-plugins-pinch package on PyPIPinch
Learn more about Pinch real-time translation
API Keys
Create and manage your Pinch API keys
Installation
This is a community-maintained package distributed separately frompipecat-ai:
Prerequisites
Pinch Account Setup
Before using the Pinch translation service, you need:- Pinch Account: Sign up at Pinch
- API Key: Get one from the developers portal
Required Environment Variables
PINCH_API_KEY: Your Pinch API key for authentication
Configuration
Language and voice configuration for the translation session. See
TranslatorOptions below.
Pinch API key. Falls back to the
PINCH_API_KEY environment variable if not
provided.TranslatorOptions
Configuration passed via theoptions constructor argument using
TranslatorOptions(...).
| Parameter | Type | Default | Description |
|---|---|---|---|
source_language | str | required | BCP-47 code for the speaker’s language (e.g. "en-US"). |
target_language | str | required | BCP-47 code for the output language (e.g. "es-ES"). |
voice_type | str | "clone" | Voice used for translated output: "clone", "female", or "male". |
For the full list of supported language codes, see supported
languages.
Usage
Compatibility
Tested withpipecat-ai >= 0.0.50. Check the source
repository for the latest
tested version and changelog.