Download the PHP package revolution/laravel-voicevox without Composer

On this page you can find all versions of the php package revolution/laravel-voicevox. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-voicevox

VOICEVOX for Laravel

tests linter Maintainability Code Coverage Ask DeepWiki

Overview

This package brings VOICEVOX, a Japanese TTS / singing synthesis ecosystem, to Laravel. You can use both client mode (official VOICEVOX Engine over HTTP) and native mode (direct synthesis through PHP FFI + VOICEVOX Core) with a Laravel-style API.

Since VOICEVOX only supports Japanese, you must first translate the text from English to Japanese using an AI/LLM or similar tool before using this package for speech synthesis.

VOICEVOX is widely used in Japan, and many well-known "Zundamon" voice clips are created with it.

Feature Supported Description
VOICEVOX Client ✅ Client for the official VOICEVOX Engine API. Works without FFI.
VOICEVOX Core ✅ voicevox-core-php wraps VOICEVOX Core dynamic libraries through FFI.
Laravel style ✅ Uses a Laravel-friendly API for voicevox-core-php features.
Laravel AI SDK Integration ✅ Supported from Laravel AI SDK Audio in both client and native modes.
VOICEVOX Engine ⚠️ Provides a VOICEVOX-compatible API inside Laravel, with fallback to the official engine for unsupported parts.
VOICEVOX Engine / OpenAI compatible TTS API ✅ /v1/audio/speech voice supports aliases such as "ずんだもん" in addition to style IDs, similar to the AI SDK.
VOICEVOX Editor ⚠️ I've developed a song-focused app for macOS, but I don't plan to publish or distribute it on the App Store. If the code is ever released on GitHub, you can build and use it with Xcode.

Requirements

FFI is disabled on most web servers (including Laravel Cloud), so this package is mainly intended for local CLI usage.

In CLI it is typically enabled by default. If you run local web server processes for the Laravel Engine API, enable FFI in php.ini:

Installation

Install both packages to use VOICEVOX Core features:

You can install only laravel-voicevox for client-only mode:

VOICEVOX Core Dynamic Library Setup

To use FFI-based features, install VOICEVOX Core libraries by following the voicevox-core-php README.

Configuration

Publish the package config file (config/voicevox.php):

For Core features, configure the path in .env:

Usage

Client mode

Use client mode through the Voicevox facade.

Client mode connects to the official VOICEVOX Engine. Start it with Docker (GPU image is also available in supported environments):

Text-to-speech. Client mode enables enable_katakana_english, so English words are automatically converted into katakana.

For singing synthesis, create a Score first. length is a frame length value, and Note::len($ticks, $bpm) helps MIDI-oriented workflows.

Native mode

Use native mode through talk() / song() helper functions. Other than removing Voicevox::, usage is kept close to client mode.

Text-to-speech in native mode. Native mode does not provide enable_katakana_english, so for English text you may preprocess it (for example, convert to katakana with AI/LLM before synthesis). TalkAudioQuery has the same class name but is a different class from the client one.

Singing synthesis in native mode. Score and Note are shared with client mode.

Documentation

Terms of Use

You must follow the terms of use for VOICEVOX and each voice library.

License

MIT


All versions of laravel-voicevox with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/support Version ^12.0||^13.0
laravel/ai Version ^1.0.0
ext-zip Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package revolution/laravel-voicevox contains the following files

Loading the files please wait ...