REPO STORY / リポジトリ紹介
rany2/edge-tts
Microsoft Edge のテキスト音声変換を使って、テキストを MP3 オーディオに変換する CLI ツール
01 / 何ができる?
どんな作業に
役立つ?
edge-tts は CLI コマンドまたは Python モジュールで、テキストを Microsoft Edge のサービスで MP3 オーディオと SRT 字幕に変換します。複数言語の音声合成に対応していて、即座再生もできます。edge-playback コマンドの使用時は Windows 以外で mpv が必要です。
- Microsoft Edge のテキスト音声変換サービスを直接利用した自然な音声合成
- 複数言語の音声から選択可能で、ピッチ・ボリューム・速度を細かく調整
- CLI コマンドとしても Python モジュールとしても利用できる柔軟性
Microsoft Edge のテキスト音声変換サービスを直接活用し、セットアップなしに複数言語の自然な音声合成を提供します。
02 / 自分に合う?
使いどころと、
選ぶ前の確認。
こんなときに
- コンテンツクリエイターが複数言語のスクリプトを自動的に音声化し、ポッドキャストやビデオ製作を効率化する
- 開発者がアプリケーション内でテキストをリアルタイムで音声に変換して、ユーザーに提供する
- ウェブサイトやドキュメントのアクセシビリティ機能として、テキストを自動読み上げする
先に確認すること
以下の前提条件を確認し、必要に応じて環境を準備してください。
- Python 環境
- mpv(Windows 以外で edge-playback 使用時の必須)
ギット飯の日本語要約から、利用例と前提条件を紹介しています。
03 / 始め方
最初の一歩を、
順番に。
準備するもの
- Python 環境
- mpv(Windows 以外で edge-playback 使用時の必須)
- pipx を使用してインストール
pipx install edge-tts
- テキストを MP3 ファイルと字幕に変換
edge-tts --text "Hello, world!" --write-media hello.mp3 --write-subtitles hello.srt
- テキストを即座に再生(Windows 以外は mpv 必須)
edge-playback --text "Hello, world!"
- 利用可能な音声を一覧表示
edge-tts --list-voices
- 別の言語と音声で生成
edge-tts --voice ar-EG-SalmaNeural --text "مرحبا كيف حالك؟" --write-media hello_in_arabic.mp3 --write-subtitles hello_in_arabic.srt
- 音声の速度・ボリューム・ピッチを調整
edge-tts --rate=-50% --text "Hello, world!" --write-media hello_with_rate_lowered.mp3 --write-subtitles hello_with_rate_lowered.srt
edge-tts --volume=-50% --text "Hello, world!" --write-media hello_with_volume_lowered.mp3 --write-subtitles hello_with_volume_lowered.srt
edge-tts --pitch=-50Hz --text "Hello, world!" --write-media hello_with_pitch_lowered.mp3 --write-subtitles hello_with_pitch_lowered.srt
コマンドは要約からの引用です。実行やインストールの成否は検証していません。公式の所要時間は記載されていません。
04 / 関連リポジトリ
どんなリポジトリとつながる?
比較グラフのスナップショットから関係の種類と根拠を紹介します。現在公開中のリポジトリだけを表示します。
OpenBMB/VoxCPM ↗
共通するGitHubトピック:speech-synthesis,text-to-speech,tts
repos.topicsの共通項(speech-synthesis,text-to-speech,tts)
グラフの元データ ↗nyosegawa/speech.cpp ↗
共通するGitHubトピック:text-to-speech,tts,speech-synthesis
repos.topicsの共通項(text-to-speech,tts,speech-synthesis)
グラフの元データ ↗markrzv/tiktok-voice-tts ↗
共通するGitHubトピック:text-to-speech,tts,speech-synthesis
repos.topicsの共通項(text-to-speech,tts,speech-synthesis)
グラフの元データ ↗NeonGeckoCom/neon-tts-plugin-coqui ↗
共通するGitHubトピック:speech-synthesis,tts,text-to-speech
repos.topicsの共通項(speech-synthesis,tts,text-to-speech)
グラフの元データ ↗