Text to speech

Python TTS with natural, expressive voices

Install the SDK with pip install camb-sdk, add your API key and turn text into speech from your Python code: streamed as it's generated, in 150+ languages.

Write something and we'll turn it into speech…

Try a voice

Ready when you areSpeech · 0:00
Download
  • 150+ Languages
  • Any voice From the library, a description or a clone
  • Emotion tags [excited], [whispering], [calm]
  • MP3, WAV, FLAC Downloads

How it works

Add text to speech to a Python project

  1. 01

    Install the SDK

    Run pip install camb-sdk, then create an API key in your CAMB.AI account and keep it in an environment variable.

  2. 02

    Choose the voice and language

    Pick a voice from the library, describe a new one, or clone one with permission. Set the language and add emotion tags in the text.

  3. 03

    Stream or save the audio

    Play the speech while it's generated, or write it to an MP3 or WAV file. The docs at docs.camb.ai walk through text to speech with the SDK.

POST/apis/tts-streamSpeech streamed back while it's generated
WSS/apis/live-tts/wsText in, speech and word timings out, live
POST/apis/text-to-voiceA new voice from a written description
POST/apis/create-custom-voiceA voice clone from a short recording

Python TTS: a local library or an API?

Python has local text to speech libraries that run offline with the voices already on your system, and open models you host yourself. They're handy for quick scripts. A hosted API trades the setup for natural voices and 150+ languages. The open source TTS page compares both routes.

  • Speech that streams

    POST /apis/tts-stream returns audio in chunks while it's generated, so a script or a bot can start playing straight away.

  • A live session for agents

    Over the WebSocket, send text as your model writes it and get audio and word timings back.

  • Voices from code

    Create a voice from a written description, or clone one from a short recording, with the same API key.

  • On the device

    For speech that runs locally, CAMB.AI also offers on-device text to speech.

One script, every language

Change one parameter and the same Python code speaks Spanish, French, Portuguese or Korean. Useful for apps, games and pipelines that ship to more than one market.

  • Language per request

    Set the language on each call from 150+, and keep the same voice across all of them.

  • Translate and speak

    Send English text and get speech in another language back, translated and voiced in one request.

  • Batch jobs

    Loop over a list of lines, prompts or lessons and save each one as its own audio file.

One script, five languages

  • ENFiling your return should take minutes, not evenings.
  • ESPresentar tu declaración debería llevar minutos, no tardes enteras.
  • FRDéclarer vos impôts devrait prendre quelques minutes, pas toute une soirée.
  • PTDeclarar o seu imposto devia levar minutos, não noites inteiras.
  • KO세금 신고는 저녁 내내가 아니라 몇 분이면 끝나야 합니다.

The same voice, built into the chip

The Broadcom building at sunset

CAMB.AI text to speech runs on Broadcom chips for home devices

“This collaboration showcases the power of bringing together CAMB.AI's expertise in real-time multilingual AI and Broadcom's advanced SoC technology. We are enabling next-generation user experiences that are both highly intelligent and privacy-first.”

Rich Nelson, SVP and GM, Broadband Video Group, Broadcom
On the chip
speech made on the device's own processor
No cloud
all processing stays on the device

11.2025

Read the case study

Questions about Python TTS

Text to speech from Python code: your script sends text to a library or an API and gets spoken audio back, to play or save as a file.

Run pip install camb-sdk, then create an API key in your CAMB.AI account. The text to speech tutorial on docs.camb.ai shows the first request.

Yes. Run npm install @camb-ai/sdk. It calls the same API, so voices, languages and streaming work the same way.

A local library if you need offline speech for a quick script and the system voice is good enough. A hosted API if you need natural voices, many languages, emotion tags or voice cloning.

Local libraries do. The CAMB.AI SDK calls a hosted API, so it needs a connection. For speech without one, CAMB.AI also offers on-device text to speech.

Yes. Write the returned audio to a file, or download MP3, WAV or FLAC from Studio if you're testing lines by hand.

Yes, through the voice clone API, from a short recording and with the speaker's permission. See voice cloning.

Yes. CAMB.AI has a free plan: paste a few lines into text to speech in Studio, pick the voice you like, then use it from Python.

Your Python app, speaking

  • SOC 2 compliant
  • Studio and API
  • 150+ languages