Skip to content

Instantly share code, notes, and snippets.

@marron-akanishi
Created March 8, 2023 14:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marron-akanishi/24ddb52759003c1f817a48c2a7762a4f to your computer and use it in GitHub Desktop.
Save marron-akanishi/24ddb52759003c1f817a48c2a7762a4f to your computer and use it in GitHub Desktop.
吉里吉里でVOICEVOXを呼び出すためのbatファイル
@echo off
chcp 65001
echo %~2>voice.txt
curl -s -X POST "localhost:50021/audio_query?speaker=%1" --get --data-urlencode text@voice.txt > query.json
curl -s -H "Content-Type: application/json" -X POST -d @query.json "localhost:50021/synthesis?speaker=%1" > %~3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment