---
title: "アクセント句から音素長を得る (AivisSpeech Engine では常にダミーの値が返されます)"
method: POST
path: "/mora_length"
tags: ["クエリ編集"]
---

# アクセント句から音素長を得る (AivisSpeech Engine では常にダミーの値が返されます)

`POST /mora_length`

## Query parameters

- `speaker` integer, required
- `core_version` string — AivisSpeech Engine ではサポートされていないパラメータです (常に無視されます) 。

## Request body

- AccentPhrase[]
  - `moras` Mora[], required — モーラのリスト
    - `text` string, required — 子音＋母音に対応する文字。 VOICEVOX ENGINE と異なり、感嘆符・句読点などの記号もモーラに含まれる。 記号モーラの場合、`text` には記号がそのまま、`vowel` には "pau" が設定される。
    - `consonant` string — 子音の音素。
    - `consonant_length` number — 子音の音長。 AivisSpeech Engine の実装上算出できないため、ダミー値として常に 0.0 が返される。
    - `vowel` string, required — 母音の音素。
    - `vowel_length` number, required — 母音の音長。 AivisSpeech Engine の実装上算出できないため、ダミー値として常に 0.0 が返される。
    - `pitch` number, required — 音高。 AivisSpeech Engine の実装上算出できないため、ダミー値として常に 0.0 が返される。
  - `accent` integer, required — アクセント箇所
  - `pause_mora` Mora — モーラ（子音＋母音）ごとの情報。
    - `text` string, required — 子音＋母音に対応する文字。 VOICEVOX ENGINE と異なり、感嘆符・句読点などの記号もモーラに含まれる。 記号モーラの場合、`text` には記号がそのまま、`vowel` には "pau" が設定される。
    - `consonant` string — 子音の音素。
    - `consonant_length` number — 子音の音長。 AivisSpeech Engine の実装上算出できないため、ダミー値として常に 0.0 が返される。
    - `vowel` string, required — 母音の音素。
    - `vowel_length` number, required — 母音の音長。 AivisSpeech Engine の実装上算出できないため、ダミー値として常に 0.0 が返される。
    - `pitch` number, required — 音高。 AivisSpeech Engine の実装上算出できないため、ダミー値として常に 0.0 が返される。
  - `is_interrogative` boolean — 疑問系かどうか

## Response `200`

Successful Response

- AccentPhrase[]
  - `moras` Mora[], required — モーラのリスト
    - `text` string, required — 子音＋母音に対応する文字。 VOICEVOX ENGINE と異なり、感嘆符・句読点などの記号もモーラに含まれる。 記号モーラの場合、`text` には記号がそのまま、`vowel` には "pau" が設定される。
    - `consonant` string — 子音の音素。
    - `consonant_length` number — 子音の音長。 AivisSpeech Engine の実装上算出できないため、ダミー値として常に 0.0 が返される。
    - `vowel` string, required — 母音の音素。
    - `vowel_length` number, required — 母音の音長。 AivisSpeech Engine の実装上算出できないため、ダミー値として常に 0.0 が返される。
    - `pitch` number, required — 音高。 AivisSpeech Engine の実装上算出できないため、ダミー値として常に 0.0 が返される。
  - `accent` integer, required — アクセント箇所
  - `pause_mora` Mora — モーラ（子音＋母音）ごとの情報。
    - `text` string, required — 子音＋母音に対応する文字。 VOICEVOX ENGINE と異なり、感嘆符・句読点などの記号もモーラに含まれる。 記号モーラの場合、`text` には記号がそのまま、`vowel` には "pau" が設定される。
    - `consonant` string — 子音の音素。
    - `consonant_length` number — 子音の音長。 AivisSpeech Engine の実装上算出できないため、ダミー値として常に 0.0 が返される。
    - `vowel` string, required — 母音の音素。
    - `vowel_length` number, required — 母音の音長。 AivisSpeech Engine の実装上算出できないため、ダミー値として常に 0.0 が返される。
    - `pitch` number, required — 音高。 AivisSpeech Engine の実装上算出できないため、ダミー値として常に 0.0 が返される。
  - `is_interrogative` boolean — 疑問系かどうか

## Other responses

- `422` — Validation Error

## Changes

- **2026-03-31** `bd7182f25e54` — 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status
- **2025-03-02** `d8b6a60f88af` — 1 info
  - api operation id `mora_length_mora_length_post` removed and replaced with `mora_length`
- **2024-10-29** `54501f4624fd` — 6 breaking, 1 warning, 9 info
  - added the new required request property `items/pause_mora/pitch`
  - added the new required request property `items/pause_mora/text`
  - added the new required request property `items/pause_mora/vowel`
  - added the new required request property `items/pause_mora/vowel_length`
  - …12 more
- **2024-10-05** `e86c0159e1bd` — 7 breaking, 8 warning, 1 info
  - added `#/components/schemas/Mora` to the `items/pause_mora` request property `allOf` list
  - the `items/pause_mora` request property type/format changed from `object`/`` to ``/``
  - the `items/pause_mora` response's property type/format changed from `object`/`` to ``/`` for status `200`
  - removed the required property `items/pause_mora/pitch` from the response with the `200` status
  - …12 more
- …earlier changes not shown

[Full history](https://skmtc.dev/aivis-project/apis/aivisspeech-engine/changes/mora_length/post.md)

---

[API](https://skmtc.dev/aivis-project/apis/aivisspeech-engine.md) · [All operations](https://skmtc.dev/aivis-project/apis/aivisspeech-engine/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/aivis-project/aivisspeech-engine/revisions/1d935a3e31b8/schema)
