gitwtfhub

wtf is pocket-tts?

kyutai-labs/pocket-tts — explained in plain English

Analysis updated 2026-05-18

7,842PythonAudience · developerComplexity · 2/5Setup · easy

TL;DR

A lightweight text to speech tool that runs on your CPU, turning text into natural sounding audio with no GPU or web API required.

Mindmap

mindmap
  root((repo))
    What it does
      Text to speech
      Runs on CPU
      Streams audio
    Tech stack
      Python
      PyTorch
    Use cases
      Voice assistants
      Offline narration
      Voice cloning
    Audience
      Developers
      Python users

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Add offline voice narration to an app without needing a GPU or cloud API.

REASON 2

Build a low latency voice assistant that speaks responses in real time.

REASON 3

Clone a voice from a short audio sample and generate custom speech from text.

What's in the stack?

PythonPyTorch

How it stacks up

kyutai-labs/pocket-ttspaddlepaddle/erniewiseodd/generative-models
Stars7,8427,7207,496
LanguagePythonPythonPython
Setup difficultyeasyhardmoderate
Complexity2/54/53/5
Audiencedeveloperresearcherresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · easy Time to first run · 5min

Wtf does this do

Pocket TTS is a text to speech tool from Kyutai that turns written text into spoken audio using only a computer's CPU. It skips the need for a GPU or a web API, so you install it with pip and start generating audio with a single function call. The project supports Python versions 3.10 through 3.14 and needs PyTorch 2.5 or newer, but not the GPU version of PyTorch. The core model is small, about 100 million parameters, which keeps it light enough to run fast even on modest hardware. On a MacBook Air M4 CPU it generates audio about 6 times faster than real time, using only 2 CPU cores, and the first chunk of audio appears in around 200 milliseconds. It streams audio as it generates, so you do not have to wait for the whole clip to finish before playback starts. It can also handle text of any length. You can try Pocket TTS three ways. The website lets you type text, pick a voice, and hear the result with no installation at all. The command line tool offers a generate command for quick one off audio files and a serve command that starts a local web server, keeping the model loaded in memory so repeated requests are much faster. There is also a Python library you can install and call directly in your own code, shown in the README with a short example that loads a voice and produces an audio array you can save as a wav file. A standout feature is voice cloning: you can pass any wav file as a voice reference, or choose from a catalog of premade voices, and the model will speak in that voice. Pocket TTS supports six languages, english, french, german, portuguese, italian, and spanish, with plans to add more later. Some non english languages also offer a larger, higher quality variant that runs slower. There is also a browser based implementation for running client side, plus full documentation and a published tech report and paper for anyone who wants technical depth.

Yoink these prompts

Prompt 1
Show me how to install pocket-tts and generate a wav file from a text string using the Python library.
Prompt 2
Write a Python script that uses pocket-tts to clone my voice from a wav file and read a paragraph aloud.
Prompt 3
Help me run the pocket-tts serve command locally and call it over HTTP to generate speech.
Prompt 4
Explain how to pick a different language and voice when running pocket-tts generate from the command line.

Frequently asked questions

wtf is pocket-tts?

A lightweight text to speech tool that runs on your CPU, turning text into natural sounding audio with no GPU or web API required.

What language is pocket-tts written in?

Mainly Python. The stack also includes Python, PyTorch.

How hard is pocket-tts to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is pocket-tts for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.