FREE API
Text To Voice
Convert any language text to suitable voice mp3 file and directly download.
GET
https://api.lmnx9.shop/ai/tts.php?language=bn&text=
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| language | string | Optional | language |
| text | string | Required | text |
Code Examples
cURL
curl -X GET "https://api.lmnx9.shop/ai/tts.php?language=bn&text=" -H "Accept: application/json"JavaScript
fetch("https://api.lmnx9.shop/ai/tts.php?language=bn&text=")
.then(function(r) { return r.json(); })
.then(function(data) { console.log(data); });Python
import requests
r = requests.get("https://api.lmnx9.shop/ai/tts.php?language=bn&text=")
print(r.json())PHP
<?php
$data = file_get_contents("https://api.lmnx9.shop/ai/tts.php?language=bn&text=");
print_r(json_decode($data, true));Example Response
JSON
{
"success": true,
"developer": "DARK LMNx9",
"telegram": "@x_LMNx9",
"website": "lmnx9.shop",
"text": "ওই মিয়া মজা লও",
"language": "bn",
"filename": "tts_63871f206059cc1d93378a187752d19b_1790338358.mp3",
"size": 15552,
"audio_url": "https://api.lmnx9.shop/ai/gtts_cache/tts_63871f206059cc1d93378a187752d19b_1790338358.mp3",
"download_url": "https://api.lmnx9.shop/ai/gtts_cache/tts_63871f206059cc1d93378a187752d19b_1790338358.mp3?dl=1"
}