Cloud Text-to-Speech API: Integration Guide

By LingoEcho editorial team · Updated 2026-11-19

This guide helps you integrate LingoEcho’s text-to-speech API into your language learning workflow. You will learn how to generate clear, natural-sounding audio files from text using standard HTTP requests or the OpenAI SDK. Whether you are building classroom tools or accessibility features, these steps ensure you can deliver high-quality speech for reading practice.

We cover everything from obtaining your API key to handling errors and rate limits. You will find concrete cURL examples, details on supported formats like MP3 and WAV, and guidance on selecting from our eight preset voices. This reference is designed for developers who need reliable, straightforward integration without unnecessary complexity.

Cloud Text-to-Speech API: Integration Guide

Frequently asked questions

How do I get my API key?

Sign up on our /get-api-key/ page using Google or an email and password. Your account dashboard displays your active API key, current balance, and usage statistics. You can also generate a new key at any time, which immediately invalidates the previous one.

What is the base URL for the API?

The API base URL is https://api.8eee.info/v1. You send POST requests to https://api.8eee.info/v1/audio/speech. Other endpoints like /v1/voices and /v1/models are also available under this base URL for retrieving voice details and model information.

Can I use the OpenAI Python SDK with this API?

Yes. The request shape matches the OpenAI speech endpoint. Simply change the SDK's base_url to https://api.8eee.info/v1 and provide your LingoEcho API key. This allows you to use the official OpenAI SDKs without rewriting your integration logic.

What formats can I receive the audio in?

You can receive audio in mp3, wav, opus, flac, or pcm formats. Specify your preferred format using the response_format field in your request body. These options cover most standard audio playback and editing needs for your language learning materials.

How do I handle rate limits?

Each API key is limited to 60 requests per minute. Before your first top-up, the limit is 10 requests per minute. If you exceed the limit, requests may queue or fail. Monitor your usage on the dashboard to stay within limits.

What happens if I send a request with an invalid voice?

The API will return an error indicating the voice is invalid. Since you must choose from eight specific presets, an unknown voice ID causes the request to fail. Failed requests are free, so you are not charged for this error.

Can I change my API key?

Yes, you can issue a new API key at any time from your account dashboard. When you generate a new key, the old one stops working immediately. This ensures secure access management for your classroom or project integration.

Is the API key tied to a specific domain?

Yes, accounts are per site. Your API key is valid for the specific domain where you created your account. Since 8eee.info is the site you are using, your key works for requests sent to https://api.8eee.info/v1.

How do I know if a request failed?

The API returns an HTTP error status code if synthesis fails. You can also check the status in your usage dashboard. Failed requests are free, and the charge is returned in full, so you are not billed for errors.

Can I generate audio in multiple languages in one request?

No, each request generates audio for a single text input. You can specify an optional language code to guide synthesis, but one request produces one audio file. For multiple languages, send separate requests for each text segment.

What is the maximum input length?

Each request supports up to 4096 characters of input text. For longer texts, you should split the content into parts of this size and join the resulting audio files. Spaces and punctuation count toward this character limit.

Do I need to install any additional libraries?

No additional libraries are required. You can use plain HTTP requests or the official OpenAI SDKs. If using the SDK, just update the base URL. This makes integration simple for teachers and developers without complex setup steps.

How do I test the API before paying?

Sign in with Google to receive a $0.50 free trial credit, valid for 7 days. This covers about 50,000 characters. You can generate audio and verify quality before adding funds via USDT (TRC-20) for ongoing usage.

Can I use the API in a classroom setting?

Yes, LingoEcho is tailored for teachers and methodologists. You can generate clear, natural-sounding speech for reading practice and accessibility. The API handles text up to 4096 characters, allowing you to create audio materials efficiently for your students.

First request

curl

curl https://api.8eee.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.8eee.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.8eee.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

Start by creating your LingoEcho account. You can sign up quickly using your Google account or by registering with an email and password directly on the site. This process creates your unique workspace where your API credentials and billing details are stored.

Sign Up with Google or Email

Sign Up with Google or Email

Registration is straightforward and secure. If you choose Google sign-in, you will receive a free trial credit of $0.50 valid for 7 days. Email-based accounts start without trial credit but allow you to manage your credentials independently.

Navigate to /get-api-key/

Navigate to /get-api-key/

Once registered, log in and navigate to the /get-api-key/ dashboard. This page serves as your central control panel, displaying your current balance, character usage, and a ready-to-use cURL example for immediate testing.

Copy Your Bearer Token

Locate your active API key on this dashboard. You will use this string as your Bearer token in the Authorization header. Note that each account has one active key; issuing a new one immediately invalidates the previous one.

  • Keep your key secure; it grants full access to your account.
  • You can regenerate the key at any time from this page.
  • One active key per account ensures clear usage tracking.

First Request with cURL

Sound wave illustration for: First Request with cURL

To generate audio, send a POST request to the speech endpoint with your JSON payload. The API accepts standard parameters to define the model, text content, and voice style, returning the audio file directly in the response.

You can test the integration immediately using cURL. Ensure your bearer token is included in the authorization header, and verify that the input text does not exceed the 4,096-character limit per request.

Basic POST Request Structure

Send a POST request to https://api.8eee.info/v1/audio/speech. The body must be a JSON object containing the required fields. The endpoint processes requests sequentially, so under heavy load, synthesis may queue slightly.

Required Fields: model, input, voice

Specify the model as either "tts-1" or "tts-1-hd". Provide the text in input, ensuring it stays within the 4,096-character limit. Choose one of the eight preset voice options, such as "aria" for clear narration or "atlas" for neutral news-style reading.

Optionally, set the response_format (mp3, wav, opus, flac, pcm) and speed (0.25–4.0). If the language is not specified, the system guesses it from the script, defaulting to English for Latin text.

  • model: "tts-1" or "tts-1-hd"
  • input: string up to 4,096 characters
  • voice: e.g., "aria", "nova", "atlas"
  • response_format: mp3, wav, opus, flac, or pcm

Example Request and Response

Use the following cURL command to generate a short audio clip. Replace YOUR_API_KEY with your token from /get-api-key/.

The response contains the audio file bytes directly. For texts longer than 4,096 characters, split them into parts, generate each segment, and join the resulting audio files.

  • curl -X POST https://api.8eee.info/v1/audio/speech \
  • -H "Authorization: Bearer YOUR_API_KEY" \
  • -H "Content-Type: application/json" \
  • -d '{"model":"tts-1","input":"Hello, this is a test.","voice":"aria","response_format":"mp3"}'

Using the OpenAI SDK

Sound wave illustration for: Using the OpenAI SDK

Since LingoEcho’s API mirrors the OpenAI speech structure, you can use official OpenAI SDKs with minimal configuration. Simply point the SDK to our base URL and use your LingoEcho bearer token for authentication.

Change base_url to Our Endpoint

Configure your SDK client to target https://api.8eee.info/v1 instead of the default OpenAI endpoint. This ensures all requests route through LingoEcho’s infrastructure while maintaining standard JSON formats.

Use Standard Speech Endpoint

Call the /v1/audio/speech endpoint with a POST request. Include model ("tts-1" or "tts-1-hd"), input text, and voice preset. The response returns the audio file directly, ready for playback in your language learning materials.

Compatible with Official SDKs

This approach works with any official OpenAI SDK that supports custom base URLs. You do not need a dedicated LingoEcho client library, allowing you to integrate TTS into existing Python or Node.js projects quickly.

Supported Formats

Sound wave illustration for: Supported Formats

The API returns audio in five standard formats, allowing you to choose the best balance between file size and quality for your teaching materials. Every request must specify the desired response_format in the JSON body alongside model, input, and voice.

MP3 for Web Playback

MP3 is the most versatile format for embedding audio directly into lesson plans or learning management systems. It offers a good balance of compression and audio fidelity, ensuring quick loading times for students accessing resources on varied devices.

  • Supported by all modern browsers and media players.

WAV for High Quality

WAV provides uncompressed, high-fidelity audio ideal for professional editing or archival purposes in language classrooms. Use this format when you need pristine sound quality for detailed phonetic analysis or when integrating with professional audio software.

  • Lossless quality suitable for professional production workflows.

OPUS, FLAC, PCM for Specific Use Cases

OPUS offers superior compression for low-bandwidth environments, while FLAC provides lossless compression for storage efficiency. PCM is available for raw, uncompressed data streams where minimal processing overhead is required before further analysis or processing.

  • OPUS: optimal for low-bandwidth environments.
  • FLAC: lossless compression for efficient storage.
  • PCM: raw audio data for specialized processing or analysis.

Error Handling

Sound wave illustration for: Error Handling

Robust error handling ensures your lesson plans stay on schedule. LingoEcho provides clear HTTP status codes and structured JSON responses, allowing you to quickly diagnose issues without guessing.

Common HTTP Status Codes

Use 200 for success, 400 for invalid parameters like unsupported voices, 401 for authentication failures, and 500 for internal server errors.

JSON Error Response Format

Errors return a JSON object with an 'error' field containing a message and code. This structure makes parsing simple in any language.

  • error.code: Specific identifier
  • error.message: Human-readable description

Retry Logic for Rate Limits

If you exceed 60 requests per minute, you receive a 429 status. Implement exponential backoff to retry after the cooldown period.

Error Handling

Rate Limits

Sound wave illustration for: Rate Limits

Each API key allows 60 requests per minute. This limit applies to your active key and resets every minute. If you exceed this, requests are rejected until the window clears.

60 Requests Per Minute Per Key

Standard accounts can process up to 60 synthesis requests per minute. This allows for efficient batch generation of classroom audio materials without waiting for individual requests to complete.

10 Requests Per Minute Before First Top-Up

New accounts without a top-up start with a lower limit of 10 requests per minute. Once you add USDT (TRC-20) to your balance, the limit increases to 60 requests per minute.

Queue Processing Under Load

Requests are processed sequentially. Under high load, a request may wait in a queue. Long texts take time to synthesize, so plan your batch sizes accordingly to avoid delays.

  • Requests are processed one after another
  • Longer texts take more time to generate
  • Queuing may occur during peak usage

Voice Selection

Sound wave illustration for: Voice Selection

Choosing the right voice ensures your language learning materials match the intended tone and audience. LingoEcho provides eight distinct preset voices, allowing you to select the perfect style for your educational content, from clear narration to engaging storytelling.

Each voice is designed to support diverse pedagogical needs. Whether you are creating calm instructional guides or energetic promotional clips, you can find a voice that aligns with your specific teaching method and student demographic.

8 Preset Voices Available

We offer eight carefully crafted voices to suit various classroom scenarios. These presets are based on licensed recordings, ensuring natural and clear audio output for your students.

Each voice is optimized for clarity, making them ideal for reading practice and language exercises where pronunciation accuracy is key.

  • Aria: Warm, clear narrator
  • Nova: Bright, upbeat
  • Luna: Soft, storytelling
  • Sage: Calm, instructional
  • Felix: Energetic, promo
  • Milo: Friendly, conversational
  • Atlas: Neutral, news
  • Orion: Deep, documentary

Gender and Tone Variations

Our voices cover a spectrum of tones, from the energetic delivery of Felix to the deep, documentary style of Orion. This variety helps maintain student engagement by avoiding monotony in long reading sessions.

You can mix voices to create dynamic audio lessons by sending separate requests for each segment, using Sage for instructions and Luna for narrative segments.

Language Compatibility for Each Voice

Every voice supports all 23 available languages, including Arabic, Chinese, French, German, Japanese, Spanish, and more. This flexibility allows you to teach multiple languages using consistent voice characteristics.

If the language is not specified, the system guesses from the script. For non-English Latin text, always set the language parameter to ensure accurate pronunciation.

Authentication

Sound wave illustration for: Authentication

Secure your API access with a simple Bearer token strategy. Pass your key in the Authorization header of every request, ensuring consistent authentication across all endpoints.

Bearer Token in Header

Include your unique key as Authorization: Bearer tts-... in the HTTP header. This standard format works seamlessly with the OpenAI SDK or any HTTP client, keeping your integration clean and secure without requiring custom libraries.

Single Active Key Per Account

Each account maintains one active API key at a time. This simplifies permission management for teachers and developers, ensuring that only one credential is valid for billing and usage tracking at any given moment.

Revoke and Regenerate Keys Instantly

If your key is exposed or you want to reset access, generate a new key from the dashboard. The previous key stops working immediately, securing your account without waiting for manual review or email confirmation.

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. This means you can select your preferred narrator regardless of the target language, ensuring consistent audio quality across your entire curriculum.

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. LibriVox public-domain audiobooks
  3. openai-node on GitHub
  4. W3C WAI: making audio and video accessible
  5. Node.js documentation
  6. Python documentation
  7. TRON developer hub: TRC-20
  8. OpenAI API reference: create speech
  9. MDN: Web Speech API
  10. curl documentation
  11. LibriTTS-R corpus (OpenSLR 141)
  12. Tether (USDT)

More on this site