Download the PHP package b7s/fluentvox without Composer

On this page you can find all versions of the php package b7s/fluentvox. 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 fluentvox

# FluentVox ### 🎙️ Unleash state‑of‑the‑art text‑to‑speech and voice cloning in your PHP applications with style [![PHP Version](https://img.shields.io/badge/PHP-8.3%2B-777BB4?logo=php&logoColor=white)](https://www.php.net/) [![PHPStan Level 6](https://img.shields.io/badge/PHPStan-Level%206-brightgreen)](https://phpstan.org/) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

This standalone, developer‑friendly library brings the full power of Resemble AI’s Chatterbox TTS into a beautifully fluent PHP API. Effortless to use, lightning‑fast, and built for real‑world production environments, it handles everything—from seamless model management to cross‑platform compatibility on Linux, macOS, and Windows.

Whether you're crafting immersive voice experiences, automating audio generation, or building AI‑powered products, this wrapper gives you a clean, modern, and expressive toolkit that makes advanced TTS feel natural.

✨ Features

Easy to use

📦 Installation

Install Dependencies

After installing the package, install Python dependencies:

This will:

Using Python Virtual Environments (venv)

FluentVox automatically detects Python virtual environments. It will prioritize:

  1. Active venv (via VIRTUAL_ENV environment variable)
  2. Local venv directories (.venv, venv, venv311, etc.) in current directory and parent directories
  3. System Python (fallback)

Recommended workflow:

Manual configuration:

If FluentVox doesn't detect your venv automatically, specify the Python path in fluentvox-config.php:

Check Installation

If you want to generate audio very quickly, choose:

🚀 Quick Start

Basic Usage

Voice Cloning

Multilingual

Expressive Speech

Custom Sample Rate

🛠️ CLI Commands

install - Install Dependencies

doctor - Diagnose Installation

The doctor command checks your installation and shows:

models - Manage Models

generate - Generate Speech

Note: If you don't specify --model, the command will use the default_model from your fluentvox-config.php file.

📖 API Reference

Model Selection

Choose which Chatterbox model to use based on your needs. Each model has different capabilities, performance characteristics, and language support.

Voice Cloning

Clone any voice by providing a reference audio sample. The model will mimic the speaker's voice characteristics, tone, and speaking style in the generated speech.

Language (Multilingual Model)

Specify the target language when using the multilingual model. The model will generate speech with native pronunciation and intonation for the selected language.

Supported Languages: Arabic, Danish, German, Greek, English, Spanish, Finnish, French, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Dutch, Norwegian, Polish, Portuguese, Russian, Swedish, Swahili, Turkish, Chinese (see more details)

Expression Controls

Control the emotional intensity and expressiveness of the generated speech. Higher values produce more dramatic, animated voices while lower values create calmer, more subdued speech.

Pace/CFG Controls

Adjust the rhythm and speed of speech delivery. CFG (Classifier-Free Guidance) weight controls how closely the model follows the text pacing. Lower values create slower, more deliberate speech while higher values speed up delivery.

Randomness Controls

Control the variability and creativity in speech generation. Temperature affects how predictable vs. varied the output is. Seeds allow you to reproduce exact results.

Audio Processing

Configure how reference audio is processed for voice cloning. VAD (Voice Activity Detection) can remove silence and background noise from reference clips.

Device Selection

Choose which hardware to use for audio generation. GPU acceleration (CUDA/MPS) is significantly faster than CPU but requires compatible hardware.

Output Configuration

Configure where and how the generated audio is saved, with options for timeouts and progress monitoring.

Sample Rate Notes:

Presets

Pre-configured combinations of settings optimized for common use cases. These presets adjust expression, pace, and temperature for specific scenarios.

Execution

Generate the audio file or retrieve raw audio data for further processing.

Audio Conversion

Convert generated audio to different formats using FFmpeg. All conversion methods generate the audio first, then convert it. The format is automatically detected from the file extension.

Supported Formats:

Result Object

The GenerationResult object contains information about the generated audio and metadata about the generation process.

Static Helpers

Utility methods for system checks, installation, model management, and audio conversion without creating a FluentVox instance.

⚙️ Configuration

Create a fluentvox-config.php file in your project root:

Configuration File Location:

The configuration file is searched in the following order:

  1. Explicit path (if provided programmatically)
  2. Project root (where composer.json is located)
  3. Current working directory
  4. Package root (fallback)

Default Model:

The default_model setting is automatically used by:

To download the default model, run:

📊 Available Models

Model Size Languages Features Best For
chatterbox 500M English CFG & exaggeration tuning General TTS with creative controls
chatterbox-turbo 350M English Paralinguistic tags [laugh], [cough] Voice agents, low latency
chatterbox-multilingual 500M 23+ Zero-shot cloning, multiple languages Global applications

📋 Requirements

Note: Using a Python virtual environment (venv) is highly recommended to avoid conflicts with system packages. FluentVox automatically detects and uses venv when available.

Note: Chatterbox TTS has its own system requirements and dependencies. If you encounter installation issues, run vendor/bin/fluentvox doctor to diagnose problems, or vendor/bin/fluentvox install --verbose for detailed installation logs. Ensure all Python dependencies are properly installed before use.

GPU Acceleration (Optional)

🌐 Platform Support

Platform Architecture GPU Support
Linux x86_64, arm64 CUDA
macOS x86_64, arm64 (Apple Silicon) MPS
Windows x86_64 CUDA

Running Tests

Run tests

📄 License

MIT License - see LICENSE file.

🙏 Credits


All versions of fluentvox with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
symfony/console Version ^7.0
symfony/process Version ^7.0
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 b7s/fluentvox contains the following files

Loading the files please wait ...