Cloud TTS API: 8 Voices, 23 Languages, Simple Pricing

By MuseAudio editorial team · Updated 2026-11-18

This page provides the technical specifications for MuseAudio’s cloud text-to-speech API, designed for startups building audioguides and museum installations. You will find exact endpoint details, voice presets, and pricing structures to integrate synthetic speech into your application workflow without managing infrastructure.

The documentation covers authentication, request formats, and SDK integration using the OpenAI Python SDK. It details rate limits, error handling, and supported languages, ensuring you can reliably generate audio files with predictable character-based pricing.

Cloud TTS API: 8 Voices, 23 Languages, Simple Pricing

Frequently asked questions

How do I authenticate?

Include an Authorization header with your API key. Use the format: Authorization: Bearer tts-... . Each account has one active key; issuing a new one immediately invalidates the old one. Ensure the key is passed with every request to the API endpoint.

What is the base URL?

The API base URL is https://api.av66apk.com/v1. Send POST requests to https://api.av66apk.com/v1/audio/speech for speech generation. Other endpoints like /voices and /models are also available under this base path for retrieving configuration details.

Which SDKs work?

The OpenAI SDKs work by changing the base_url to https://api.av66apk.com/v1. You can also use plain HTTP requests. There is no official SDK from MuseAudio, no mobile SDK, and no WordPress plugin available for integration.

How do I get a list of voices?

Send a GET request to /v1/voices. This endpoint returns available voices, languages, formats, and price information. You can also check /v1/models for model details. The response helps you select from the eight preset voices for your audio generation.

What is the character limit per request?

Each request supports up to 4096 characters in the input field. Spaces and punctuation count toward this limit. If your text exceeds this, split it into parts of 4096 characters or fewer and join the resulting audio files afterward.

How do I change the speed?

Use the speed parameter in your request body, accepting values between 0.25 and 4.0. This allows you to adjust the playback rate of the generated audio. The default speed is typically 1.0, but you can customize it per request.

Does it support SSML?

No, the API does not support SSML. You cannot use SSML tags for pronunciation or prosody control. You must pass plain text in the input field. Custom pronunciation lexicons and phoneme dictionaries are also not available in this service.

How do I handle long texts?

Split your text into chunks of up to 4096 characters. Send each chunk as a separate request and join the resulting audio files. This ensures compliance with the per-request character limit while allowing you to generate audio for longer content.

What are the rate limits?

You are limited to 60 requests per minute per key. Before the first top-up, the limit is 10 requests per minute. If you exceed this, you will receive a 429 error. Queueing may occur under load, affecting processing time.

Can I stream audio?

No, streaming is not supported. The API returns the complete audio file in the response. There is no WebSocket option for real-time partial audio. You must wait for the full synthesis to complete before receiving the audio data.

How do I specify a language?

Include the language parameter with an ISO code in your request. If omitted, the language is guessed from the script, defaulting to English for Latin text. Explicitly setting the language ensures correct synthesis for non-English Latin-script texts.

What happens on 401 error?

A 401 error indicates an authentication failure. Check that your Bearer token is correct and active. If you issued a new key, the old one is immediately invalid. Ensure you are sending the correct Authorization header with each request.

What happens on 429 error?

A 429 error means you have exceeded the rate limit of 60 requests per minute. Wait before sending more requests. If you are below the first top-up, the limit is 10 requests per minute. Reduce your request frequency to resolve this.

Is there a WebSocket option?

No, there is no WebSocket option. The API uses standard HTTP POST requests. Audio is returned in the response body after synthesis completes. There is no real-time streaming or partial audio delivery available through any WebSocket connection.

First request

curl

curl https://api.av66apk.com/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.av66apk.com/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.av66apk.com/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 for the MuseAudio TTS API uses a simple Bearer token mechanism. Include your API key in the HTTP header of every request to identify your account and track usage against your balance.

Bearer token

Bearer token

Every request must include the header Authorization: Bearer <your-key>. This token authenticates your identity and links the generated audio characters to your specific account balance.

API key format

API key format

Your key is a unique string starting with tts- followed by alphanumeric characters. You can find this key on the /get-api-key/ dashboard page after signing in with Google or email.

  • Starts with tts-
  • Unique to your account
  • Viewable in the dashboard

Key rotation

You can issue a new API key at any time via the dashboard. When a new key is generated, the previous one becomes invalid immediately, ensuring secure access control for your museum installations or audioguide projects.

Speech endpoint

Sound wave illustration for: Speech endpoint

The POST https://api.av66apk.com/v1/audio/speech endpoint generates audio from text. Send a JSON payload to receive an audio file. Use the OpenAI Python SDK by changing the base_url to https://api.av66apk.com/v1.

Text up to 4096 characters is processed per request. Longer texts should be split into parts and joined later. Requests are processed sequentially, so under load, a request may wait in a queue.

POST request

Send a POST request to the speech endpoint. Include your API key in the Authorization header as Bearer tts-.... The endpoint accepts JSON bodies and returns audio files directly.

  • Endpoint: POST https://api.av66apk.com/v1/audio/speech
  • Header: Authorization: Bearer YOUR_API_KEY
  • Content-Type: application/json

JSON body structure

The request body is a JSON object containing the text, voice, model, and optional parameters. Fields include model, input, voice, response_format, speed, and language.

  • model: "tts-1" or "tts-1-hd"
  • input: string, max 4096 characters
  • voice: one of 8 presets
  • response_format: mp3, wav, opus, flac, pcm
  • speed: 0.25–4.0
  • language: optional ISO code

Required fields

model, input, and voice are required. The input field contains the text to synthesize. The voice field selects one of the 8 presets. The model field determines the engine quality.

  • model: required
  • input: required
  • voice: required

Voices endpoint

Sound wave illustration for: Voices endpoint

The /v1/voices endpoint provides a complete inventory of available audio profiles and their supported languages. This metadata allows your application to dynamically populate voice selection menus based on the target audience's language requirements.

Each voice preset is engineered for specific narrative contexts, ranging from warm narration to neutral news delivery. The endpoint returns the full list of eight presets, ensuring your API integration can match voice tone to content type accurately.

GET /v1/voices

Send a GET request to retrieve the current voice configurations and supported languages. The response includes the voice ID, gender, style description, and the list of compatible ISO language codes.

This endpoint is essential for building dynamic UIs where users select voices based on their specific audioguide or installation language needs without hardcoding values.

List all voices

The API returns eight distinct voice presets. Female voices include Aria (warm narrator), Nova (upbeat), Luna (storytelling), and Sage (instructional). Male voices include Felix (promo), Milo (conversational), Atlas (news), and Orion (documentary).

All eight voices can speak any of the 23 supported languages. Selecting a voice does not restrict the language; you must set the language parameter in the speech request to ensure correct pronunciation for non-English text.

  • 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

Language codes

The endpoint lists the 23 supported languages, including English, Spanish, German, French, Japanese, Korean, and others. If the language field is omitted in the speech request, the system guesses the language based on the script (defaulting to English for Latin text).

For non-English Latin-script text, explicitly set the language parameter to avoid incorrect accents. Voices do not support Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, Bengali, or other languages outside the listed 23.

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

Models

Sound wave illustration for: Models

The API uses two model identifiers: "tts-1" and "tts-1-hd". Both invoke the identical underlying synthesis engine, producing audio with the same vocal characteristics and latency profiles.

tts-1

Select "tts-1" for standard generation. It is the default model identifier for most integration scenarios.

tts-1-hd

Select "tts-1-hd" when you require higher fidelity output. It is suitable for professional audioguides or museum installations where audio quality is prioritized.

Same engine

Since both models use the same engine, the voice presets and language support are identical. The only difference is the output format quality, while the price remains $0.01 per 1,000 characters for both.

Response formats

Sound wave illustration for: Response formats

Specify the output format via the response_format parameter in your API request. The service supports MP3, WAV, FLAC, OPUS, and PCM, allowing you to choose the best balance between file size and audio quality for your audioguide or museum installation.

Each generated audio file includes an inaudible watermark to identify it as synthetic speech. This metadata is embedded directly into the returned file and does not affect playback compatibility with standard media players.

MP3

MP3 is one of the supported formats and offers small file size for efficient storage. It is suitable for mobile applications and web-based audio players where bandwidth conservation is a priority.

  • Default output format
  • Best for mobile and web delivery
  • Compressed for minimal storage usage

WAV

WAV provides uncompressed audio quality. Use this format when you need raw audio data for post-production editing or when your audio guide system requires PCM-like fidelity without compression artifacts.

  • Uncompressed, lossless quality
  • Ideal for post-production editing
  • Larger file size than MP3

FLAC

FLAC offers lossless compression, reducing file size compared to WAV while retaining full audio fidelity. This format is suitable for archival purposes or high-quality museum installations where storage space matters but quality is non-negotiable.

  • Lossless compression
  • Smaller than WAV, larger than MP3
  • Perfect for archival or high-fidelity needs
Response formats

Rate limits

Sound wave illustration for: Rate limits

Each API key is limited to 60 requests per minute. New accounts without a top-up start with a stricter limit of 10 requests per minute.

60 requests per minute

Standard accounts can process up to 60 synthesis requests per minute. If you are generating long audioguide texts, split them into chunks under 4096 characters and queue the requests accordingly.

Queue behavior

Requests are processed sequentially. Under heavy load, a request may wait in a queue before synthesis begins. Short phrases take a few seconds, while longer texts generate at roughly real-time speed (25 characters per second).

Limit headers

The API returns rate-limit headers in responses. Monitor these to adjust your client-side retry logic and avoid temporary 429 errors during peak usage.

Error handling

Sound wave illustration for: Error handling

Synthesis failures return a full refund, so you lose nothing when audio isn’t generated. You can retry failed requests without worrying about duplicate charges. This ensures your billing remains accurate even if a request times out or the server drops the connection.

Since requests are processed sequentially, a busy queue might delay your audio generation. If you hit a temporary error, wait a few seconds before retrying to avoid adding to the queue pressure.

Common errors

Most errors are temporary. The API returns a 4xx or 5xx status code if the request fails. Failed requests are free, so you can retry immediately or after a short delay.

Ensure your text is under 4096 characters. If it exceeds this limit, split the text into smaller parts before sending the request.

  • Invalid API key: Check your Bearer token format.
  • Rate limit exceeded: Wait before retrying.
  • Input too long: Split text into chunks.

Retry logic

Use exponential backoff for temporary failures. Start with a 1-second delay and double it for each retry.

Retry up to 3 times for transient errors. If the error persists, check your balance and key validity.

Status codes

200: Success. Audio file is returned.

400: Bad request. Check input format and character limit.

429: Too many requests. You’ve hit the 60 requests/minute limit.

500: Server error. Retry after a short delay.

SDK integration

Sound wave illustration for: SDK integration

Using the OpenAI Python SDK is a recommended integration path for MuseAudio. The API endpoint mirrors the OpenAI speech structure, requiring only a base URL adjustment and your API key. This allows you to use familiar libraries without learning a new client.

Configure the client to point to https://api.av66apk.com/v1. This ensures all requests, including audio synthesis, route through MuseAudio’s infrastructure while maintaining compatibility with standard OpenAI SDK methods.

OpenAI Python SDK

Install the standard library using pip. The SDK handles JSON serialization and authentication headers automatically, reducing boilerplate code for your audioguide or museum installation backend.

  • pip install openai

Base URL change

Set the base URL to https://api.av66apk.com/v1. This directs the client to MuseAudio’s endpoints while preserving the standard request shape for text-to-speech synthesis.

Code example

Initialize the client with your Bearer token and the adjusted base URL. Call the speech method with your chosen voice, model, and input text to receive the audio file.

client = OpenAI(base_url='https://api.av66apk.com/v1', api_key='tts-your-key-here') speech = client.audio.speech.create( model='tts-1', voice='nova', input='Welcome to the museum.', response_format='mp3' ) speech.stream_to_file('output.mp3')

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. Each voice can speak any of these languages, allowing a single audio track to serve diverse visitor demographics without requiring multiple voice actors.

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. ISO 639 language codes
  3. MDN: Web Speech API
  4. openai-python on GitHub
  5. LibriVox public-domain audiobooks
  6. LibriTTS-R paper (arXiv 2305.18802)
  7. IETF RFC 7845: Ogg Opus
  8. Tether (USDT)
  9. curl documentation
  10. openai-node on GitHub
  11. Node.js documentation
  12. Creative Commons Attribution 4.0

More on this site