Overview
The TTS API converts text into speech audio. It exposes a V2 OpenAI-compatible speech endpoint backed by Hidoba TTS.
The API supports ishikawa, matsuo, and komahi. See the REST API reference for each model’s language, speed, and excitement options.
Base endpoint:
POST https://backend.hidoba.com/v2/audio/speech
Voice processor
Use the Hidoba Voice Processor to manage your voices and find their IDs. Choose a voice ID supported by the model you request.
Typical Flow
- Send text, model, voice, and optional audio settings.
- The API validates quota access and calls the model.
- The response returns the complete audio in the requested format.
- Usage is recorded automatically for quota billing.
Features
- OpenAI-compatible shape: Use
model,voice,input,response_format, andspeed. - Formats: Generate
mp3,opus,wav, orpcm. - Language control: Pass a language code supported by the model or use
autoto leave language selection to the service. - Billing: Successful synthesis is billed at the model’s rate using the character count reported by the provider.
:::important Important Considerations
- Maximum input: 2,000 characters per request.
- Streaming: The endpoint returns the full audio in a single response. Omit
streamandstream_format. - Quota: Use an API key associated with an enabled quota that has an available balance. :::