User Guide API Reference

Voice List

Retrieve available voices for TTS

GET /api/v1/voices/

Returns a list of all voices the authenticated user is allowed to use with the Text-to-Speech API.

Authentication

Include your API key in the Authorization header as Bearer YOUR_API_KEY.

Response

Field Type Description
voice_id integer Unique voice identifier
voice_name string Voice display name
voice_sample_url string URL to the voice sample audio file
voice_fees float Fee to use this voice (0 means free)
voice_badges object Additional metadata for the voice, e.g., language, gender, age, use case

Example

curl "https://moknah.io/api/v1/voices/" \
  -H "Authorization: Bearer YOUR_API_KEY"
import requests

response = requests.get(
    "https://moknah.io/api/v1/voices/",
    headers={"Authorization": "Bearer YOUR_API_KEY"}
)

voices = response.json()
for voice in voices:
    print(voice["voice_name"], voice["voice_sample_url"])
const response = await fetch(
    'https://moknah.io/api/v1/voices/',
    {
        headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
    }
);

const voices = await response.json();
console.log(voices);

Response Example

[
    {
        "voice_id": 1328,
        "voice_name": "Adnan",
        "voice_sample_url": "https://storage.moknah.io/media/voice_samples/Adnan.mp3",
        "voice_fees": 0.0,
        "voice_badges": {
            "language": "Arabic",
            "gender": "Male",
            "age": "Young Adult",
            "use_case": "Documentary, Audiobook, Article",
        }
    }
]
API Support

For API-related questions or issues, contact us at api@moknah.io.