Quickstart Guide to Our Text-to-Speech API

By 69q editorial team · Updated 2026-11-19

This guide provides a practical, step-by-step introduction to the VoceScribe Text-to-Speech API, designed specifically for self-publishers and audiobook creators. You will learn how to convert text into high-quality audio files in 23 languages, starting with optimized narration for Spanish projects. The documentation covers essential workflows, from setting up authentication to handling responses, ensuring you can integrate TTS into your production pipeline without unnecessary complexity.

We focus on reliable, consistent output for digital audiobooks. Here you will find concrete examples for generating speech, managing your API key, and understanding rate limits. The guide assumes you are ready to send text and receive audio files, providing the exact parameters needed for successful synthesis. Whether you are building a custom workflow or using the OpenAI SDK, this page gives you the specific facts required to start generating audio immediately.

Quickstart Guide to Our Text-to-Speech API

Frequently asked questions

How do I generate an API key?

Sign up on the /get-api-key/ page using Google or email. Your account displays a single active API key starting with 'tts-'. You can issue a new key at any time; the previous one stops immediately. Each account on 69q.info maintains its own independent credentials for API access.

What is the base URL for the API?

The API base URL is https://api.69q.info/v1. Use this endpoint for all requests, including POST /v1/audio/speech for synthesis and GET /v1/voices for metadata. Ensure your Authorization header uses the Bearer token format with your specific API key.

Can I use the OpenAI SDK?

Yes. The request shape matches the OpenAI speech endpoint. Configure your SDK by changing the base_url to https://api.69q.info/v1 and providing your VoceScribe API key. This allows you to use official OpenAI SDKs directly without custom client libraries.

How do I handle rate limits?

Limits are 60 requests per minute per key (10 per minute before the first top-up). Requests process sequentially, so under load, they may queue. Failed requests are free and do not consume your character balance, but they still count toward rate limits.

What happens if I send a large text?

Each request accepts up to 4096 characters. For longer texts, split your input into parts of this size. Generate audio for each part individually, then join the resulting audio files to create the final complete narration file.

Is the API compatible with Python?

Yes, because the API follows the OpenAI endpoint structure. You can use the official OpenAI Python SDK by setting the base_url to https://api.69q.info/v1. Alternatively, use standard HTTP libraries like requests to send JSON payloads and receive audio files.

Can I stream the audio?

No. The API returns the complete audio file in the response body. There is no WebSocket or streaming support for partial audio chunks.

What is the maximum speed setting?

The maximum speed setting is 4.0. You can adjust the speed between 0.25 and 4.0 to control the narration pace. This applies to all eight voice presets and all supported languages without affecting the audio quality or format.

First request

curl

curl https://api.69q.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.69q.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.69q.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

Authentication

Sound wave illustration for: Authentication

Authentication relies on a single active API key per account, passed via the Authorization: Bearer tts-... header. This key grants access to all endpoints, including speech generation and voice listings. You can manage keys directly from the dashboard after signing in.

Bearer Token Format

Bearer Token Format

Include the header Authorization: Bearer tts-YOUR_KEY_HERE in every request. The key string begins with tts- and is issued uniquely per account. Ensure no extra whitespace surrounds the token to avoid 401 errors.

  • Format: Bearer tts-<random_string>
  • Case-sensitive
  • Sent in HTTP header

Key Management

Key Management

Each account holds one active key. View your current key and balance on the /get-api-key/ page. The key remains valid until rotated or revoked. Failed requests do not consume credits, but count toward rate limits.

Key Rotation

Generate a new key at any time from the dashboard. The previous key stops working immediately upon creation of the new one. This ensures secure access control without downtime if you rotate keys rapidly.

Endpoints

Sound wave illustration for: Endpoints

The API exposes three primary endpoints for integration. The speech generation endpoint processes your text into audio, while the voices and models endpoints provide metadata for configuration.

Use the voices list to identify available narrators and their supported formats. The models list returns pricing details, allowing you to calculate costs before generation.

Speech Generation

Send a POST request to /v1/audio/speech with your text and voice selection. The endpoint returns the audio file directly in the response body.

Ensure the input text does not exceed 4096 characters. For longer content, split the text into chunks and join the resulting audio files.

  • POST /v1/audio/speech
  • Returns audio file in response body

Voices List

Call GET /v1/voices to retrieve available narrators. The response includes voice ID, name, gender, supported languages, and audio formats.

This endpoint helps you select the right voice for your audiobook project, such as Aria for narration or Felix for promos.

  • GET /v1/voices
  • Returns voice ID, name, gender, supported languages, and formats

Models List

Use GET /v1/models to view available TTS models. The response provides model ID, name, and pricing information.

Choose between tts-1 and tts-1-hd based on your quality needs and budget. Both models use the same engine.

Knowing the pricing upfront helps you estimate costs per audiobook chapter before starting generation.

  • GET /v1/models
  • Returns model ID, name, and pricing

Request Parameters

Sound wave illustration for: Request Parameters

Configure your requests by selecting the engine model, defining the input text, and choosing a voice preset. The API accepts plain text up to 4,096 characters per request, with spaces and punctuation counting toward the limit. For longer content, split the text into chunks and join the resulting audio files.

Model Selection

Choose between "tts-1" for standard quality or "tts-1-hd" for higher fidelity. Both models use the same underlying engine and pricing, allowing you to switch seamlessly without changing your integration logic.

Input Text Limits

The API processes a maximum of 4,096 characters per request. Since generation speed is roughly real-time (25 characters per second), long texts should be chunked to stay within the 4096-character limit per request.

  • Maximum length: 4,096 characters
  • Spaces and punctuation count as characters
  • Split longer texts and join audio outputs

Voice Selection

Select from eight presets tailored for narration, news, or promotional content. Each voice supports all 23 languages. If the language field is omitted, the system guesses the language from the script, defaulting to English for Latin text.

  • 8 distinct voice presets available
  • Supports all 23 listed languages
  • Language defaults to English if unspecified

Response Formats

Sound wave illustration for: Response Formats

VoceScribe generates audio in five standard formats to suit different deployment needs. The default response is MP3, providing efficient compression for web delivery. You can specify response_format in the JSON body to switch between MP3, WAV, OPUS, FLAC, or PCM depending on your infrastructure requirements.

MP3 Output

MP3 is the recommended format for most audiobook and web applications due to its small file size and universal compatibility. It balances quality and bandwidth efficiency, making it ideal for downloading long-form content.

WAV Output

WAV provides uncompressed, high-fidelity audio suitable for professional editing workflows. This format preserves the full quality of the generated speech without lossy compression artifacts, ensuring the best possible quality for post-production.

Opus and FLAC

Opus offers superior compression for voice, while FLAC provides lossless compression for archival purposes. Both formats maintain high audio integrity while optimizing storage or transmission efficiency.

Rate Limits

Sound wave illustration for: Rate Limits

Understanding rate limits ensures your audiobook production pipeline runs smoothly without unexpected interruptions. VoceScribe enforces strict but predictable thresholds to maintain server stability for all publishers.

Requests are processed sequentially, meaning complex or high-volume jobs may experience slight delays during peak usage. Knowing these limits helps you schedule batch narrations effectively.

60 Requests Per Minute

Each API key allows a maximum of 60 requests per minute. This limit applies per key. Staying within this boundary prevents temporary throttling during high-volume narration sessions.

10 Requests Before Top-Up

New accounts start with a trial credit of $0.50. Before any top-up is processed, new keys are limited to 10 requests per minute. Once you add USDT and the balance updates, the limit increases to the standard 60 requests per minute.

Queue Behavior

Requests are processed one after another. If you exceed the per-minute limit, subsequent requests enter a queue. Short phrases may take a few seconds, while longer texts generate at roughly real-time speed (25 characters per second).

Under heavy load, queued requests may wait longer. Plan your publishing schedule to avoid simultaneous bursts of narration jobs.

Rate Limits

Error Handling

Sound wave illustration for: Error Handling

Understanding error responses ensures your audiobook production pipeline remains robust. VoceScribe returns standard HTTP codes to indicate success, client-side issues, or server-side delays.

HTTP Status Codes

Use 200 for successful audio generation. Use 400 for invalid parameters, such as exceeding the 4096-character limit. Use 401 for expired or incorrect API keys. Use 429 when you exceed the rate limit of 60 requests per minute.

  • 200: Success
  • 400: Bad Request
  • 401: Unauthorized
  • 429: Too Many Requests

Common Errors

Invalid voice names or unsupported language codes return 400 errors. If your TRON USDT top-up is pending, you may encounter balance-related errors. Failed synthesis attempts are refunded automatically.

Retry Logic

Implement exponential backoff for 429 and 5xx errors. Do not retry 400 errors, as they indicate a configuration issue. For long texts, split and join audio locally to handle individual segment failures gracefully.

SDK Integration

Sound wave illustration for: SDK Integration

Since our API mirrors the OpenAI speech endpoint structure, you can use the official OpenAI SDKs without writing custom HTTP clients. This allows you to leverage familiar methods and maintain consistent integration patterns across your audiobook production pipeline.

OpenAI SDK Setup

Install the standard OpenAI Python or Node.js library. No special version is required; the default SDK handles the JSON body and file response exactly as our endpoint expects.

Base URL Configuration

Override the default API host by setting base_url to https://api.69q.info/v1. This directs all requests to our infrastructure while keeping the standard tts-1 model interface intact.

Code Examples

Pass your tts-... key via the Authorization header. Use the audio/speech endpoint with your chosen voice and format. The SDK returns the audio file directly for immediate saving or playback.

  • Set base_url="https://api.69q.info/v1"
  • Use model="tts-1" or "tts-1-hd"
  • Pass voice and input parameters
  • Receive binary audio data in response

Curl Example

Sound wave illustration for: Curl Example

The curl command offers the most direct way to test the API without installing additional libraries. This example demonstrates a standard request to generate a short English sentence using the 'nova' voice. It verifies that your key is active and the endpoint is reachable before integrating into your audiobook pipeline.

You can adjust the parameters to match your specific narration needs, such as changing the speed or output format. The response returns immediately for short texts, allowing you to quickly verify quality before processing longer manuscripts.

Basic Request

Send a POST request to the speech endpoint with your text and voice selection. The command below generates an MP3 file using the default model.

curl -X POST https://api.69q.info/v1/audio/speech \ -H "Authorization: Bearer tts-your-api-key-here" \ -H "Content-Type: application/json" \ -d '{"model": "tts-1", "input": "This is a test sentence for your audiobook.", "voice": "nova", "response_format": "mp3"}' \ -o output.mp3

bullets

Headers

The Authorization header requires your unique Bearer token. Ensure no spaces surround the key. The Content-Type must be set to JSON for the request body to parse correctly.

bullets

Response Body

On success, the response contains the raw audio binary data. The file is saved to output.mp3 using the -o flag. If the request fails, the response body will contain a JSON object with an error message and status code.

bullets

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. Failed requests are free, so you can test edge cases without risk.

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. TRON developer hub: TRC-20
  3. Node.js documentation
  4. OpenAI API reference: create speech
  5. Tether (USDT)
  6. Python documentation
  7. curl documentation
  8. FFmpeg documentation
  9. LibriVox public-domain audiobooks
  10. ISO 639 language codes
  11. openai-python on GitHub
  12. openai-node on GitHub

More on this site