Overview

The Voice API provides text-to-speech (TTS), speech-to-text (STT), voice session management, and service introspection. The Rust voice service (services/voice) exposes a lightweight, simulated HTTP API on port 8001 that mirrors the contract of the full Python voice wrapper, so callers can integrate against a stable contract while inference runs in the Python service or a downstream model host.

Base URL

The voice service binds to 0.0.0.0:8001 by default. When deployed behind the Allternit gateway, it may be exposed under a platform path; consult your deployment’s routing table.

Authentication

The standalone voice service does not require authentication in local development. When exposed through the platform API, standard bearer-token auth applies. See Authentication.

Resources

VoiceModel

SttModel

VoiceSession

Endpoints

Health check

Example response

List voices

Example response

Text-to-speech

Request body

Example request

Example response

Speech-to-text

Transcribes uploaded audio passed as multipart form data.

Request body (multipart)

Example request

Example response

Create a session

Request body

Example request

Example response

Service stats

Example response

Error codes