Skip to main content

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​

  1. Send text, model, voice, and optional audio settings.
  2. The API validates quota access and calls the model.
  3. The response returns the complete audio in the requested format.
  4. Usage is recorded automatically for quota billing.

Features​

  • OpenAI-compatible shape: Use model, voice, input, response_format, and speed.
  • Formats: Generate mp3, opus, wav, or pcm.
  • Language control: Pass a language code supported by the model or use auto to 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 stream and stream_format.
  • Quota: Use an API key associated with an enabled quota that has an available balance. :::