Integrate MuseumVoice TTS into Your Museum Apps

By MuseumVoice API editorial team · Updated 2026-11-19

This guide helps tourism agencies and museum developers integrate the MuseumVoice TTS API into their applications. You will find concrete details on authentication, request structures, and parameter settings. We cover how to generate audioguide audio in 23 languages, manage character limits, and handle multiple audio formats. The documentation is designed for technical teams who need precise, reliable data to build smooth user experiences.

You will learn how to obtain your API key, understand rate limits, and troubleshoot common errors. Examples include curl commands and OpenAI SDK integration steps. This page assumes you are building a backend service or mobile app for exhibit audio. It does not cover marketing copy or non-technical setup. All information is specific to the MuseumVoice API at ckk6.info.

Integrate MuseumVoice TTS into Your Museum Apps

Frequently asked questions

What is the endpoint for generating audio?

Send a POST request to https://api.ckk6.info/v1/audio/speech with a JSON body containing your text, voice selection, and format preferences. This endpoint accepts standard TTS parameters and returns the generated audio file directly in the response body.

How do I authenticate my requests?

Include your API key in the Authorization header using the format: Authorization: Bearer tts-.... Each account has one active key; issuing a new key immediately invalidates the previous one, so ensure you update your integration promptly.

What is the maximum text length per request?

Each request supports up to 4096 characters of input text. If your exhibit text exceeds this limit, you must split it into smaller parts, generate audio for each segment, and join the resulting audio files manually.

Can I use the OpenAI Python SDK?

Yes, the API uses the same request shape as the OpenAI speech endpoint. You can use the official OpenAI SDKs by changing the base_url to https://api.ckk6.info/v1 and providing your MuseumVoice API key for authentication.

How do I handle long museum texts?

Split your text into chunks of up to 4096 characters. Generate audio for each chunk individually using the API, then join the resulting audio files. This ensures reliable synthesis while staying within the per-request character limit.

What happens if the request fails?

If synthesis fails, the charge is returned in full. You are not billed for failed requests, so you can retry or adjust your parameters without worrying about unnecessary costs for audio that was not successfully generated.

Is the API rate limited?

Yes, the limit is 60 requests per minute per key. Before your first top-up, the limit is 10 requests per minute. Requests are processed sequentially, so high load may cause queuing delays during peak usage times.

Do I need to specify a language code?

It is optional but recommended for non-English Latin-script text. If omitted, the system guesses the language, defaulting to English for Latin script. For accurate results in other languages, explicitly set the language parameter to the ISO code.

What models are available?

Two models are available: tts-1 and tts-1-hd. Both use the same engine and pricing. You can choose either based on your quality preference, as both models use the same engine.

How do I get my API key?

Sign up on the /get-api-key/ page using Google or email. Your API key will be displayed on the dashboard along with your balance, usage statistics, and a ready-to-use cURL example for immediate integration testing.

Is the response format always JSON?

No, the response contains the audio file itself, not JSON. The request body is JSON, but the response body is the raw audio data in your specified format (mp3, wav, opus, flac, or pcm).

Can I request audio in FLAC format?

Yes, you can specify flac as the response_format in your request. The API supports mp3, wav, opus, flac, and pcm formats, allowing you to choose the best balance of quality and file size for your audioguide.

How do I know if my audio was generated?

A successful response returns the audio file directly. If the request fails, you receive an error status and the charge is refunded. Check your account dashboard for usage logs and billing details to confirm successful generations.

Do I need to pay for reading the voices list?

No, reading the voices list is free. You can retrieve available voices, languages, and formats via a GET request to /v1/voices without any cost, helping you plan your integration before generating audio.

First request

curl

curl https://api.ckk6.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.ckk6.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.ckk6.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 and Keys

Sound wave illustration for: Authentication and Keys

Access the /get-api-key/ page to generate your unique API key using either Google sign-in or a standard email and password. Each account is tied to a specific site and holds one active key at a time.

Obtain your API key

Obtain your API key

Sign up on the /get-api-key/ page to receive your key. Google sign-ins include a $0.50 trial valid for seven days, while email accounts start with zero balance. You can view your key, usage, and balance directly on this dashboard.

Bearer token format

Bearer token format

Include your key in the request header as Authorization: Bearer tts-.... This standard format works with the official OpenAI SDKs by simply updating the base URL to https://api.ckk6.info/v1.

Regenerating your key

Issue a new key at any time via the dashboard. The old key stops working immediately, ensuring secure access management for your museum app.

Endpoint for Audio Generation

Sound wave illustration for: Endpoint for Audio Generation

Send your exhibit texts to the single generation endpoint. The API processes your input and returns the synthesized audio file directly in the response, ready for immediate playback in your audioguide application or web interface.

POST /v1/audio/speech

All audio synthesis requests are sent via HTTP POST to https://api.ckk6.info/v1/audio/speech. This endpoint handles the conversion of your text into audio, supporting both standard and high-definition models for your museum tours.

JSON body structure

The request body must be valid JSON containing your text, selected voice, and desired audio format. You can also adjust the playback speed or specify a language to ensure the guide speaks clearly to international visitors.

Required fields overview

You must provide the model ("tts-1" or "tts-1-hd"), the input text (up to 4096 characters), and a voice preset. The response_format is also required to define whether you receive MP3, WAV, Opus, FLAC, or PCM audio.

  • model: tts-1 or tts-1-hd
  • input: Your exhibit text
  • voice: One of 8 presets
  • response_format: mp3, wav, opus, flac, or pcm

Request Parameters Explained

Sound wave illustration for: Request Parameters Explained

The API accepts two model identifiers, "tts-1" and "tts-1-hd", which use the same engine and pricing. The choice affects only the output format quality, not the processing speed or character limits.

Input text is limited to 4096 characters per request. Longer exhibit descriptions must be split into parts and joined client-side. Spaces and punctuation count toward this limit.

Model selection (tts-1, tts-1-hd)

Both models use identical processing engines and pricing ($0.01 per 1,000 characters). The distinction lies solely in the audio fidelity of the generated files.

  • Use "tts-1" for standard quality.
  • Use "tts-1-hd" for higher fidelity.

Input text and length limits

Each API call accepts up to 4096 characters. If your guide text exceeds this, split it into chunks and concatenate the resulting audio files.

  • Character limit: 4096 per request.
  • Includes all spaces and punctuation.

Voice and language selection

Choose from eight distinct voices, each suited for different exhibit tones. The language parameter is optional; if omitted, the system guesses the language from the script, defaulting to English for Latin text.

All eight voices support all 23 listed languages. Explicitly setting the language ensures accurate pronunciation for non-English texts.

  • Voices: aria, nova, luna, sage, felix, milo, atlas, orion.
  • Languages: 23 options, including Arabic, Chinese, French, German, Spanish, and more.

Supported Audio Formats

Sound wave illustration for: Supported Audio Formats

Choose the format that best fits your audioguide distribution. MP3 offers universal compatibility for web players, while WAV provides uncompressed quality for local archives.

MP3 for web compatibility

MP3 is the standard for web-based audioguide apps, ensuring broad device support without additional codecs. It balances file size and audio fidelity.

WAV for high quality

Select WAV when you need lossless audio for professional installations or archival purposes. This format preserves the full quality of the synthesis engine.

Opus, FLAC, and PCM options

Opus and FLAC offer efficient compression with high fidelity, suitable for modern smart devices. PCM provides raw, uncompressed data for specialized hardware integrations.

  • Opus: Efficient compression for modern web and mobile apps
  • FLAC: Lossless compression for high-fidelity archival storage
  • PCM: Raw audio data for specialized hardware

Rate Limits and Quotas

Sound wave illustration for: Rate Limits and Quotas

The API enforces a strict limit of 60 requests per minute per active key. This cap applies to all synthesis operations, ensuring fair usage across tourism agencies and museums generating audioguide content. Exceeding this threshold will trigger rate limit errors until the window resets.

60 requests per minute

Each key allows up to 60 API calls per minute. Since requests are processed sequentially, high-volume tours may experience slight delays if multiple audio segments are generated simultaneously. Monitor your usage dashboard to stay within these bounds.

10 requests before first top-up

New accounts start with a reduced quota of 10 requests per minute. This limit remains in effect until you complete your first top-up via USDT on the TRON network. Once credited, your full 60 requests/minute limit is activated automatically.

Handling queue delays

During peak usage, requests may queue behind existing synthesis tasks. Longer texts take more time to generate, potentially increasing wait times. Implement exponential backoff in your integration to handle temporary 429 errors gracefully without disrupting the user experience.

Rate Limits and Quotas

Error Handling and Codes

Sound wave illustration for: Error Handling and Codes

API responses include standard HTTP status codes and error details to help you debug integration issues quickly. Understanding these errors ensures your audioguide application handles failures gracefully without disrupting the user experience.

Invalid API key errors

Return a 401 status when the provided key is missing, malformed, or revoked. If you regenerate your key, the old one stops immediately, so ensure your application updates its credentials promptly.

Text too long errors

Return a 400 status if the input text exceeds 4096 characters. You must split longer exhibit descriptions into parts and join the resulting audio files manually, as the API does not handle long-form synthesis automatically.

Rate limit exceeded errors

Return a 429 status when you exceed 60 requests per minute, or 10 requests per minute before your first top-up. Under load, requests may also queue, causing slight delays in audio generation.

Curl Example for Quick Start

Sound wave illustration for: Curl Example for Quick Start

Generate your first audioguide clip in seconds using a single terminal command. This example demonstrates a basic request to the speech endpoint, returning an MP3 file ready for immediate playback in your museum app or website.

Replace the placeholder values with your actual API key and desired voice. The command handles the JSON payload structure, ensuring your exhibit text is synthesized correctly without manual header configuration.

Basic command structure

Use the following curl command to send a POST request to the speech endpoint. Ensure you replace the base URL with your specific API domain if you are not using the standard configuration.

Replacing placeholders

Substitute YOUR_API_KEY with your secret key from the dashboard. Replace YOUR_VOICE (e.g., aria) and YOUR_TEXT with your actual exhibit content. Note that text is limited to 4096 characters per request.

Testing your first audio

Execute the command in your terminal to receive a binary audio response. Save the output to a file (e.g., audio.mp3) and play it to verify voice clarity and language accuracy before integrating into your tourism platform.

OpenAI SDK Integration

Sound wave illustration for: OpenAI SDK Integration

MuseumVoice TTS API uses the same request shape as the OpenAI speech endpoint, allowing you to leverage official SDKs with minimal configuration changes. This compatibility simplifies integration for teams already familiar with OpenAI’s architecture.

Changing the base URL

Point your SDK’s base_url to https://api.ckk6.info/v1. This directs all requests to our infrastructure while maintaining standard OpenAI client behavior.

Using official SDKs

Any official OpenAI SDK works seamlessly. Simply update the base URL and provide your tts-... Bearer token in the Authorization header. No custom wrapper libraries are required.

JSON body compatibility

The JSON body structure matches the OpenAI standard exactly. Pass model, input, voice, response_format, and speed as usual. Our API processes these fields identically, ensuring your existing code works out of the box.

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. This voice is less about delivering facts and more about creating an atmosphere.

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. MDN: Web Speech API
  3. LibriVox public-domain audiobooks
  4. ISO 639 language codes
  5. Creative Commons Attribution 4.0
  6. OpenAI API reference: create speech
  7. openai-python on GitHub
  8. TRON developer hub: TRC-20
  9. Python documentation
  10. IETF RFC 7845: Ogg Opus
  11. Node.js documentation
  12. curl documentation

More on this site