API Documentation for Text-to-Speech Generation

By Jbuzz editorial team · Updated 2026-11-19

This guide helps no-code creators turn text into clear, downloadable audio files for dyslexia-friendly content. You will learn how to use the CleoVoice API with the official OpenAI SDK, replacing browser limitations with reliable synthesis by changing the base URL. Simply change the base URL and send your text to receive an audio file.

We cover every step from getting your API key to handling long texts. You will see concrete examples, understand rate limits, and learn how to manage voices and languages. This page is designed for users who need straightforward, cloud-based speech generation without complex infrastructure or custom SDKs.

API Documentation for Text-to-Speech Generation

Frequently asked questions

What is the base URL?

The base URL is https://api.jbuzz.cc/v1. You send POST requests to https://api.jbuzz.cc/v1/audio/speech. Other endpoints like /v1/voices are also available at this base path. Use this URL when configuring your SDK or HTTP client to ensure your requests reach the correct CleoVoice endpoint for speech synthesis.

How do I format the JSON?

Send a POST request with a JSON body containing model, input, voice, response_format, and optional speed or language. The model is "tts-1" or "tts-1-hd". The input is your text up to 4096 characters. The voice is one of the 8 presets. Use Bearer tts-... in the Authorization header.

Which SDKs are compatible?

The official OpenAI SDKs work. You only need to change the base_url to https://api.jbuzz.cc/v1 and use your CleoVoice API key. This allows you to use familiar code structures. Other HTTP libraries like requests or axios also work fine for direct JSON POST requests to the speech endpoint.

Do I need to install libraries?

If you use the OpenAI SDK, you need to install it via pip or npm. If you prefer plain HTTP, you can use any standard HTTP client library. No custom CleoVoice SDK is required. The API relies on standard JSON and HTTP protocols, so any tool that can send POST requests will work.

What is the character limit?

Each request supports up to 4096 characters of input text. If your text exceeds this limit, split it into parts of 4096 characters or less. Generate audio for each part and join the resulting audio files. Spaces and punctuation count toward the character limit and the billing calculation.

Can I use SSML?

No, SSML is not supported. The API accepts plain text input only. There are no SSML tags for pauses, emphasis, or pronunciation. You must rely on the natural prosody of the selected voice model. For custom pronunciation, you would need to adjust the text spelling manually before sending it to the API.

Is there a WebSocket option?

No, there is no WebSocket or streaming option. The API returns the complete audio file in the response after synthesis is finished. You cannot receive partial audio chunks in real-time. This means you wait for the full file to be generated before you can play or download the audio content.

How do I handle errors?

If synthesis fails, the charge is returned in full. Check the HTTP status code in the response. Common errors include invalid API keys, rate limits exceeded, or invalid voice names. Ensure your text is under 4096 characters and your voice parameter matches one of the 8 available presets. Review the response body for details.

What is the speed range?

You can adjust the speed parameter between 0.25 and 4.0. The default speed is 1.0. Lower values slow down the speech, while higher values speed it up. This is useful for making content more accessible for dyslexia-friendly reading. Adjusting speed does not affect the character count or pricing.

Do voices support all languages?

Voices support 23 specific languages, including English, Spanish, French, German, Japanese, and Arabic. Any voice can speak any of these languages. If you do not set the language field, it is guessed from the script. Latin text defaults to English. Languages like Vietnamese or Thai are not supported.

How fast is the API?

Typical speed is roughly real-time, about 25 characters per second of generation. Short phrases may take a few seconds. Requests are processed sequentially, so under load, you might experience queueing. For long texts, splitting into chunks and joining audio is efficient. Failed requests are free and the charge is returned in full.

Is there a demo endpoint?

There is no separate demo endpoint. You can test the API by sending a request to the main speech endpoint with a small amount of text. Use your free trial credit of $0.50 to generate audio. You can also check the /v1/voices endpoint to list available voices and their details before making a request.

Can I preview voices?

You can list all available voices, their languages, and formats using the GET /v1/voices endpoint. This returns details about each of the 8 presets. However, there is no built-in audio preview feature in the API. You must generate a short audio file to hear how each voice sounds with your specific text.

How is audio generated?

Audio is generated by sending your text to the TTS engine. The engine synthesizes the speech and returns an audio file in the requested format (mp3, wav, opus, flac, pcm). The audio contains an inaudible watermark marking it as synthetic. Input text is not stored or used for training after generation.

First request

curl

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

To start using CleoVoice, head to the /get-api-key/ page. You can sign up quickly using your Google account or by creating a standard email and password login. This step creates your account on jbuzz.cc and prepares your access credentials.

Once registered, you will see your unique API key on the dashboard. This key is the single token required to authenticate all your requests to the TTS engine.

Sign up on /get-api-key/

Sign up on /get-api-key/

Visit the sign-up page to create your account. You have two options: use Google for instant access, which includes a $0.50 trial credit valid for 7 days, or use an email and password setup. Email-based accounts do not receive the trial credit automatically.

  • Google sign-up includes $0.50 trial credit
  • Email/password sign-up has no trial credit
  • Accounts are specific to jbuzz.cc

Copy your Bearer token

Copy your Bearer token

After logging in, navigate to your dashboard to view your API key. Copy the string starting with tts-. You will use this value in the Authorization: Bearer header for every API call.

Your key is displayed alongside your current balance and character usage stats for easy reference.

  • Starts with tts-
  • Used in Authorization header
  • Visible on dashboard

One key per account

Each account is issued exactly one active API key. If you lose your key or suspect it is compromised, you can generate a new one at any time.

The old key stops working immediately when the new one is issued, ensuring no overlap in active credentials.

  • One active key per account
  • Regenerate anytime
  • Old key stops immediately

First request with curl

Sound wave illustration for: First request with curl

You can test the API immediately using curl without installing any SDKs. Send a POST request to https://api.jbuzz.cc/v1/audio/speech with your Bearer token and the text you want to convert. This method is perfect for quick verification before building your no-code automation.

The API returns the audio file directly in the response body. You can save this output to a local file using standard redirection. This simple workflow allows you to generate dyslexia-friendly audio files instantly for your content projects.

POST /v1/audio/speech

Send your request to the speech endpoint. Ensure your Bearer token is included in the Authorization header. The endpoint accepts standard JSON payloads and returns audio data in the requested format.

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

JSON body structure

The request body must contain the text input, the model identifier, and the voice preset. You can optionally specify the response format and playback speed. The API validates these fields before processing.

  • model: "tts-1" or "tts-1-hd"
  • input: Your text string (up to 4096 characters)
  • voice: One of the 8 presets (e.g., "aria", "nova")
  • response_format: "mp3", "wav", "opus", "flac", or "pcm"
  • speed: Optional, range 0.25–4.0

Required fields explained

The model field selects the synthesis engine. Both tts-1 and tts-1-hd use the same engine and pricing. The input field carries your text. The voice field determines the speaker's tone. Choose a preset that matches your content style, such as "sage" for instructional clarity.

  • model: Selects the engine quality.
  • input: The text to synthesize.
  • voice: Preset like "aria" or "felix".
  • response_format: Defines the output file type.

Using OpenAI SDK

Sound wave illustration for: Using OpenAI SDK

Since our API endpoint follows the same JSON structure as the OpenAI speech endpoint, you can leverage existing tools without learning a new format. This compatibility allows no-code creators to integrate text-to-speech into their workflows using familiar libraries.

Change base_url

Update your SDK configuration to point to our cloud infrastructure. Set the base URL to https://api.jbuzz.cc/v1 in your client settings. This directs all synthesis requests to our dedicated endpoint while keeping your existing code structure intact.

Use official SDKs

You can use the official OpenAI SDKs. Simply initialize the client with your CleoVoice API key and the adjusted base URL. This approach requires no custom wrappers or complex middleware.

Same request shape

The request body remains identical to the standard OpenAI format. Pass your model, input text, voice preset, and desired response_format. The SDK handles the serialization, sending your text to our TTS engine for audio generation.

Voices and parameters

Sound wave illustration for: Voices and parameters

CleoVoice offers eight distinct voice presets designed for clarity and accessibility, ensuring your text-to-speech output is easy to read. You can choose from female voices like Aria for warm narration or Nova for upbeat content, and male voices like Atlas for neutral news or Orion for deep documentary styles.

These voices are based on licensed recordings from LibriTTS-R (CC BY 4.0) and LibriVox public-domain audiobook readings.

8 voice presets

Select from eight distinct voices tailored for clear audio output. Female options include Aria (warm narrator), Nova (upbeat), Luna (storytelling), and Sage (instructional). Male options feature Felix (energetic promo), Milo (conversational), Atlas (neutral news), and Orion (deep documentary).

All voices support any of the 23 available languages, allowing you to maintain consistent tone across different linguistic content.

  • 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

Speed control (0.25–4.0)

Adjust the speech rate between 0.25 and 4.0 to match your audience's processing speed. This is particularly useful for dyslexia-friendly content, where slower speeds can improve comprehension.

Text is processed sequentially, so higher speeds may reduce generation time, but long texts are split into 4096-character chunks to ensure quality.

Language optional code

You can optionally specify a language using an ISO code. If omitted, the system guesses the language from the script, defaulting to English for Latin text.

Explicitly setting the language ensures accurate pronunciation, especially for non-English Latin-script texts like Dutch, German, or Spanish.

bullets

Response formats

Sound wave illustration for: Response formats

The API returns generated audio as a direct response body, allowing you to save the file locally or play it in a player. You can choose from five standard formats: mp3, wav, opus, flac, and pcm. This flexibility ensures compatibility with most no-code tools and accessibility players used by dyslexia-friendly content creators.

mp3, wav, opus, flac, pcm

Select your preferred format using the response_format field. MP3 offers small file sizes for web use, while WAV and FLAC provide lossless quality. OPUS is efficient for low-bandwidth scenarios, and PCM provides raw uncompressed audio data.

  • mp3: Standard compressed audio
  • wav: Lossless uncompressed audio
  • opus: Efficient low-bitrate codec
  • flac: Lossless compressed audio
  • pcm: Raw uncompressed samples

Audio file returned

The API response contains the binary audio data directly. There is no intermediate storage or link generation step. You receive the complete audio file immediately after synthesis completes, making it easy to integrate into workflows that require immediate playback or download.

No streaming support

The endpoint does not support WebSocket or chunked streaming. You must wait for the full audio file to generate before it is returned. This means short phrases may take a few seconds, and longer texts require splitting into chunks of 4096 characters and joining the resulting files.

Response formats

Rate limits and errors

Sound wave illustration for: Rate limits and errors

The API enforces a standard limit of 60 requests per minute for each active key, ensuring fair usage across the platform. If you exceed this threshold, the API returns a 429 status code to indicate that you have temporarily hit the ceiling.

60 requests per minute

Once your account is funded, you can send up to 60 synthesis requests every minute. This limit applies per key, so ensure you are monitoring your usage to avoid interruptions during batch processing.

10 requests before top-up

New accounts start with a restricted quota of only 10 requests per minute before the first top-up. This lower limit allows you to test the API with your trial credit while minimizing server load during the initial phase.

Handle 429 errors

When you receive a 429 error, it means you have exceeded your current rate limit. Simply wait a few seconds before retrying your request, or implement exponential backoff in your automation to smooth out burst traffic.

  • Check the response headers for retry-after timing if provided.
  • Implement automatic retry logic in your no-code workflow.
  • Monitor your usage dashboard to stay within safe limits.

Handling long texts

Sound wave illustration for: Handling long texts

The API accepts a maximum of 4,096 characters per request. To generate audio for longer content, you must split your text into chunks that fit this limit before sending them to the endpoint.

After synthesis, the service returns individual audio files for each chunk. You need to combine these files sequentially to reconstruct the full narration, ensuring the final output plays as a single, continuous file.

Split into 4096 chars

Divide your input text so that each segment does not exceed 4,096 characters. Spaces and punctuation count toward this limit. Send each chunk as a separate POST request to the speech endpoint.

Join audio files

The API returns an audio file for every request. Since the service does not support server-side concatenation, you must merge these files locally. Use a simple audio library to append the chunks in the correct order.

Process sequentially

Requests are processed one after another. Under load, a request may wait in a queue. Ensure your code handles the sequential nature of the generation to maintain the correct order of the final audio file.

Authentication details

Sound wave illustration for: Authentication details

Your API key is a Bearer token starting with tts-. Include it in the Authorization header of every request to authenticate your account and track usage against your balance.

Bearer token format

Copy the full string from your dashboard. It must be passed exactly as Authorization: Bearer tts-... without extra spaces or quotes around the token itself.

Key rotation process

Issue a new key from the dashboard whenever needed. You can rotate keys freely to maintain security without interrupting your workflow.

Old key stops immediately

When you generate a new key, the previous one becomes invalid instantly. Ensure your applications update to the new token before the old one expires or is revoked to avoid authentication errors.

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. This sequential handling ensures stability and consistent quality for every generated file, preventing server overload during peak usage times.

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. Python documentation
  3. openai-node on GitHub
  4. Node.js documentation
  5. Tether (USDT)
  6. W3C WAI: making audio and video accessible
  7. LibriTTS-R corpus (OpenSLR 141)
  8. MDN: Web Speech API
  9. curl documentation
  10. ISO 639 language codes
  11. IETF RFC 7845: Ogg Opus
  12. FFmpeg documentation

More on this site