aisdk / hume
Official Hume provider for the PHP AI SDK.
Fund package maintenance!
v0.11.0
2026-10-31 02:58 UTC
Requires
- php: ^8.3
- aisdk/core: ^0.11.0
Requires (Dev)
- laravel/pint: ^1.18
- nyholm/psr7: ^1.8
- pestphp/pest: ^3.0 || ^4.0
- phpstan/phpstan: ^2.0
- rector/rector: ^2.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Speech generation with Hume for the framework-agnostic PHP AI SDK.
Installation
composer require aisdk/hume
Set HUME_API_KEY in your environment and replace your-voice-id with a voice from your Hume account.
Usage
use AiSdk\Generate; use AiSdk\Hume; $result = Generate::speech('Welcome to the PHP AI SDK.') ->model(Hume::model('default')) ->voice('your-voice-id') ->providerOptions('hume', ['version' => '2']) ->run(); $result->output->save(__DIR__.'/speech.mp3');
Hume selects Octave through the version provider option; the SDK model ID is a local reference.
Documentation
Read the documentation for configuration, supported features, and more examples.
License
The MIT License (MIT). See LICENSE for details.