Create High-Quality Speech Audio Using Our Text-to-Speech API

By MenuVoice editorial team · Updated 2026-11-18

Welcome to the MenuVoice developer documentation. This guide walks you through integrating our text-to-speech API into your restaurant startup’s digital menu or ordering system. You will learn how to generate clear, natural-sounding audio files for daily specials, order confirmations, and menu descriptions using a simple REST endpoint.

We designed this API for developers who want to add voice capabilities without managing complex infrastructure. The endpoint is fully compatible with OpenAI SDKs, so you can use your preferred client library by simply updating the base URL. Follow these steps to get your API key, make your first request, and start converting text to audio in minutes.

Create High-Quality Speech Audio Using Our Text-to-Speech API

Frequently asked questions

How do I get an API key?

Sign up on our /get-api-key/ page using Google or an email and password. Accounts are specific to this site. You will receive one active API key, which you can regenerate at any time. The old key stops working immediately upon issuing a new one.

What is the base URL for the API?

The API base URL is https://api.uuu88ok.com/v1. You use this base URL with the official OpenAI SDKs by configuring the client to point here. Your requests are sent to https://api.uuu88ok.com/v1/audio/speech for audio generation.

Which SDKs are compatible?

The official OpenAI SDKs work perfectly. You only need to change the base_url to https://api.uuu88ok.com/v1 and provide your site-specific key. We do not have our own official SDK, so we rely on this standard OpenAI compatibility.

What audio formats are supported?

You can choose from mp3, wav, opus, flac, or pcm. Specify your preferred format in the response_format field of your request. The API returns the generated audio file in the format you selected during the synthesis process.

How do I handle errors?

Failed requests are free; if synthesis fails, the charge is returned in full. You should check the HTTP response status code. If an error occurs, no characters are deducted from your balance, ensuring you only pay for successful generations.

What are the rate limits?

You are limited to 60 requests per minute per key. Before your first top-up, this limit is 10 requests per minute. If you exceed this, requests may wait in a queue or be rejected until the window resets.

Which voices are available?

We offer eight presets: aria, nova, luna, sage, felix, milo, atlas, and orion. These voices are based on licensed recordings from LibriTTS-R and LibriVox. Each voice has a distinct tone, from warm narrators to deep documentary styles.

Is there documentation for the API?

Yes, you are reading it. This documentation covers integration, voices, and pricing. For technical details, you can also check the GET /v1/voices and GET /v1/models endpoints. We provide clear examples to help you integrate the TTS API quickly.

How do I integrate the API?

Send a POST request to /v1/audio/speech with your text and parameters. Use the OpenAI SDK by setting the base URL to ours. Provide your API key in the Authorization header. The API returns the audio file directly in the response.

What is the request format?

Send a JSON body to the speech endpoint. Required fields include model (tts-1 or tts-1-hd), input (text up to 4096 characters), and voice. Optional fields include response_format, speed (0.25–4.0), and language. The structure matches the OpenAI speech endpoint exactly.

How do I specify a language?

Pass the ISO code in the language field. If omitted, the system guesses the language from the script, defaulting to English for Latin text. For non-English Latin text, always set the language explicitly to ensure accurate pronunciation.

Can I use custom voices?

No. We offer eight fixed presets: aria, nova, luna, sage, felix, milo, atlas, and orion. We do not offer custom voice cloning, uploading your own voice, or voice design. You must choose from the available licensed recordings.

How do I check my balance?

Visit the /get-api-key/ page after signing in. Your dashboard displays your current balance, trial status, characters left, and usage history. You can also manage your API key and see your remaining credit directly on this page.

What happens if I exceed the rate limit?

Requests may be queued or rejected if you exceed 60 requests per minute. Before your first top-up, the limit is 10 requests per minute. Exceeding the limit does not incur extra charges, but your requests may experience delays.

First request

curl

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

Get Your API Key

Sound wave illustration for: Get Your API Key

Sign up for an account on uuu88ok.com using your Google account or email. This creates a unique key tied to your startup kitchen’s billing and usage.

Once registered, access your dashboard at /get-api-key/ to retrieve your active API key. You can issue a new key anytime, which immediately invalidates the old one.

Sign Up

Sign Up

Visit the /get-api-key/ page and click "Sign in with Google" or enter your email and password. Accounts are specific to this site, ensuring your restaurant app’s voice integration is tracked separately.

  • Google or email/password authentication

Get Key

Get Key

After signing in, your dashboard displays your unique API key starting with tts-. Copy this key securely; it is the only credential needed for all API requests.

Use Key

Use Key

Include your key in the Authorization: Bearer <your-key> header for every request. If you lose or compromise a key, generate a new one from the dashboard to immediately stop the old one.

First Request

Sound wave illustration for: First Request

Generate audio instantly by sending a POST request to our TTS endpoint. This first step demonstrates how to convert text into speech using the standard format compatible with OpenAI SDKs.

The request requires a valid API key and defines the model, voice, and text input. Below is a concrete example using curl for immediate testing.

curl Example

Use this command to generate a short menu item description. Replace YOUR_API_KEY with your actual key from the dashboard.

  • curl -X POST 'https://api.uuu88ok.com/v1/audio/speech' \ -H 'Authorization: Bearer YOUR_API_KEY' \ -H 'Content-Type: application/json' \ -d '{"model": "tts-1", "input": "Today's special is fresh pasta.", "voice": "nova", "response_format": "mp3"}'

JSON Body

The request body is a standard JSON object. Specify the model (tts-1 or tts-1-hd), the text input (up to 4096 characters), and the desired voice preset.

  • model: "tts-1" or "tts-1-hd"
  • input: Your menu text or order confirmation
  • voice: e.g., "nova", "aria", "atlas"
  • response_format: "mp3", "wav", "opus", "flac", or "pcm"
  • speed: Optional, default 1.0 (range 0.25–4.0)

Response

On success, the API returns an audio file in the format you requested. The response body contains the binary audio data directly, ready to be saved or played in your restaurant app.

If the synthesis fails (e.g., invalid text or key), you will receive an error JSON with a code and message. Failed requests are free.

OpenAI SDK

Sound wave illustration for: OpenAI SDK

Connect your restaurant app to our TTS engine by pointing the OpenAI SDK to our base URL. This allows you to use familiar libraries while leveraging our specific voice presets and pricing structure.

Base URL

Set the base_url to https://api.uuu88ok.com/v1. This single change redirects standard TTS requests to our infrastructure, maintaining full compatibility with existing OpenAI SDK implementations.

SDK Usage

Initialize the client with your tts-... API key. Call the /audio/speech endpoint with your menu text, desired voice (e.g., nova for upbeat specials), and format. The SDK handles the JSON serialization and audio response retrieval seamlessly.

Compatibility

Since we mirror the OpenAI request shape, any official OpenAI SDK works out of the box. You can switch between tts-1 and tts-1-hd models using the same code structure, adjusting only the model parameter.

Audio Formats

Sound wave illustration for: Audio Formats

Choose the output format that best fits your restaurant app’s playback requirements. Our API supports MP3, WAV, OPUS, FLAC, and PCM, giving you control over file size and quality.

MP3

MP3 is a supported format and offers a balance between file size and audio quality. It is suitable for streaming daily specials or menu items on mobile devices where bandwidth matters.

WAV

WAV provides uncompressed, high-fidelity audio. Use this format if your kitchen display system requires raw audio data for local processing or if you need maximum compatibility with legacy hardware.

OPUS

OPUS delivers excellent quality at very low bitrates. It is perfect for low-bandwidth environments or when you need to minimize data usage for customers on mobile networks.

Error Handling

Sound wave illustration for: Error Handling

When your text-to-speech requests encounter issues, understanding the response helps you fix them quickly. Most failures are due to invalid input or temporary network hiccups, so checking the error message is the best first step.

Common Errors

A 400 Bad Request usually means the text exceeds 4096 characters or the voice ID is invalid. A 401 Unauthorized indicates an expired or incorrect API key. Always verify your input field length and ensure you are using the correct model string.

  • 400: Invalid input or missing fields
  • 401: Invalid or revoked API key
  • 429: Rate limit exceeded

Rate Limits

You are limited to 60 requests per minute per key, or 10 per minute before your first top-up. If you hit this limit, your request will be rejected with a 429 status code. Failed requests do not count toward your character usage or balance.

Troubleshooting

If audio generation takes longer than expected, your request might be queued. Ensure your text fits within the 4096 character limit. For long menus, split the text into smaller parts and join the resulting audio files manually.

  • Check character count (< 4096)
  • Verify API key validity
  • Split long texts manually

Rate Limits

Sound wave illustration for: Rate Limits

Rate limits ensure fair usage across all startup kitchens. Your API key determines your throughput, which scales based on your account status and top-up history. Understanding these limits helps you manage audio generation for menus and order confirmations without unexpected delays.

We structure limits to support bursty traffic common in restaurant apps, such as sending daily specials or multiple menu items at once. Below 10 requests per minute, you may experience slight queuing during peak times.

60 Requests/Min

Once you top up your account, you can send up to 60 requests per minute. This is sufficient for most restaurant apps, allowing you to generate audio for extensive menus or frequent order updates without hitting hard caps.

10 Requests/Min

Before your first top-up, or if your account is in trial mode, you are limited to 10 requests per minute. This limit applies to all keys under your account and helps maintain stability for new startup kitchens testing the API.

Requests are processed sequentially. If you exceed this limit, subsequent requests may wait in a queue or be rejected.

  • Applies to trial accounts.

Queueing

When you exceed your per-minute limit, requests enter a processing queue. Requests are handled one after another, so longer texts may wait briefly. Short phrases typically take a few seconds to generate, while longer menus may take longer due to real-time processing speeds.

You do not lose characters or credits while waiting in the queue. Each request is charged when it is processed.

  • Sequential processing ensures fairness.
  • No data loss while queued.

Troubleshooting

If you receive a 429 error, you have exceeded your limit. Wait a minute before retrying. For persistent issues, check your key status or top up your account to increase your limit to 60 requests per minute.

  • Check for 429 status codes.
  • Wait 60 seconds before retrying.

Voices & Languages

Sound wave illustration for: Voices & Languages

Voice selection is central to how your restaurant’s audio sounds. Choose from eight presets that range from warm narrators to energetic promo voices. Each voice is built from licensed recordings and carries a synthetic watermark.

All voices support any of our 23 languages. If you do not set the language, the system guesses from the text script. For non-English Latin text, always set the language explicitly to avoid English defaults.

8 Presets

Female voices: aria (warm, clear narrator), nova (bright, upbeat), luna (soft, storytelling), sage (calm, instructional).

Male voices: felix (energetic, promo), milo (friendly, conversational), atlas (neutral, news), orion (deep, documentary).

  • Based on LibriTTS-R (CC BY 4.0) and LibriVox public-domain readings.
  • All voices speak all 23 supported languages.

23 Languages

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

If the language field is empty, the API guesses the language from the script. Latin script defaults to English.

  • Not supported: Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, Bengali.

Voice Selection

Pass the voice name in the voice field of your request. Use tts-1 or tts-1-hd for the model.

All voices have the same price and capabilities. Select based on the tone of your menu items or announcements.

  • No emotion tags or custom cloning available.

Data Usage

Sound wave illustration for: Data Usage

Your input text is used strictly to generate the audio file and is never used to train our models. Once the audio is delivered in the response, the original text is not stored on our servers, ensuring your menu content remains private during processing.

No Training

We do not use your menu text or order confirmations to improve our voice engines. Your data stays isolated to the specific request, meaning your unique restaurant content does not contribute to the training dataset.

No Storage

Generated audio is returned directly in the API response and is not retained. We do not keep copies of your audio files, so you maintain full control over your digital assets.

Metadata Only

We retain minimal metadata such as request time, character count, and status for billing purposes. This ensures accurate charging without storing the actual content of your menu items or special offers.

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. Our platform streamlines the dining experience, connecting hungry patrons with exceptional restaurants and vibrant dining halls for a memorable culinary journey.

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. curl documentation
  4. LibriVox public-domain audiobooks
  5. LibriTTS-R paper (arXiv 2305.18802)
  6. Creative Commons Attribution 4.0
  7. Tether (USDT)
  8. FFmpeg documentation
  9. Node.js documentation
  10. openai-node on GitHub
  11. Python documentation
  12. MDN: Web Speech API

More on this site