メインコンテンツへスキップ
POST
/
mora_pitch
アクセント句から音高を得る
curl --request POST \
  --url https://api.example.com/mora_pitch \
  --header 'Content-Type: application/json' \
  --data '
[
  {
    "moras": [
      {
        "text": "<string>",
        "vowel": "<string>",
        "vowel_length": 123,
        "pitch": 123,
        "consonant": "<string>",
        "consonant_length": 123
      }
    ],
    "accent": 123,
    "is_interrogative": false
  }
]
'
[
  {
    "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
  }
]

クエリパラメータ

speaker
integer
必須
core_version
string

ボディ

application/json
moras
Mora · object[]
必須

モーラのリスト

accent
integer
必須

アクセント箇所

pause_mora
Pause Mora · object

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

is_interrogative
boolean
デフォルト:false

疑問系かどうか

レスポンス

Successful Response

moras
Mora · object[]
必須

モーラのリスト

accent
integer
必須

アクセント箇所

pause_mora
Pause Mora · object

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

is_interrogative
boolean
デフォルト:false

疑問系かどうか

最終更新日 2026年5月27日