メインコンテンツへスキップ
POST
/
accent_phrases
テキストからアクセント句を得る
curl --request POST \
  --url https://api.example.com/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
  }
]

クエリパラメータ

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

レスポンス

Successful Response

moras
Mora · object[]
必須

モーラのリスト

accent
integer
必須

アクセント箇所

pause_mora
Pause Mora · object

アクセント句の末尾につく無音モーラ。null の場合は無音モーラを付けない。

is_interrogative
boolean
デフォルト:false

疑問系かどうか

最終更新日 2026年5月27日