Search by

aisdk / elevenlabs

aisdk

ElevenLabs generative media provider for the PHP AI SDK.

Package info

github.com/phpaisdk/elevenlabs

pkg:composer/aisdk/elevenlabs

Fund package maintenance!

Open Collective

Statistics

Installs: 9

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 1

v0.11.0 2026-10-31 02:58 UTC

This package is auto-updated.

Last update: 2026-11-03 18:53:12 UTC


README

Speech generation with ElevenLabs for the framework-agnostic PHP AI SDK. Also supports transcription and live sessions.

Installation

composer require aisdk/elevenlabs

Set ELEVENLABS_API_KEY in your environment and replace your-voice-id with a voice from your ElevenLabs account.

Usage

use AiSdk\ElevenLabs;
use AiSdk\Generate;

$result = Generate::speech('Welcome to the PHP AI SDK.')
    ->model(ElevenLabs::model('eleven_v4'))
    ->voice('your-voice-id')
    ->run();

$result->output->save(__DIR__.'/speech.mp3');

Documentation

Read the documentation for configuration, supported features, and more examples.

Contributing ยท Support

License

The MIT License (MIT). See LICENSE for details.