SRTファイルを読み込み,各セリフ時間内に収まるように考慮してVoicevox Engine APIを利用して音声合成をします。
git clone https://github.com/szriru/voicevox-srt-to-speak
cd voicevox-srt-to-speak
pip install -r requirement.txt
python main.py "input.srt"
"input.srt"を実際のsrtファイルの名前・場所にしてください
--speaker
スピーカーID,デフォルトは3のノーマルずんだもん.
--voicevox_url
voicevox engineがapiをexposeしているURL.デフォルトはhttp://127.0.0.1:50021
- キャラを分けられるようにする。
MIT