🚀 MLOS TTS API Server

Enterprise-grade, self-hosted Text-to-Speech served by MLOS.

Docs: Swagger (Interactive)  â€¢  OpenAPI JSON  â€¢  Download Postman Collection

Authentication

x-api-key Required for POST /api/tts (TTS engine).
Bearer JWT Used for other /api/* routes (e.g., /api/login, /api/protected).

Get your API key

Quickstart

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