Skip to main content
POST
/
audio_query_from_preset
Create query for speech synthesis using preset
curl --request POST \
  --url https://api.example.com/audio_query_from_preset
{
  "accent_phrases": [
    {
      "moras": [
        {
          "text": "<string>",
          "vowel": "<string>",
          "vowel_length": 123,
          "pitch": 123,
          "consonant": "<string>",
          "consonant_length": 123
        }
      ],
      "accent": 123,
      "pause_mora": {
        "text": "<string>",
        "vowel": "<string>",
        "vowel_length": 123,
        "pitch": 123,
        "consonant": "<string>",
        "consonant_length": 123
      },
      "is_interrogative": false
    }
  ],
  "speedScale": 123,
  "pitchScale": 123,
  "intonationScale": 123,
  "volumeScale": 123,
  "prePhonemeLength": 123,
  "postPhonemeLength": 123,
  "outputSamplingRate": 123,
  "outputStereo": true,
  "pauseLength": 123,
  "pauseLengthScale": 1,
  "kana": "<string>"
}

Query Parameters

text
string
required
preset_id
integer
required
enable_katakana_english
boolean
default:true
core_version
string

Response

Successful Response

Query for speech synthesis.

accent_phrases
AccentPhrase · object[]
required

List of accent phrases

speedScale
number
required

Overall speech speed

pitchScale
number
required

Overall pitch

intonationScale
number
required

Overall intonation

volumeScale
number
required

Overall volume

prePhonemeLength
number
required

Silence duration before the audio

postPhonemeLength
number
required

Silence duration after the audio

outputSamplingRate
integer
required

Output sampling rate of the audio data

outputStereo
boolean
required

Whether to output audio data in stereo

pauseLength
number | null

Silence duration for punctuation etc. Ignored when null. Default value is null.

pauseLengthScale
number
default:1

Silence duration for punctuation etc. (multiplier). Default value is 1.

kana
string

[Read-only] Text in AquesTalk-style notation. Ignored as a query for speech synthesis.

Last modified on May 27, 2026