Cloud Text-to-Speech API: Generate Natural Audio

By SpriteSpeak editorial team · Updated 2026-11-19

This page provides the technical documentation for SpriteSpeak’s cloud text-to-speech API, designed specifically for indie game developers who need to generate NPC dialogue and ambient voice lines at scale. We outline the JSON request structure, supported voices, and integration patterns so you can quickly add high-quality synthetic speech to your game engine without hiring voice actors.

You will find concrete details on the 8 available presets, 23 supported languages, and character-based pricing at $0.01 per 1,000 characters. The guide covers authentication, rate limits, and code examples using standard OpenAI SDKs, helping you integrate reliable audio generation into your interactive media workflow with minimal overhead.

Cloud Text-to-Speech API: Generate Natural Audio

Frequently asked questions

What is the character limit per request?

Each API request accepts up to 4096 characters of input text. For longer dialogues, you must split the text into chunks of this size and join the resulting audio files. Spaces and punctuation count toward the character limit, so plan your NPC lines accordingly to stay within the per-request constraint.

Can I use the API for commercial projects?

Yes, you can use the generated audio for commercial projects. The voices are based on licensed recordings from LibriTTS-R (CC BY 4.0) and LibriVox public-domain audiobooks. Each generated file carries an inaudible watermark to mark it as synthetic speech.

How do I top up my balance?

Top up your balance using USDT on the TRON network (TRC-20). The minimum top-up amount is $5, and credits are added automatically within minutes after your transfer is confirmed. We do not accept credit cards, PayPal, or subscriptions, and there are no monthly plans or minimum spend requirements.

Are failed requests charged?

No, failed requests are free. If synthesis fails, the charge is returned in full to your account balance. You only pay for successful audio generations, which cost $0.01 per 1,000 characters. This ensures you are not billed for audio files that were not successfully delivered to your endpoint.

Do you offer voice cloning?

No, we do not offer custom voice cloning or the ability to upload your own voice. You must choose from the eight available presets: Aria, Nova, Luna, Sage, Felix, Milo, Atlas, or Orion. These voices are based on licensed recordings and cannot be customized or cloned for specific characters.

What audio formats are supported?

We support MP3, WAV, Opus, FLAC, and PCM formats. You can specify the desired format in the response_format field of your request. These options allow you to choose between compressed audio for smaller file sizes or lossless formats for higher quality, depending on your game engine's requirements.

Is there a free trial available?

Yes, signing in with Google provides a $0.50 trial credit, valid for 7 days, which covers approximately 50,000 characters. Accounts created with email and password start without trial credit. You can use this credit to test the API before topping up with USDT for ongoing development and deployment.

How is language detection handled?

If the language field is not set, the system guesses the language from the script. Latin script text defaults to English. For non-English Latin-script text, you should explicitly set the language parameter to ensure accurate synthesis. We support 23 languages, including Arabic, Chinese, and Swahili, among others.

First request

curl

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

How It Works

Sound wave illustration for: How It Works

Send your NPC dialogue or ambient voice lines as text and receive synthesized audio files. This cloud API is designed for indie game developers who need to generate character speech at scale without hiring voice actors, fitting directly into interactive media workflows.

Send Text and Receive Audio

Send Text and Receive Audio

The core workflow is straightforward: submit a POST request with your text payload and receive a downloadable audio file. You control the voice, speed, and format to match your game’s specific audio requirements.

  • Supports up to 4096 characters per request
  • Returns audio in mp3, wav, opus, flac, or pcm
  • Adjustable speed from 0.25x to 4.0x

Simple JSON Request Format

Simple JSON Request Format

The API uses a standard JSON structure compatible with the OpenAI speech endpoint. By changing the base URL to https://api.60444.info/v1, you can use official OpenAI SDKs or simple HTTP clients. Include your model choice (tts-1 or tts-1-hd), input text, and voice preset.

Splitting Long Texts

For dialogue exceeding 4096 characters, split the text into smaller parts and join the resulting audio files. This allows you to generate longer monologues or conversation trees while maintaining consistent voice quality across your game’s assets.

Supported Voices

Sound wave illustration for: Supported Voices

SpriteSpeak provides eight distinct voice presets designed for NPC dialogue and ambient audio. Each voice has a distinct character, from energetic to calm, allowing developers to match tone without hiring additional talent.

All voices support 23 languages, ensuring consistent quality across global game releases. The synthetic nature of the audio includes an inaudible watermark, clearly marking it as generated content for transparency.

Female Voice Options

Four female voices cover a range of character archetypes. Aria offers a warm, clear narration style suitable for guides. Nova provides a bright, upbeat tone for lively interactions.

Luna delivers a soft, storytelling voice ideal for lore or intros. Sage maintains a calm, instructional demeanor, perfect for tutorial segments or technical explanations.

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

Male Voice Options

The male selection includes four distinct presets. Felix is energetic and promo-focused, while Milo offers a friendly, conversational tone for casual dialogue.

Atlas provides a neutral, news-style delivery for straightforward information. Orion brings a deep, documentary voice suited for atmospheric or serious narrative elements.

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

Voice Licensing and Origin

All voices are derived from licensed recordings from LibriTTS-R (CC BY 4.0) and public-domain audiobook readings from LibriVox. This ensures legal clarity for indie developers using these assets in commercial projects.

Languages and Localization

Sound wave illustration for: Languages and Localization

SpriteSpeak supports 23 languages, enabling indie developers to localize NPC dialogue for global markets without hiring separate voice talent. Any voice can speak any supported language, ensuring consistent character identities across diverse linguistic regions.

The API accepts an optional language parameter for precise control, or relies on automatic detection for Latin-script text defaulting to English. This simplifies integration for voice acting workflows.

Supported Languages List

The platform supports 23 languages: Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, and Turkish.

  • Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, Turkish

Language Detection Logic

If the language field is omitted, the system guesses the language from the text script. Latin script defaults to English; non-English Latin text should explicitly set the language parameter to avoid mispronunciation.

Unsupported Languages

Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, Bengali, and other languages not listed above are not supported.

Pricing and Payment

Sound wave illustration for: Pricing and Payment

SpriteSpeak charges $0.01 per 1,000 characters, covering all voices and formats. Failed requests incur no cost. Accounts start with a $0.50 trial credit valid for 7 days upon Google sign-in. Top-ups via USDT (TRC-20) are credited automatically within minutes, with no monthly plans or expiration.

Billing is transparent: every character, including spaces and punctuation, counts toward your limit. You can monitor usage directly on the dashboard.

Character-Based Pricing

The cost is strictly proportional to input length: $10 per 1 million characters. This flat rate applies regardless of voice selection or output format.

Failed synthesis requests are free. If the API returns an error, the character count is not deducted from your balance.

Free Trial and Credits

New accounts created via Google authentication receive $0.50 in trial credit, equivalent to approximately 50,000 characters. This credit expires after 7 days.

Email/password accounts do not receive trial credit. You must top up to begin generating audio.

Top-Up via USDT (TRC-20)

We accept only USDT on the TRON network (TRC-20). The minimum top-up amount is $5.

Credits are processed automatically within minutes of transfer confirmation. There are no subscriptions, invoices, or VAT charges.

Technical Specifications

Sound wave illustration for: Technical Specifications

The core endpoint is POST https://api.60444.info/v1/audio/speech, accepting JSON bodies identical to the OpenAI speech format. This compatibility allows you to use official OpenAI SDKs simply by updating the base_url. Additional endpoints like GET /v1/voices provide metadata on available models and languages.

API Endpoint and Methods

Send your text payload to the speech endpoint to receive synthesized audio. The API supports standard HTTP methods for resource retrieval.

  • POST /v1/audio/speech for synthesis
  • GET /v1/voices for voice metadata
  • GET /v1/models for model details

Authentication and Keys

Include your unique API key in the header as Authorization: Bearer tts-.... Each account holds one active key; issuing a new key immediately invalidates the previous one,

Rate Limits and Speed

Limits are set at 60 requests per minute per key (10/min before first top-up). Generation speed is roughly real-time (~25 characters/second), though requests queue under load. Short phrases take a few seconds to process.

Technical Specifications

Data Privacy and Usage

Sound wave illustration for: Data Privacy and Usage

Input text is used exclusively to produce the requested audio file and is not used for training our models. Generated audio is returned in the response and is not stored on our servers after delivery.

Request metadata, including timestamp, character count, and status, is retained solely for accurate billing and usage tracking.

Input Text Usage

We process your input text strictly for synthesis. The text is not used for training.

Audio Storage Policy

The generated audio file is delivered via the API response and is not permanently stored by SpriteSpeak.

Billing Metadata Retention

Metadata such as request time, character count, and status codes are kept to verify charges and manage your account balance. This data is not used for model training.

Integration Guide

Sound wave illustration for: Integration Guide

SpriteSpeak’s API mirrors the OpenAI speech endpoint structure, allowing you to reuse existing OpenAI SDK clients with minimal configuration. By simply updating the base_url to https://api.60444.info/v1 and providing your unique API key, you can integrate natural voice synthesis into your game engine or application without rewriting your HTTP logic.

This compatibility allows developers familiar with the OpenAI ecosystem to deploy NPC dialogue or ambient voice lines. You send a JSON payload containing the text, voice preset, and desired audio format, and receive a direct audio file response suitable for immediate playback.

Using OpenAI SDKs

To use the official OpenAI SDKs, initialize your client with the SpriteSpeak base URL: https://api.60444.info/v1. Pass your API key via the Authorization: Bearer header. The SDK supports the same parameters (model, input, voice, response_format, speed) as the standard speech endpoint.

  • Set base_url to https://api.60444.info/v1
  • Use your tts-... API key in the Authorization header
  • Standard parameters apply: model, input, voice, response_format, speed

cURL Example

For direct HTTP requests, use the following cURL command to generate speech. Replace YOUR_API_KEY with your key and text with your NPC dialogue. The response will contain the raw audio data in the specified format, which you can save directly to a file or pipe into your audio engine.

  • Endpoint: POST https://api.60444.info/v1/audio/speech
  • Header: Authorization: Bearer YOUR_API_KEY
  • Body: `{"model": "tts-1", "voice": "nova", "input": "Hello, traveler.", "response_format": "mp3"}`

Error Handling and Retries

If synthesis fails, the request is not charged, and the error response indicates the issue (e.g., invalid voice or rate limit). Implement exponential backoff for retries, keeping in mind the rate limit of 60 requests per minute per key. Short texts may take a few seconds to generate.

  • Failed requests are free
  • Rate limit: 60 requests/minute
  • Use exponential backoff for retries

Common Questions

Sound wave illustration for: Common Questions

This section addresses frequent technical and billing questions for developers integrating SpriteSpeak into their game pipelines.

Answers focus on concrete limits, pricing mechanics, and supported features based on current API specifications.

What is the character limit?

Each request supports up to 4096 characters. For longer NPC dialogue, split the text and join the resulting audio files.

Can I use this commercially?

Yes. Generated audio files can be used in commercial games and interactive media without additional licensing fees.

How do I top up my balance?

Send USDT on the TRON network (TRC-20) to your wallet address. Minimum $5. Credits appear automatically within minutes.

Are failed requests charged?

No. If synthesis fails, the charge is returned in full. Failed requests do not consume your balance.

Do you offer voice cloning?

No. We do not offer custom voice cloning or uploading your own voice. Voices are eight licensed presets from LibriTTS-R and LibriVox.

What audio formats are supported?

You can request MP3, WAV, OPUS, FLAC, or PCM formats via the response_format parameter.

Is there a free trial available?

Signing in with Google grants $0.50 credit (approx. 50,000 characters) valid for 7 days. Email accounts start without trial credit.

How is language detection handled?

If language is unset, the API guesses from the script. Latin text defaults to English. For non-English Latin text, explicitly set the language parameter.

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. Unlike some other services, we do not use your input text or generated audio to train our models.

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. OpenAI API reference: create speech
  3. IETF RFC 7845: Ogg Opus
  4. openai-python on GitHub
  5. LibriTTS-R corpus (OpenSLR 141)
  6. LibriVox public-domain audiobooks
  7. ISO 639 language codes
  8. LibriTTS-R paper (arXiv 2305.18802)
  9. W3C WAI: making audio and video accessible
  10. Python documentation
  11. FFmpeg documentation
  12. Node.js documentation

More on this site