---
title: "ユーザー辞書に単語を追加する"
method: POST
path: "/user_dict_word"
tags: ["ユーザー辞書"]
---

# ユーザー辞書に単語を追加する

`POST /user_dict_word`

ユーザー辞書に単語を追加します。<br>
複合語を辞書に追加するには、`?surface=新田&surface=真剣佑&pronunciation=あらた&pronunciation=まっけんゆう&accent_type=1&accent_type=3` のように、`surface`, `pronunciation`, `accent_type` を同じ長さのリストで指定します。

## Query parameters

- `surface` string[], required — 単語の表層形
- `pronunciation` string[], required — 単語の発音（カタカナ）
- `accent_type` integer[], required — 東京式アクセントにおけるアクセント型<br>音高が下がる直前のモーラのインデックスを 1-indexed で指定します。0 は平板型を意味します。<br>例として、`surface: ["新田", "真剣佑"], pronunciation: ["あらた", "まっけんゆう"]` のとき、`accent_type: [1, 3]` (新田 → 頭高型, 真剣佑 → 中高型) のように指定します。
- `word_type` 'PROPER_NOUN' | 'LOCATION_NAME' | 'ORGANIZATION_NAME' | 'PERSON_NAME' | 'PERSON_FAMILY_NAME' | 'PERSON_GIVEN_NAME' | 'COMMON_NOUN' | 'VERB' | 'ADJECTIVE' | 'SUFFIX' — 品詞を表す列挙型。
- `priority` integer — 単語の優先度 (1~9 の範囲を推奨)<br>数値が大きいほど、辞書適用時に優先して利用されます。<br>未指定時は `5` が設定されます。

## Response `200`

追加した単語の UUID

- string

## Other responses

- `422` — Validation Error

---

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