Palabra plugin for LiveKit Agents
Support for Palabra realtime Speech-to-Text and Text-to-Speech APIs, using WebSocket streaming interfaces.
See STT documentation and TTS documentation for more information.
Installation
pip install livekit-plugins-palabra
Pre-requisites
The Palabra plugin requires an API key to authenticate. You can create one at platform.palabra.ai/api-keys.
Set the API key in your .env file:
PALABRA_API_KEY=<your_palabra_api_key>
Usage
Speech-to-Text (STT)
Use Palabra STT in an AgentSession or as a standalone streaming transcription service. The spoken language is auto-detected by default:
from livekit.agents import AgentSession
from livekit.plugins import palabra
session = AgentSession(
stt=palabra.STT(),
# ... llm, tts, etc.
)
Live translation
Palabra STT can translate speech on the fly. With translate_languages set, each emitted SpeechData maps as: language/text = the translation; source_languages/source_texts = the original speech. Final transcripts arrive already in the target language, so a translating agent works without an LLM in the loop:
stt = palabra.STT(translate_languages=["es"])
Text-to-Speech (TTS)
Use Palabra TTS for real-time speech synthesis:
from livekit.plugins import palabra
session = AgentSession(
tts=palabra.TTS(
language="en",
voice_id="default_low", # or "default_high", or any Palabra voice id
speed=0.5, # 0.0-1.0; 0.5 is natural conversational pace
),
# ... stt, llm, etc.
)
The TTS streams over one persistent WebSocket session: text chunks coming from the LLM are tokenized into sentences and synthesized as they arrive, and an interruption cancels the in-flight synthesis server-side.
More information and reference
- Palabra realtime STT API
- Palabra realtime TTS API
- Palabra platform — API keys and usage
- palabra-ai Python SDK — the transport this plugin builds on
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file livekit_plugins_palabra-1.7.1.tar.gz.
File metadata
- Download URL: livekit_plugins_palabra-1.7.1.tar.gz
- Upload date:
- Size: 13.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ecd7994b65df1d72fe6951ce117425c103f18989f9b317e83df800b5b8b9df7
|
|
| MD5 |
f634b1bf00c9b9d71ff4cf534ebdb5a1
|
|
| BLAKE2b-256 |
0f1e8e26073ed6ffd6e7de8e62387391aa833ea974ceccab0cf403550c25e4ae
|
Provenance
The following attestation bundles were made for livekit_plugins_palabra-1.7.1.tar.gz:
Publisher:
publish.yml on livekit/agents
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
livekit_plugins_palabra-1.7.1.tar.gz -
Subject digest:
6ecd7994b65df1d72fe6951ce117425c103f18989f9b317e83df800b5b8b9df7 - Sigstore transparency entry: 2612570607
- Sigstore integration time:
-
Permalink:
livekit/agents@6e3af311381d11c5d6c065567e98d35bb54b85a9 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/livekit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6e3af311381d11c5d6c065567e98d35bb54b85a9 -
Trigger Event:
pull_request
-
Statement type:
File details
Details for the file livekit_plugins_palabra-1.7.1-py3-none-any.whl.
File metadata
- Download URL: livekit_plugins_palabra-1.7.1-py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45048ea66a46947cf4db568df235d45437ba873c1d1cf3aa5ad9ce6a5a178fe5
|
|
| MD5 |
213bc391ebd788d85341bfce60015fcc
|
|
| BLAKE2b-256 |
73a4d0066129fa80a8903474870bae99f76f83d364f19636d082d74f79882ef0
|
Provenance
The following attestation bundles were made for livekit_plugins_palabra-1.7.1-py3-none-any.whl:
Publisher:
publish.yml on livekit/agents
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
livekit_plugins_palabra-1.7.1-py3-none-any.whl -
Subject digest:
45048ea66a46947cf4db568df235d45437ba873c1d1cf3aa5ad9ce6a5a178fe5 - Sigstore transparency entry: 2612570625
- Sigstore integration time:
-
Permalink:
livekit/agents@6e3af311381d11c5d6c065567e98d35bb54b85a9 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/livekit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6e3af311381d11c5d6c065567e98d35bb54b85a9 -
Trigger Event:
pull_request
-
Statement type: