https://voicevox.hiroshiba.jp/
Linux CPU tar.gzhttps://voicevox.hiroshiba.jp/
tar zxvf voicevox-linux-cpu-x.xx.x.tar.gz
cd VOICEVOX/vv-engine ./run --host 0.0.0.0 --port 50021
http://0.0.0.0:50021 で待ち受けます。
※引数無しの場合は、http://localhost:50021 で待ち受けます。
※その他のオプションは、./run --help で確認できます。
curl http://127.0.0.1:50021/speakers
# path: audio_query # query: # text=<メッセージ> # speaker=<キャラID> # 出力: 音声合成で利用する JSON データが返されます。 curl -X POST -G http://127.0.0.1:50021/audio_query --data-urlencode 'text=今日の天気は晴れでしょう' --data-urlencode 'speaker=1'
# 音声合成用のクエリ作成の応答を取得 RESPONSE=`curl -X POST -G http://127.0.0.1:50021/audio_query --data-urlencode 'text=今日の天気は晴れでしょう' --data-urlencode 'speaker=1'` # 音声合成 # path: synthesis # query: # speaker=<キャラID> # body: # <音声合成用のクエリ作成の応答(JSON)> # 出力: 音声合成した wav ファイルが返されます。 curl -X POST -H "Content-Type: application/json" http://127.0.0.1:50021/synthesis?speaker=1 -d "${RESPONSE}" --output "output.wav"
&code(python){{ test }};