Cloud TTS API: Generate Speech with OpenAI Compatibility

By VoiceMapr editorial team · Updated 2026-11-19

This guide walks you through integrating VoiceMapr’s cloud TTS API into your language learning platform. You will learn how to generate realistic audio files for lessons and exercises using an endpoint compatible with the OpenAI SDK. The documentation covers everything from obtaining your API key to handling responses in formats like MP3 and WAV, ensuring you can deliver clear audio in 23 languages without complex infrastructure.

Designed for startups building educational content, this page provides concrete examples and code snippets to help you convert text into speech efficiently. You will find details on voice selection, speed control, and rate limits, allowing you to focus on your curriculum while we handle the synthesis. Whether you are using English to Hindi or other supported combinations, you will get the specific technical details needed to start generating audio immediately.

Cloud TTS API: Generate Speech with OpenAI Compatibility

Frequently asked questions

How do I get an API key?

Sign up on https://vr77.info/get-api-key/ using Google or email. You receive one active key per account. You can issue a new key anytime, which immediately invalidates the old one. The dashboard displays your key, balance, and usage statistics.

What is the base URL?

The API base URL is https://api.vr77.info/v1. Use this endpoint for all requests. The main site is https://vr77.info/.

Can I use the OpenAI SDK?

Yes. The request shape matches the OpenAI speech endpoint. Change the SDK’s base_url to https://api.vr77.info/v1 and use your VoiceMapr key. Official OpenAI SDKs work seamlessly with this configuration.

How do I send a request?

Send a POST request to https://api.vr77.info/v1/audio/speech. Include the model, input text, voice, response format, and optional speed in the JSON body. Authenticate with Authorization: Bearer tts-... Your key.

What voices are available?

Eight presets are available: aria, nova, luna, sage (female); felix, milo, atlas, orion (male). Each voice supports all 23 languages. Voices are based on licensed recordings from LibriTTS-R (CC BY 4.0) and LibriVox public-domain audiobook readings.

What audio formats are supported?

Supported formats are mp3, wav, opus, flac, and pcm. Specify the format in the response_format field of your request. The API returns the generated audio file directly in the response.

What is the rate limit?

The limit is 60 requests per minute per key. Before the first top-up, the limit is 10 requests per minute. Requests are processed sequentially, so high load may cause queuing delays.

How do I handle errors?

If synthesis fails, the charge is returned in full. Check the response status code and error message. Ensure your text is under 4096 characters and your key is valid. Failed requests do not consume balance.

Can I control the speed?

Yes. Set the speed parameter between 0.25 and 4.0. Adjusting speed affects the generation time but not the character count billing.

How do I specify a language?

Pass an optional ISO language code in the request. If omitted, the system guesses the language from the script (Latin defaults to English). For non-English Latin text, explicitly set the language.

What models are available?

Two models are available: tts-1 and tts-1-hd. They use the same engine and pricing. Choose based on your quality needs. Both accept the same parameters and return audio in the specified format.

Is there a demo endpoint?

No dedicated demo endpoint exists. You can test the API by sending a POST request to /v1/audio/speech with a small text input. Use the free trial credit of $0.50 to test without cost.

How do I check my balance?

View your balance on the /get-api-key/ dashboard page. The interface shows your current balance, trial status, characters left, and usage history. You can also check account details there.

What happens if I exceed the limit?

Requests are processed one after another, so under load a request may wait in a queue. If you exceed the limit before the first top-up, it is 10 requests per minute. Exceeding does not incur extra charges, just potential delays.

First request

curl

curl https://api.vr77.info/v1/audio/speech \
  -H "Authorization: Bearer $TTS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"tts-1","voice":"aria","input":"Hello from the API.","response_format":"mp3"}' \
  --output hello.mp3

Python (openai)

from openai import OpenAI

client = OpenAI(base_url="https://api.vr77.info/v1", api_key="tts-...")

with client.audio.speech.with_streaming_response.create(
    model="tts-1", voice="nova", input="Hello from Python.", response_format="mp3"
) as response:
    response.stream_to_file("hello.mp3")

Node.js (openai)

import OpenAI from "openai";
import fs from "node:fs";

const client = new OpenAI({ baseURL: "https://api.vr77.info/v1", apiKey: process.env.TTS_API_KEY });
const res = await client.audio.speech.create({ model: "tts-1", voice: "milo", input: "Hello from Node.js." });
fs.writeFileSync("hello.mp3", Buffer.from(await res.arrayBuffer()));
voice
ariafemale
novafemale
lunafemale
sagefemale
felixmale
milomale
atlasmale
orionmale
language
arالعربية
zh中文
daDansk
nlNederlands
enEnglish
fiSuomi
frFrançais
deDeutsch
elΕλληνικά
heעברית
hiहिन्दी
itItaliano
ja日本語
ko한국어
msBahasa Melayu
noNorsk
plPolski
ptPortuguês
ruРусский
esEspañol
swKiswahili
svSvenska
trTürkçe

Get Your API Key

Sound wave illustration for: Get Your API Key

Access the /get-api-key/ page to create your account. You can sign in with Google for an immediate $0.50 trial credit (valid for 7 days) or use a standard email and password, which starts with zero balance. Once registered, your dashboard displays your active API key, current balance, and character usage statistics.

Sign Up Process

Sign Up Process

Registration is straightforward: choose Google authentication for instant trial credit or use email/password for a standard account. The process takes seconds, and you receive immediate access to the API endpoint.

Key Management

Key Management

Each account holds one active API key at a time. You can generate a new key at any moment; the previous key stops working immediately upon creation, ensuring clean rotation without downtime.

Security Tips

Treat your key like a password. Since only one key is active per account, revoking access is instant. Avoid sharing your key in public repositories or client-side code where it can be exposed.

  • Rotate keys immediately if compromised
  • Store keys in environment variables
  • Monitor usage via the dashboard

Make Your First Request

Sound wave illustration for: Make Your First Request

To generate speech, send a POST request to the endpoint. The API accepts standard JSON bodies, making it easy to integrate with existing workflows without learning a new protocol.

cURL Example

Use this command to test the API immediately. Replace YOUR_API_KEY with your key from the dashboard.

  • curl -X POST https://api.vr77.info/v1/audio/speech \
  • -H "Authorization: Bearer YOUR_API_KEY" \
  • -H "Content-Type: application/json" \
  • -d '{"model": "tts-1", "input": "Hello world", "voice": "nova", "response_format": "mp3"}'

JSON Body Structure

The request body requires specific fields. The model can be tts-1 or tts-1-hd. The input field holds your text, up to 4096 characters.

  • Required: model, input, voice
  • Optional: response_format (mp3, wav, opus, flac, pcm), speed (0.25–4.0), language

Response Format

A successful request returns the audio file directly in the response body. If synthesis fails, you receive an error object with details, and no charge is applied.

OpenAI SDK Integration

Sound wave illustration for: OpenAI SDK Integration

To use VoiceMapr with official OpenAI SDKs, simply change the base_url to https://api.vr77.info/v1 and provide your unique API key. This allows startups to leverage familiar client libraries for seamless integration into their language learning platforms without rewriting networking code.

Base URL Change

Point your SDK’s base URL to https://api.vr77.info/v1 instead of the default OpenAI endpoint. Ensure your Authorization header uses the tts-... key specific to your VoiceMapr account.

SDK Compatibility

The API mirrors the OpenAI speech endpoint shape, making standard OpenAI SDKs fully compatible. You can use the same request structure for models like tts-1 and tts-1-hd.

  • No custom SDK required; use existing OpenAI clients.
  • Supports standard JSON request bodies.

Code Snippets

Below is a basic Python example using the OpenAI SDK to generate audio for a language lesson.

  • Set base_url to https://api.vr77.info/v1.
  • Pass your tts-... API key in the client initialization.

Supported Voices

Sound wave illustration for: Supported Voices

VoiceMapr provides eight distinct voice presets designed to enhance language learning materials. Each voice is based on licensed recordings from LibriVox public-domain audiobooks, ensuring high-quality, natural-sounding speech for your lessons.

All voices support 23 languages, including English, Hindi, and German. You can mix voices across different exercises to keep students engaged without needing multiple voice actors.

Female Voices

Choose from four female voices tailored for clarity and warmth. Aria offers a clear, warm narration style ideal for reading passages. Nova provides a bright, upbeat tone suitable for interactive exercises. Luna delivers a soft, storytelling voice perfect for immersive lessons. Sage is calm and instructional, making it excellent for grammar explanations.

  • Aria: Warm, clear narrator
  • Nova: Bright, upbeat
  • Luna: Soft, storytelling
  • Sage: Calm, instructional

Male Voices

Our male voices cover a range of tones from energetic to neutral. Felix is energetic and great for promotional content or quick quizzes. Milo is friendly and conversational, mimicking a teacher's tone. Atlas provides a neutral, news-style voice for clear instructions. Orion offers a deep, documentary-style voice for longer texts.

  • Felix: Energetic, promo
  • Milo: Friendly, conversational
  • Atlas: Neutral, news
  • Orion: Deep, documentary

Voice Selection

Select any voice for any of the 23 supported languages. If you do not specify a language, the system guesses based on the script, defaulting to English for Latin text. For non-English Latin text, explicitly set the language parameter to ensure accurate pronunciation. Each generated file contains an inaudible watermark marking it as synthetic speech.

Audio Formats

Sound wave illustration for: Audio Formats

VoiceMapr’s API returns audio in multiple formats, letting you choose the right balance of quality and file size for your language learning app. Whether you need lightweight files for mobile data or high-fidelity tracks for classroom exercises, we support the standards your developers expect.

MP3 Support

MP3 is the default and most versatile format. It offers excellent compression, making it ideal for delivering audio lessons over variable network connections without sacrificing too much clarity.

  • Suitable for mobile apps and web players
  • Smallest file size for faster loading

WAV Support

WAV provides uncompressed, high-quality audio. Use this format when you need pristine sound for editing or when your students’ devices require lossless playback.

  • Uncompressed, lossless quality
  • Ideal for post-production editing

Other Formats

We also support Opus, FLAC, and PCM. Opus offers efficient compression, FLAC preserves quality with lossless compression, and PCM provides raw audio data for precise control.

  • Opus: efficient streaming
  • FLAC: lossless compression
  • PCM: raw audio data
Audio Formats

Rate Limits and Quotas

Sound wave illustration for: Rate Limits and Quotas

Rate limits ensure fair usage while keeping synthesis queues responsive. You are allowed 60 requests per minute per API key, which is sufficient for most language learning content batches.

60 Requests Per Minute

Once your account is active, you can send up to 60 synthesis requests every minute. This limit applies per key, so ensure you use a single key for consistent tracking.

Initial Limit

New accounts start with a lower limit of 10 requests per minute. This applies until you complete your first top-up, ensuring system stability during initial usage.

Limit Increases

After your first top-up, the limit increases to the standard 60 requests per minute. No manual review is needed; the change happens automatically within minutes of your USDT transfer.

Error Handling

Sound wave illustration for: Error Handling

Understanding how the API responds to issues helps you build robust language learning workflows. Most errors are temporary or result from simple input constraints, so knowing how to react keeps your audio generation smooth.

Common Errors

The most frequent issue is hitting the rate limit of 60 requests per minute. You may also see errors if your text exceeds 4096 characters or if the voice parameter is invalid. Failed synthesis requests are free, so you won’t lose credit on bad attempts.

  • 429 Too Many Requests: You exceeded the 60 requests/minute limit.
  • 400 Bad Request: Invalid voice, model, or input length.
  • 500 Internal Error: Temporary server issue; try again later.

Retry Logic

Implement exponential backoff for 429 and 500 errors. Start with a short delay and increase it slightly with each attempt. Since requests are processed sequentially, a brief pause often resolves queue congestion without wasting credits.

  • Wait 1 second after the first failure.
  • Double the wait time for subsequent retries.
  • Stop retrying after 3 attempts to avoid infinite loops.

Debugging Tips

Always check the response body for a detailed error message. Ensure your text is under 4096 characters and that you are using a valid voice preset. If issues persist, verify your API key is active and not expired.

  • Log the full error response for support inquiries.
  • Test with a short text sample to isolate input issues.
  • Confirm your base URL is https://api.vr77.info/v1

Advanced Features

Sound wave illustration for: Advanced Features

Fine-tune output by adjusting speed between 0.25 and 4.0 to match lesson pacing. Use the language parameter with ISO codes to ensure correct pronunciation for non-English texts, preventing default English guesses for Latin-script inputs.

Choose between tts-1 and tts-1-hd models, which share the same engine and price. This allows you to test quality without changing your integration logic.

Speed Control

Adjust speech rate from 0.25 to 4.0 to suit diverse learning levels. Slower speeds aid comprehension for beginners, while faster rates keep advanced learners engaged.

Language Specification

Explicitly set the language field using ISO codes for non-English texts. Without this, Latin-script inputs default to English, which may cause mispronunciation in languages like German or Dutch.

  • Supports 23 languages, including Hindi, Spanish, and Japanese.

Model Selection

Select tts-1 or tts-1-hd for identical engine performance and pricing. Use tts-1-hd if you prefer the specific audio characteristics, though costs remain the same.

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. It encourages students to stay engaged through approachable phrasing.

Avatar of the voice aria
ariafemale
Avatar of the voice nova
novafemale
Avatar of the voice luna
lunafemale
Avatar of the voice sage
sagefemale
Avatar of the voice felix
felixmale
Avatar of the voice milo
milomale
Avatar of the voice atlas
atlasmale
Avatar of the voice orion
orionmale

23 languages

Any voice speaks any of these languages.

Sources and further reading

  1. Wikipedia
  2. LibriTTS-R corpus (OpenSLR 141)
  3. Node.js documentation
  4. Python documentation
  5. MDN: Web Speech API
  6. FFmpeg documentation
  7. OpenAI API reference: create speech
  8. Creative Commons Attribution 4.0
  9. W3C WAI: making audio and video accessible
  10. LibriTTS-R paper (arXiv 2305.18802)
  11. Tether (USDT)
  12. openai-node on GitHub

More on this site