Create a text-to-speech query
Get the initial value of the query. The resulting query can be used directly for speech synthesis.
POST
/voicevox/audio_query
curl \
-X POST https://api.itsrose.rest/voicevox/audio_query \
-H "Content-Type: application/json" \
-d '{"text":"string","speaker":42.0}'
Request examples
{
"text": "string",
"speaker": 42.0
}
Response examples (200)
{
"status": true,
"message": "success",
"result": {
"accent_phrases": [
{
"moras": [
{
"text": "string",
"vowel": "string",
"vowel_length": 42.0,
"pitch": 42.0
}
],
"accent": 42.0,
"pause_mora": {
"text": "string",
"vowel": "string",
"vowel_length": 42.0,
"pitch": 42.0
},
"is_interrogative": false
}
],
"speedScale": 42.0,
"pitchScale": 42.0,
"intonationScale": 42.0,
"volumeScale": 42.0,
"prePhonemeLength": 42.0,
"postPhonemeLength": 42.0,
"outputSamplingRate": 42.0,
"outputStereo": false,
"kana": "string"
}
}
Response examples (400)
{
"status": false,
"message": "string",
"result": {}
}
Response examples (401)
{
"status": false,
"message": "string",
"result": {}
}
Response examples (500)
{
"status": false,
"message": "string",
"result": {}
}