PHP code example of aisdk / hume

1. Go to this page and download the library: Download aisdk/hume library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

aisdk / hume example snippets


use AiSdk\Generate;
use AiSdk\Hume;

Hume::create(['apiKey' => $_ENV['HUME_API_KEY']]);

$result = Generate::speech('Hello from Hume.')
    ->model(Hume::model('default'))
    ->voice('your-hume-voice-id')
    ->run();