Skip to main content

Palabra API Overview

Real-time speech translation

Add Palabra's world-class translation to your app in minutes with our intuitive API and ready-made client libraries

import asyncio
from palabra_ai import Palabra, Transcript, Audio

async def main():
palabra = Palabra(client_id='***', client_secret='***')

async with palabra.translation(source="en", targets=["es"]) as session:

async def send_audio():
while chunk := await audio_buffer.get(): # your audio source
await session.send_audio(chunk)
await session.end(eos_timeout=4)

audio_sender_task = asyncio.create_task(feed())

async for event in session:
match event:
case Transcript():
print(event)
case Audio():
play(event.pcm)

await audio_sender_task

asyncio.run(main())
Python Palabra SDK

Overview

The Palabra API enables real-time speech translation across multiple languages, helping your users communicate clearly and efficiently. With easy integration for both client- and server-side apps, Palabra fits seamlessly into any business workflow.

Features

Live Demo

Supported Languages

The Palabra API supports a wide range of languages for speech recognition and translation, as listed below:

Loading...

View the full language table for detailed language codes and additional information.

Next steps

API Clients

Palabra API