Skip to main content

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

livekit_plugins_palabra-1.7.1.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

livekit_plugins_palabra-1.7.1-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

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

Hashes for livekit_plugins_palabra-1.7.1.tar.gz
Algorithm Hash digest
SHA256 6ecd7994b65df1d72fe6951ce117425c103f18989f9b317e83df800b5b8b9df7
MD5 f634b1bf00c9b9d71ff4cf534ebdb5a1
BLAKE2b-256 0f1e8e26073ed6ffd6e7de8e62387391aa833ea974ceccab0cf403550c25e4ae

See more details on using hashes here.

Provenance

The following attestation bundles were made for livekit_plugins_palabra-1.7.1.tar.gz:

Publisher: publish.yml on livekit/agents

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file livekit_plugins_palabra-1.7.1-py3-none-any.whl.

File metadata

File hashes

Hashes for livekit_plugins_palabra-1.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 45048ea66a46947cf4db568df235d45437ba873c1d1cf3aa5ad9ce6a5a178fe5
MD5 213bc391ebd788d85341bfce60015fcc
BLAKE2b-256 73a4d0066129fa80a8903474870bae99f76f83d364f19636d082d74f79882ef0

See more details on using hashes here.

Provenance

The following attestation bundles were made for livekit_plugins_palabra-1.7.1-py3-none-any.whl:

Publisher: publish.yml on livekit/agents

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

1.7.1 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page