Skip to main content

TTS 音声合成 CLI - vox / vox4ai コマンド

Project description

vox4ai

vox4ai Banner

PyPI version License Python Version Maintained

WebsiteReport BugContributing


🚀 Overview

TTS 音声合成 CLI。tts-plugin-bridge のプラグインシステムに対応した TTS Engine を 統一的に操作できます。voxvox4ai 両方のコマンド名でインストールされます。

📦 Installation

uv add vox4ai

インストールするだけで tts-plugin-bridge + tts-plugin-edgetts(クラウドデフォルト)が 入り、追加のローカルサーバーなしで音声合成を試せます。

他の TTS エンジンを追加する場合:

uv add tts-plugin-aivisspeech   # AivisSpeech Engine
uv add tts-plugin-piperplus     # Piper Plus (HTTP server)
uv add tts-plugin-voisonatalk   # VoiSona Talk
uv add tts-plugin-kokoro        # Kokoro (local)

🛠 Usage

voxvox4ai は同義。短い vox を推奨。

# テキストを読み上げる(デフォルト: edgetts)
vox "こんにちは"

# 音声ファイルに保存
vox save "こんにちは" -o output.wav

# engine を明示指定
vox "こんにちは" -e aivisspeech --style-id 888753760

# 利用可能な TTS エンジン一覧
vox list

# 接続テスト
vox test -e aivisspeech --server-url http://localhost:10101

# 環境診断
vox --doctor

# 現在の設定
vox config

# サブコマンド一覧
vox --commands

⚙️ Configuration

vox4ai say "こんにちは" のように engine を省略しても、設定ファイルからデフォルト値を読み込みます。

場所: ~/.config/vox4ai/config.yaml(XDG_CONFIG_HOME 準拠)

設定例:

# デフォルトの TTS Engine
engine: edgetts

# デフォルトの音声モデル
model: ja-JP-NanamiNeural

# TTS サーバーURL(aivisspeech などで必要)
server_url: http://localhost:10101

# デフォルトの話速(0.5 〜 2.0、デフォルト 1.0)
speed: 1.2

# 話者スタイル ID(aivisspeech など)
style_id: 888753760

優先順位: CLI 引数 > config.yaml > デフォルト値

⌨️ Subcommands

Command Description
say テキストを読み上げる(ffplay ストリーミング優先 → paplay/aplay)
save テキストを音声ファイルに保存
list 利用可能なTTSプラグインを一覧表示
test TTSエンジンへの接続テスト
config 現在の設定 (config.yaml) を表示

📦 Dependencies

  • tts-plugin-bridge — コアフレームワーク
  • tts-plugin-edgetts — Microsoft Edge TTS(クラウド、デフォルト)
  • vox4ai-skill-lib — 内部ライブラリ
  • 任意の TTS プラグイン (tts-plugin-aivisspeech, tts-plugin-piperplus など)

📜 License

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

vox4ai-0.1.0.tar.gz (132.9 kB view details)

Uploaded Source

Built Distribution

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

vox4ai-0.1.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for vox4ai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 81416607fd72d1242cccf4331bbfcd2afc58a017a936a44f9751a4b50b584c95
MD5 7fdc750b8d96f8aa8a21d47733528e1a
BLAKE2b-256 a27acd5bce73a346c249a9a0ba81353d54c1465c52fee22c731f488de5e63738

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vox4ai-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for vox4ai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 48783989bb1878cb6ef6958b09eeade2889a3a4cf377f87f8a3b937ad6e7d650
MD5 b0e7f9a0ab13f9c70a9ea91a2090982d
BLAKE2b-256 850d6afc7c8b4f7c347fed75dd00786fb88da7dab93e48dba6b6ccfd77e187aa

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