> ## Documentation Index
> Fetch the complete documentation index at: https://kawax.biz/llms.txt
> Use this file to discover all available pages before exploring further.

# テキストがAquesTalk 風記法に従っているか判定する

> テキストがAquesTalk 風記法に従っているかどうかを判定します。

従っていない場合はエラーが返ります。

**Laravel実装状況**: ✅ Laravelのみで対応（フォールバック不要）



## OpenAPI

````yaml https://raw.githubusercontent.com/invokable/laravel-voicevox/refs/heads/main/docs/jp/laravel-openapi.json post /validate_kana
openapi: 3.1.0
info:
  title: VOICEVOX ENGINE OSS
  description: VOICEVOX OSS の音声合成エンジンです。
  version: latest
servers: []
security: []
paths:
  /validate_kana:
    post:
      tags:
        - その他
      summary: テキストがAquesTalk 風記法に従っているか判定する
      description: |-
        テキストがAquesTalk 風記法に従っているかどうかを判定します。

        従っていない場合はエラーが返ります。

        **Laravel実装状況**: ✅ Laravelのみで対応（フォールバック不要）
      operationId: validate_kana
      parameters:
        - name: text
          in: query
          required: true
          schema:
            type: string
            description: 判定する対象の文字列
            title: Text
          description: 判定する対象の文字列
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: boolean
                title: Response Validate Kana Validate Kana Post
        '400':
          description: テキストが不正です
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ParseKanaBadRequest'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ParseKanaBadRequest:
      properties:
        text:
          type: string
          title: Text
          description: エラーメッセージ
        error_name:
          type: string
          title: Error Name
          description: |-
            エラー名

            |name|description|
            |---|---|
            | UNKNOWN_TEXT | 判別できない読み仮名があります: {text} |
            | ACCENT_TOP | 句頭にアクセントは置けません: {text} |
            | ACCENT_TWICE | 1つのアクセント句に二つ以上のアクセントは置けません: {text} |
            | ACCENT_NOTFOUND | アクセントを指定していないアクセント句があります: {text} |
            | EMPTY_PHRASE | {position}番目のアクセント句が空白です |
            | INTERROGATION_MARK_NOT_AT_END | アクセント句末以外に「？」は置けません: {text} |
            | INFINITE_LOOP | 処理時に無限ループになってしまいました...バグ報告をお願いします。 |
        error_args:
          additionalProperties:
            type: string
          type: object
          title: Error Args
          description: エラーを起こした箇所
      type: object
      required:
        - text
        - error_name
        - error_args
      title: ParseKanaBadRequest
      description: 読み仮名のパースに失敗した。
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````