🎛️ MLOS TTS Dashboard UI

Welcome! Use this dashboard to explore the MLOS TTS API, test requests, and find docs, examples, and your API key.

Docs: Swagger (Interactive)  â€˘  OpenAPI JSON  â€˘  Language Examples  â€˘  Try-It Box

Authentication at a glance

x-api-key Use this header for the TTS engine endpoint (POST /api/tts).
Bearer JWT Use this for other dashboard endpoints (e.g., /api/login, /api/protected).

TTS request

POST https://tts.bryerstone.com/api/tts
x-api-key: YOUR_API_KEY
Content-Type: application/json

{
  "text": "Hello MLOS!",
  "prompt_length": 1,
  "sampling_rate": 16000,
  "output_format": "wav",
  "return_base64": false
}

JWT for other routes

# Get a token
POST https://tts.bryerstone.com/api/login
{ "email": "you@example.com", "password": "••••••••" }

# Use it when needed
GET https://tts.bryerstone.com/api/protected
Authorization: Bearer <TOKEN>

Where to get your API key

Quickstart (cURL)

curl -X POST "https://tts.bryerstone.com/api/tts" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "text": "Hello from MLOS TTS!", "voice_id": "en_male_01",
        "prompt_length":1, "sampling_rate":16000,
        "output_format":"wav", "return_base64": false }' \
  -o audio.wav

This writes the synthesized audio to audio.wav.

Endpoints Overview

Auth & Users

  • POST /api/register – Create an account
  • POST /api/login – Get a JWT token
  • GET /api/protected – Requires Authorization: Bearer

TTS Workflow

  • POST /api/tts – Synthesize speech (requires x-api-key)
  • POST /api/select-voice – Choose a voice (if enabled)
  • POST /api/upload – Upload text file (if enabled)

Platform

  • GET /status – Health & info
  • /docs – Swagger UI

Troubleshooting