Body Required
-
Default value is
true
. -
Additional properties are allowed.
POST
/voicevox/synthesis
curl \
-X POST https://api.itsrose.rest/voicevox/synthesis \
-H "Content-Type: application/json" \
-d '{"speaker":42.0,"enable_interrogative_upspeak":true,"input":{"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"}}'
Request examples
{
"speaker": 42.0,
"enable_interrogative_upspeak": true,
"input": {
"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 (200)
{
"status": true,
"message": "success",
"result": {
"audios": [
"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": {}
}