canonical: https://jentic.com/apis/larvoice.com/larvoice

# Larvoice TTS API

The Larvoice TTS API turns text into speech in Vietnamese or English, using voices you clone from uploaded reference audio. You submit text as an async job or a batch of up to 50 items, poll each job until it completes, and download the WAV or MP3 output, with an optional SRT subtitle file, from a signed URL. Speed, pitch, and volume can be adjusted per request, and account endpoints report the character quota and daily usage.

## For AI agents

Clone a voice from a reference sample, generate Vietnamese or English speech as async or batch jobs, poll job status, and fetch signed audio and subtitle files.

## Scope

Does not handle speech-to-text transcription, real-time streaming audio, or translation. Use for async text-to-speech generation and voice cloning only.

## Capabilities

- Clone a voice by uploading a reference audio file with optional name and ref_text transcript
- Generate speech from up to 10,000 characters of gen_text as an async job, in vi or en, as wav or mp3
- Queue up to 50 text items in one batch request, each producing its own TTS job
- Poll a job by job_id for queued, processing, completed, or failed status, and cancel it while still queued
- Request an SRT subtitle file alongside the audio by setting return_srt
- Tune the output with post_speed, post_pitch, and post_volume adjustments
- Check remaining_characters against character_limit and pull daily usage for a from and to window

## Use cases

### Agent-driven voiceover generation

A developer's agent produces narration for a video script. Through Jentic it finds the Larvoice TTS operations by intent, submits the script as a job with the chosen voice_id and output_format mp3, polls the job until status is completed, and returns the signed audio_url. The x-api-key stays in the developer's own Jentic One instance.

Example prompt: Call POST `/v1/tts` with gen_text set to the script, voice_id of the saved voice, language 'vi', and output_format 'mp3', then poll GET `/v1/tts/jobs/{job_id}` until status is completed and return audio_url

### Voice cloning from a reference sample

A creator wants speech in their own voice. They upload a reference recording to the voices endpoint as multipart form data with the file field, plus ref_text holding the transcript of the sample, and get back a voice id and the max_reference_seconds limit. A short preview against that voice confirms it sounds right before running full jobs.

Example prompt: Call POST `/v1/voices` with the reference audio as file and ref_text set to its transcript, then call POST `/v1/voices/{voice_id}/preview` with text 'Xin chao' to hear a sample

### Batch audio for lesson content

An e-learning team needs one audio clip per vocabulary line. A single batch request carries up to 50 items, each with its own id and gen_text, and shared options such as language en and return_srt. The team then lists jobs filtered by status to find any that failed and resubmits them.

Example prompt: Call POST `/v1/tts/batch` with items holding 30 lines of gen_text and language 'en', then call GET `/v1/tts/jobs` with status 'failed' to find any to retry

### Quota and usage monitoring

Before a large run, an agent checks the account so it does not stall halfway. The account endpoint returns character_limit, characters_used, and remaining_characters, and the usage endpoint gives daily breakdowns over a from and to range, so the agent can warn when a batch would exceed the remaining quota.

Example prompt: Call GET `/v1/me` to read remaining_characters, then call GET `/v1/usage` with from '2026-11-01' and to '2026-11-30' and summarise daily usage

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| POST | `/v1/tts` | Create an async TTS job |
| POST | `/v1/tts/batch` | Create multiple async TTS jobs |
| GET | `/v1/tts/jobs/{job_id}` | Get TTS job status |
| POST | `/v1/voices` | Upload a voice sample |
| POST | `/v1/tts/preview` | Create a short TTS preview |
| GET | `/v1/me` | Get current account and quota |
| GET | `/v1/tts/jobs` | List TTS jobs |

## Key resources

- **Voices** — Upload, list, rename, preview, and delete cloned voices built from reference audio
- **TTS jobs** — Create single or batch async speech jobs, list them by status, poll, and cancel
- **Account and usage** — Character quota, remaining characters, and daily usage statistics
- **Files** — Signed downloads of generated audio and subtitles, and saved reference audio

## AI readiness

This API is usable in Jentic One now. Its AI-readiness score against Jentic's framework shows where it stands today and where improvements would make it even easier for agents to use.

- **Score:** 43 / 100
- **Maturity:** Foundational
- **Dimensions:**
  - Foundational Compliance: 79 / 100
  - Developer Experience & Jentic Compatibility: 62 / 100
  - AI-Readiness & Agent Experience: 20 / 100
  - Agent Usability: 94 / 100
  - Security: 50 / 100
  - AI Discoverability: 60 / 100
- **View full report:** https://jentic.com/apis/larvoice.com/larvoice/scorecard
- **How the score is calculated:** https://docs.jentic.com/reference/api-readiness-framework/overview/
- **More about the dimensions:** https://docs.jentic.com/reference/api-readiness-framework/specification/#dimensional-model-overview

### Score it yourself

Every API in the directory is allowlisted, so you can re-score it with no key required.

- **Score your own API:** https://jentic.com/scorecard.md
- **Scoring CLI agent skill:** https://github.com/jentic/jentic-api-scorecard/blob/main/skills/jentic-api-scorecard/SKILL.md

```sh
npx @jentic/api-scorecard-cli score <openapi-url>
```

## Why Jentic

- **Setup:** Wiring the Larvoice TTS API by hand means sending the x-api-key header, uploading multipart voice samples, polling async jobs, and fetching signed file URLs before they expire. Through Jentic you install once, import Larvoice from the API Directory, store the key once, and your agent calls it.
- **Permission scoping:** Larvoice puts the voice id in the URL path for voice reads, renames, previews, and deletes (`/v1/voices/{voice_id}`), so a rule can pin those operations to one voice. Job creation carries voice_id in the request body, so for TTS jobs rules bound which operations run, not which voice. You choose the operations it may call, so destructive ones like voice deletion or job cancellation are not included unless you add them.
- **Credential handling:** Your Larvoice API key is stored once, encrypted, by your own Jentic One instance and injected at execution time. It never enters the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'convert text to speech' or 'clone a voice from a sample', and Jentic returns the matching Larvoice operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **ElevenLabs API** — Multilingual text-to-speech and voice cloning with a large voice library
- **Cartesia API** — Low-latency speech synthesis aimed at real-time voice apps
- **Deepgram API** — Speech-to-text transcription for the reverse direction

## FAQ

### What authentication does the Larvoice TTS API use?

Per its OpenAPI spec, the Larvoice TTS API authenticates with an API key in the `x-api-key` header. A few operations are open: the health check, the language list, and the signed file and reference-audio downloads, which use the expires and signature query values on the URL instead. Through Jentic the key is stored encrypted by your own Jentic One instance and injected at call time.

### Can I clone a voice with the Larvoice TTS API?

Yes. POST `/v1/voices` takes a multipart upload with a required file field, plus optional name and ref_text. The response returns the voice id, max_reference_seconds, and how many voices you have against max_voices. Pass that voice_id in later TTS requests.

### What are the rate limits for the Larvoice TTS API?

The OpenAPI spec does not specify request rate limits. It does expose a character quota: GET `/v1/me` returns character_limit, characters_used, and remaining_characters. Check the Larvoice TTS project at https://github.com/huynhtong/larvoice-tts-api for current limits.

### How do I generate speech and get the audio file through Jentic?

Install Jentic One with `curl -fsSL https://raw.githubusercontent.com/jentic/jentic-one/main/tools/install.sh | sh`, import the Larvoice TTS API from the directory, and store your API key once. Your agent searches for 'convert text to speech', calls POST `/v1/tts` with gen_text, then polls GET `/v1/tts/jobs/{job_id}` until it returns audio_url. To run it on your own infrastructure, install Jentic One from its GitHub repo.

### Is there a Larvoice MCP server?

You don't need an MCP server to give your agent the Larvoice TTS API. Jentic connects it directly from the API Directory: import it, store your credential once, and your agent calls it. Operations are discovered on demand, so no extra tool definitions are loaded into the agent's context.

### Can I limit what my agent is allowed to do with the Larvoice TTS API?

Yes. For example, allow only POST `/v1/tts`, GET `/v1/tts/jobs/{job_id}`, and GET `/v1/me`, so the agent can submit speech jobs, poll them, and check quota but cannot upload or delete voices, and every call it makes is logged.

### Which languages and output formats does Larvoice support?

The TTS options in the spec accept language vi or en, with vi as the default, and output_format wav or mp3, with wav as the default. GET `/v1/languages` returns the live list with flags such as supports_srt and supports_voice_clone.
