Skip to main content

Laravel AI SDK integration

VOICEVOX for Laravel integrates with Laravel AI SDK, so you can generate speech through the Audio facade. Two drivers are available:
  • voicevox-client (client mode)
  • voicevox (native mode)

Client driver (voicevox-client)

Sends HTTP requests to the official VOICEVOX engine. No FFI required.

Prerequisites

Configuration

Add voicevox-client provider to config/ai.php.

Usage

Native driver (voicevox)

Calls VOICEVOX CORE directly via FFI. Only models loaded in core.vvms in config/voicevox.php can be used.

Configuration

Usage

Values accepted by voice()

voice() accepts:
  • VOICEVOX style ID (numeric string)
  • Character alias (for example, ずんだもん, 四国めたん/ノーマル)
When omitted, default-female (ID: 10) is used.

Alias table

You can also inspect available speakers via Voicevox::speakers().

Agent (KanalizerAgent)

Native mode does not provide enable_katakana_english, so you can use KanalizerAgent to convert English text into katakana first.
AI-based katakana conversion is not always perfect. Review generated text before synthesis in production workflows.

Next pages

Client: Talk

Review the standard client-mode API flow.

Native: Talk

Review direct FFI-based synthesis flow.
Last modified on May 21, 2026