LibreAI / 音声 / pyttsx3
// audio · nateshmbhat/pyttsx3

pyttsx3

pyttsx3は、nateshmbhatが公開しているオープンソースの音声プロジェクトです(GitHub: nateshmbhat/pyttsx3)。GitHubスターは2,534、フォークは361で、MPL-2.0ライセンスの下で公開されています。GitHubでの最終更新は2026年7月22日です。

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

★ 2.5k スター⑂ 361 フォークMPL-2.0更新 2026年7月
▦ ビジュアル — このプロジェクトのREADMEには埋め込み可能なスクリーンショットがないため、
ここではプレースホルダーを表示しています。下のガイド自体は完全な内容です。
// プロジェクトの基本情報

プロジェクト基本情報

リポジトリ
nateshmbhat/pyttsx3
GitHubスター
2,534
フォーク
361
ライセンス
MPL-2.0
GitHubでの最終更新
2026年7月22日
カテゴリ
音声
掲載タイプ
完全なインストールガイド
// 仕組み

仕組み

  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.

// 機能

選ばれる理由

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
// 自分で実行

自分で実行してみる

  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()
// 活用例

作れるもの

Advertisement
// よくある質問

よくある質問

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.

// さらに探索

似ているツール

音声

Scribe

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

★ 39 スターMIT
ガイドを見る →
音声

gTTS

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

★ 2.6k スターMIT
ガイドを見る →
音声

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 スターApache-2.0
ガイドを見る →
音声

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 スターCustom
ガイドを見る →
音声

out-loud

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

★ 87 スターNOASSERTION
ガイドを見る →
// 代替候補

代替候補: 音声

LibreAIカタログに掲載された音声プロジェクトの中で最もスターの多いもの — pyttsx3が合わなかった場合に検討したい、現実的な候補リストです。

// さらに見る audio

さらに見る: 音声

カタログの中でpyttsx3とスター数が近い音声プロジェクト — 前後の棚もそのまま見て回れます。

pyttsx3を入手する

無料でオープン — ソースコードを入手して、リポジトリにスターを付け、作り始めましょう。