PHP code example of aisdk / lmnt
1. Go to this page and download the library: Download aisdk/lmnt 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 / lmnt example snippets
use AiSdk\Generate;
use AiSdk\LMNT;
LMNT::create(['apiKey' => $_ENV['LMNT_API_KEY']]);
$result = Generate::speech('Hello from LMNT.')
->model(LMNT::model('default'))
->voice('your-lmnt-voice-id')
->run();