LibreAI / Audio / pyttsx3
// audio · nateshmbhat/pyttsx3

pyttsx3

pyttsx3 es un proyecto de audio de código abierto de nateshmbhat (nateshmbhat/pyttsx3 en GitHub). Tiene 2.534 estrellas en GitHub y 361 bifurcaciones, se publica bajo la licencia MPL-2.0 y se actualizó por última vez en GitHub el 22 de julio de 2026.

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

★ 2,5k estrellas⑂ 361 bifurcacionesMPL-2.0actualizado jul 2026
▦ visual: el README de este proyecto no incluye ninguna captura incrustable,
así que aquí va un marcador. La guía de abajo está completa de todos modos.
// datos del proyecto

Datos del proyecto

Estrellas en GitHub
2.534
Bifurcaciones
361
Licencia
MPL-2.0
Última actualización en GitHub
22 de julio de 2026
Categoría
Audio
Tipo de ficha
Guía de instalación completa
// cómo funciona

Cómo 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.

// características

Por qué gusta 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
// ejecútalo

Ejecútalo tú mismo

  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

Qué puedes crear

Advertisement
// preguntas frecuentes

Preguntas frecuentes

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.

// sigue explorando

Herramientas similares

Audio

Scribe

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

★ 39 estrellasMIT
Ver la guía →
Audio

gTTS

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

★ 2,6k estrellasMIT
Ver la guía →
Audio

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,1k estrellasApache-2.0
Ver la guía →
Audio

edge-tts

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

★ 12,2k estrellasCustom
Ver la guía →
Audio

out-loud

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

★ 87 estrellasNOASSERTION
Ver la guía →
// alternativas

Alternativas en Audio

Los demás proyectos de Audio con más estrellas del catálogo de LibreAI: la lista realista de alternativas si pyttsx3 no es lo que buscas.

// más en audio

Más en Audio

Proyectos de Audio cercanos en el catálogo, los más próximos en estrellas a pyttsx3: sigue explorando a ambos lados.

Consigue pyttsx3

Gratis y abierto: consigue el código fuente, dale una estrella al repositorio y empieza a crear.