Skip to content

Instantly share code, notes, and snippets.

@schroneko
Created July 1, 2025 12:43
Show Gist options
  • Select an option

  • Save schroneko/83fd9aa003d985cbf20be0bfc0873939 to your computer and use it in GitHub Desktop.

Select an option

Save schroneko/83fd9aa003d985cbf20be0bfc0873939 to your computer and use it in GitHub Desktop.
curl -s -X POST "localhost:50021/audio_query?speaker=1" --get --data-urlencode text="タスクガカンリョウシタノダ!" | jq --argjson accents "$(curl -s -X POST "localhost:50021/accent_phrases?speaker=1&is_kana=true" --get --data-urlencode text="タ'スクガ/カンリョウシ'タノダ")" '.accent_phrases = $accents' | curl -s -H "Content-Type: application/json" -X POST "localhost:50021/synthesis?speaker=1" -d @- > voicevox_task_done.wav && afplay voicevox_task_done.wav
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment