LibreAI / Áudio / pyttsx3
// audio · nateshmbhat/pyttsx3

pyttsx3

pyttsx3 é um projeto de áudio de código aberto de nateshmbhat (nateshmbhat/pyttsx3 no GitHub). Tem 2.534 estrelas no GitHub e 361 forks, é publicado sob a licença MPL-2.0 e foi atualizado pela última vez no GitHub em 22 de julho de 2026.

Offline text-to-speech for Python — uses your operating system's own voices, no internet needed

★ 2,5 mil estrelas⑂ 361 forksMPL-2.0atualizado jul 2026
▦ visual: o README deste projeto não inclui nenhuma captura incorporável,
então aqui vai um marcador. O guia abaixo está completo mesmo assim.
// dados do projeto

Dados do projeto

Estrelas no GitHub
2.534
Forks
361
Licença
MPL-2.0
Última atualização no GitHub
22 de julho de 2026
Categoria
Áudio
Tipo de ficha
Guia de instalação completo
// como funciona

Como funciona

  1. Clarify your goal

    Decide whether the app should speak aloud, save audio files, or both — and which installed system voices are available on your platform.

  2. Get pyttsx3

    pip install pyttsx3 (upgrade wheel first if installation errors occur).

  3. Install platform pieces

    On Linux install espeak-ng/libespeak1; on macOS with pyobjc errors, the README suggests pyobjc >= 9.0.1.

  4. Run your first utterance

    Initialize the engine, say a sentence with runAndWait(), then tune rate, volume and voice to taste.

// recursos

Por que as pessoas gostam tanto

Fully offline

No network calls at all — synthesis uses local OS speech engines, so it works on planes and in sandboxes.

Cross-platform engines

Bundled drivers for eSpeak (Linux/macOS/Windows), NSSpeechSynthesizer and AVSpeech (macOS), and SAPI5 (Windows).

Voice selection

Enumerate the voices installed on your system and switch between them by voice ID.

Rate and volume control

Get and set speaking rate and volume (0 to 1) as engine properties.

Save to file

engine.save_to_file writes speech to an audio file (e.g. test.mp3) instead of playing it.

Tiny API

One-line pyttsx3.speak(...) for the default case, or a full engine object for control; docs at pyttsx3.readthedocs.io.

Advertisement
// execute você mesmo

Execute você mesmo

  1. Clone the repo

    Clone pyttsx3 if you want the source; most users install from PyPI in step 2.

    git clone https://github.com/nateshmbhat/pyttsx3.git
    cd pyttsx3
  2. Install

    Install the library from PyPI (on Linux also: sudo apt install espeak-ng libespeak1).

    pip install pyttsx3
  3. Speak your first line

    Use the README's minimal example — or the one-line pyttsx3.speak("I will speak this text").

    import pyttsx3
    engine = pyttsx3.init()
    engine.say("I will speak this text")
    engine.runAndWait()
// casos de uso

O que você pode criar

Advertisement
// perguntas frequentes

Perguntas frequentes

Who maintains pyttsx3?

nateshmbhat maintains it, with full documentation at pyttsx3.readthedocs.io.

Is pyttsx3 free?

Yes, it is MPL-2.0 licensed and free to use.

Does it need a paid API key?

No key and no internet — it uses the voices your operating system already provides. Voice quality therefore depends on your platform's engines.

How does it compare to gTTS?

gTTS produces Google voices but needs internet and uses an unofficial endpoint. pyttsx3 is fully offline with system voices — less polished audio, but private and always available.

How do I get started?

pip install pyttsx3, then the three-line init/say/runAndWait example from the README.

// continue explorando

Ferramentas semelhantes

Áudio

Scribe

A free offline desktop assistant for speech-to-text.

★ 39 estrelasMIT
Ver o guia →
Áudio

gTTS

gTTS — Python library and CLI that turns text into spoken mp3 via Google Translate's speech API

★ 2,6 mil estrelasMIT
Ver o guia →
Áudio

sherpa-onnx

Speech-to-text, text-to-speech, speaker diarization, speech enhancement, source separation, and VAD using next-gen Kaldi with onnxruntime without Internet co…

★ 15,1 mil estrelasApache-2.0
Ver o guia →
Áudio

edge-tts

Use Microsoft Edge's online text-to-speech service from Python WITHOUT needing Microsoft Edge or Windows or an API key

★ 12,2 mil estrelasCustom
Ver o guia →
Áudio

out-loud

Free, open source, 100% offline AI text-to-speech for macOS, Windows & Linux.

★ 87 estrelasNOASSERTION
Ver o guia →
// alternativas

Alternativas em Áudio

Os outros projetos de Áudio com mais estrelas no catálogo do LibreAI — a lista realista de alternativas se pyttsx3 não for o ideal para você.

// mais em audio

Mais em Áudio

Projetos de Áudio próximos no catálogo, os mais próximos em estrelas de pyttsx3: continue explorando dos dois lados dele.

Baixe o pyttsx3

Grátis e aberto: pegue o código-fonte, dê uma estrela no repositório e comece a criar.