1. Go to this page and download the library: Download javaabu/dhivehigpt-sdk 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/ */
javaabu / dhivehigpt-sdk example snippets
use Javaabu\DhivehiGpt\DhivehiGpt;
$dhivehigpt = new DhivehiGpt('YOUR_API_KEY');
$voices = $dhivehigpt->voices()->list();
$audio = $dhivehigpt->tts()->generate('ދިވެހިޖީޕީޓީއަށް މަރުޙަބާ', 'hajja');