メインコンテンツへスキップ
POST
/
audio_query
音声合成用のクエリを作成する
curl --request POST \
  --url https://api.example.com/audio_query
{
  "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>"
}

クエリパラメータ

text
string
必須
speaker
integer
必須
enable_katakana_english
boolean
デフォルト:true
core_version
string

レスポンス

Successful Response

音声合成用のクエリ。

accent_phrases
AccentPhrase · object[]
必須

アクセント句のリスト

speedScale
number
必須

全体の話速

pitchScale
number
必須

全体の音高

intonationScale
number
必須

全体の抑揚

volumeScale
number
必須

全体の音量

prePhonemeLength
number
必須

音声の前の無音時間

postPhonemeLength
number
必須

音声の後の無音時間

outputSamplingRate
integer
必須

音声データの出力サンプリングレート

outputStereo
boolean
必須

音声データをステレオ出力するか否か

pauseLength
number | null

句読点などの無音時間。nullのときは無視される。デフォルト値はnull

pauseLengthScale
number
デフォルト:1

句読点などの無音時間(倍率)。デフォルト値は1

kana
string

[読み取り専用]AquesTalk 風記法によるテキスト。音声合成用のクエリとしては無視される

最終更新日 2026年5月27日