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

# 音声合成する

> 

**Laravel実装状況**: ✅ コアで完全対応（フォールバック実装済み）



## OpenAPI

````yaml https://raw.githubusercontent.com/invokable/laravel-voicevox/refs/heads/main/docs/jp/laravel-openapi.json post /synthesis
openapi: 3.1.0
info:
  title: VOICEVOX ENGINE OSS
  description: VOICEVOX OSS の音声合成エンジンです。
  version: latest
servers: []
security: []
paths:
  /synthesis:
    post:
      tags:
        - 音声合成
      summary: 音声合成する
      description: |-


        **Laravel実装状況**: ✅ コアで完全対応（フォールバック実装済み）
      operationId: synthesis
      parameters:
        - name: speaker
          in: query
          required: true
          schema:
            type: integer
            title: Speaker
        - name: enable_interrogative_upspeak
          in: query
          required: false
          schema:
            type: boolean
            description: 疑問系のテキストが与えられたら語尾を自動調整する
            default: true
            title: Enable Interrogative Upspeak
          description: 疑問系のテキストが与えられたら語尾を自動調整する
        - name: core_version
          in: query
          required: false
          schema:
            type: string
            title: Core Version
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AudioQuery'
      responses:
        '200':
          description: Successful Response
          content:
            audio/wav:
              schema:
                type: string
                format: binary
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    AudioQuery:
      properties:
        accent_phrases:
          items:
            $ref: '#/components/schemas/AccentPhrase'
          type: array
          title: Accent Phrases
          description: アクセント句のリスト
        speedScale:
          type: number
          title: Speedscale
          description: 全体の話速
        pitchScale:
          type: number
          title: Pitchscale
          description: 全体の音高
        intonationScale:
          type: number
          title: Intonationscale
          description: 全体の抑揚
        volumeScale:
          type: number
          title: Volumescale
          description: 全体の音量
        prePhonemeLength:
          type: number
          title: Prephonemelength
          description: 音声の前の無音時間
        postPhonemeLength:
          type: number
          title: Postphonemelength
          description: 音声の後の無音時間
        pauseLength:
          anyOf:
            - type: number
            - type: 'null'
          title: Pauselength
          description: 句読点などの無音時間。nullのときは無視される。デフォルト値はnull
        pauseLengthScale:
          type: number
          title: Pauselengthscale
          description: 句読点などの無音時間（倍率）。デフォルト値は1
          default: 1
        outputSamplingRate:
          type: integer
          title: Outputsamplingrate
          description: 音声データの出力サンプリングレート
        outputStereo:
          type: boolean
          title: Outputstereo
          description: 音声データをステレオ出力するか否か
        kana:
          type: string
          title: Kana
          description: '[読み取り専用]AquesTalk 風記法によるテキスト。音声合成用のクエリとしては無視される'
      type: object
      required:
        - accent_phrases
        - speedScale
        - pitchScale
        - intonationScale
        - volumeScale
        - prePhonemeLength
        - postPhonemeLength
        - outputSamplingRate
        - outputStereo
      title: AudioQuery
      description: 音声合成用のクエリ。
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    AccentPhrase:
      properties:
        moras:
          items:
            $ref: '#/components/schemas/Mora'
          type: array
          title: Moras
          description: モーラのリスト
        accent:
          type: integer
          title: Accent
          description: アクセント箇所
        pause_mora:
          $ref: '#/components/schemas/Mora'
          title: Pause Mora
          description: アクセント句の末尾につく無音モーラ。null の場合は無音モーラを付けない。
        is_interrogative:
          type: boolean
          title: Is Interrogative
          description: 疑問系かどうか
          default: false
      type: object
      required:
        - moras
        - accent
      title: AccentPhrase
      description: アクセント句ごとの情報。
    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
    Mora:
      properties:
        text:
          type: string
          title: Text
          description: 文字
        consonant:
          type: string
          title: Consonant
          description: 子音の音素
        consonant_length:
          type: number
          title: Consonant Length
          description: 子音の長さ
        vowel:
          type: string
          title: Vowel
          description: 母音の音素
        vowel_length:
          type: number
          title: Vowel Length
          description: 母音の長さ
        pitch:
          type: number
          title: Pitch
          description: 音高
      type: object
      required:
        - text
        - vowel
        - vowel_length
        - pitch
      title: Mora
      description: モーラ（子音＋母音）ごとの情報。

````