Skip to main content

Microsoft Edge TTS 向け TTS Plugin (edge-tts backend)

Project description

tts-plugin-edgetts

tts-plugin-edgetts Banner

PyPI version License Python Version Maintained

WebsiteReport BugContributing


🚀 Overview

edge-tts (Microsoft Edge TTS) を tts-plugin-bridge で利用するためのプラグインです。 APIキー不要で多言語対応のTTSが利用できます。

📦 インストール

uv add tts-plugin-bridge tts-plugin-edgetts

⚙️ 前提条件

  • インターネット接続 (Microsoft Edge TTSサービスにアクセス)
  • ローカルサーバー不要
  • 再生には ffplay または paplay / aplay がPATHに存在すること
    • ffplay がある場合: ストリーミング再生(受信しながら即時再生)
    • ffplay がない場合: 全取得後に paplay / aplay で再生

🛠 Usage

🧩 Python API

from tts_plugin_bridge import TTSSkill

async with TTSSkill(default_engine="edgetts") as skill:
    # save / synthesize — ファイル保存やBase64取得用
    res = await skill.save(
        text="こんにちは、エッジティーティーエスのテストです。",
        speed=1.2,
        model="ja-JP-KeitaNeural",
    )

    # say / play — 直接再生(ffplayストリーミング → paplay/aplay)
    res = await skill.say(
        text="ストリーミングで即時再生します。",
        speed=1.0,
    )

🎤 CLI(vox4ai 推奨)

# 直接再生(自動ストリーミング)
vox4ai say "こんにちは" -e edgetts

# 男性声で再生
vox4ai say "こんにちは" -e edgetts --model ja-JP-KeitaNeural

# ファイル保存(MP3)
vox4ai save "こんにちは" -e edgetts -o output.mp3

# 環境診断
vox4ai --doctor

⌨️ CLI(tts-plugin-bridge 後方互換)

tts-plugin-bridge synthesize "こんにちは" -e edgetts -o output.mp3
tts-plugin-bridge play "こんにちは" -e edgetts
tts-plugin-bridge play "こんにちは" -e edgetts --model ja-JP-KeitaNeural

🔧 サポートパラメータ

パラメータ 説明
speed float 話速 (1.0=標準, >1.0=速い) → edge-tts rate に自動変換
volume float 音量倍率 → edge-tts volume に自動変換
model str 音声名 (例: ja-JP-KeitaNeural) → edge-tts voice にマッピング
extra.pitch str ピッチ (例: +5Hz, -10Hz)
extra.rate str 話速の直接指定 (例: +50%, -20%)。speed変換より優先
extra.volume str 音量の直接指定 (例: +100%)。volume変換より優先
extra.voice str 音声名の直接指定。modelより優先
extra.proxy str プロキシURL

🗣️ 主な音声一覧

音声名 性別 言語
ja-JP-NanamiNeural 女性 日本語 (デフォルト)
ja-JP-KeitaNeural 男性 日本語
en-US-EmmaMultilingualNeural 女性 英語 (多言語対応)
en-US-AndrewNeural 男性 英語

全音声一覧: uv run edge-tts --list-voices

📁 出力フォーマット

MP3 (24kHz, 48kbps, mono)

🔍 検証環境

  • OS: Windows 11 + WSL2 (Ubuntu)
  • 確認日: 2026-05-09
  • 依存: edge-tts v7.2.8, bridge / vox4ai CLI
  • 確認内容:
    • vox4ai say によるストリーミング再生(ffplay 経由)
    • vox4ai save による MP3 ファイル保存
    • vox4ai --doctor 環境診断
    • tts-plugin-bridge CLI 後方互換維持
    • 全ユニットテスト 22件 パス

📜 ライセンス

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tts_plugin_edgetts-0.1.0.tar.gz (116.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tts_plugin_edgetts-0.1.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file tts_plugin_edgetts-0.1.0.tar.gz.

File metadata

  • Download URL: tts_plugin_edgetts-0.1.0.tar.gz
  • Upload date:
  • Size: 116.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for tts_plugin_edgetts-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4a91916b4b5147d1db3a34990b20dcff68ad7a8b96b2e702460c4ddf3f3f0c2d
MD5 aa1357d317dd1497738c66055413d636
BLAKE2b-256 f1d34be6a23f28d55fe7a7cd9097193d1be049b3d9fb0fc062c5b4a55761999a

See more details on using hashes here.

File details

Details for the file tts_plugin_edgetts-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tts_plugin_edgetts-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3a3bf393dc4fac3028339598a17802103cfd4d2967c82f1c6451b9a22f72892a
MD5 9ebebcfb4eca0ecd5bb6792fc89ac6d0
BLAKE2b-256 37e98857e49521c7b2cb98ef5f9c0b2f9b13e4da0cecf441abe633a4b129bef7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page