How to Use Our TTS API for Restaurant Menus?

By DiningVoices editorial team · Updated 2026-11-18

This guide explains how to integrate the DiningVoices text-to-speech API into your restaurant menu systems, helping you build accessible dining experiences for visually impaired customers and hands-free kitchen workflows. We cover the technical steps to convert menu text into natural-sounding audio, leveraging voices licensed from public domain audiobooks to support 23 languages.

You will learn how to structure API requests, handle long menus by splitting text into manageable chunks, and manage language settings for accurate pronunciation. The page also details pricing based on character count, rate limits, and data privacy practices, providing a clear, specific workflow for indie developers building voice interfaces for dining halls and delivery apps.

How to Use Our TTS API for Restaurant Menus?

Frequently asked questions

What is text-to-speech for menus?

It is a cloud API that converts menu text into audio files via a simple POST request. You send text, and receive an audio file in formats like MP3 or WAV. This allows dining apps and kiosks to read items aloud, enhancing accessibility for customers without requiring complex audio production workflows.

Which voice is best for menus?

No single voice is best; choose based on your brand tone. Aria offers a warm, clear narrator style, while Nova provides a bright, upbeat delivery. For a calm, instructional tone, use Sage. Felix works well for energetic promo items, and Atlas provides a neutral, news-like delivery suitable for clear, straightforward menu reading. Each voice suits different dining hall or delivery app aesthetics.

How do I handle long menus?

Split the text into parts of up to 4096 characters per request. Generate audio for each part individually, then join the resulting audio files. This ensures reliable synthesis, as each request stays within the character limit and avoids processing timeouts for large menu lists.

Do I need an internet connection?

Yes, because this is a cloud API. You must send text to our endpoint and receive the audio file over the internet. There is no local SDK or offline mode. Your application needs connectivity to make POST requests to https://api.dd12login.com/v1/audio/speech.

Can I use this for drive-thrus?

Yes, the API supports 23 languages and various audio formats. You can generate audio files for order prompts or menu items. Since requests are processed sequentially, ensure your implementation handles queueing if multiple devices send requests simultaneously to avoid delays during peak hours.

How accurate is the pronunciation?

Voices are based on licensed recordings from LibriTTS-R and LibriVox. The system guesses language from the script, defaulting to English for Latin text. For non-English Latin text, set the language parameter explicitly. Pronunciation follows the licensed voice patterns without custom lexicons or phoneme dictionaries.

Does it support dialects?

It supports 23 specific languages but does not offer distinct dialect options. You can set the language via an ISO code, but all voices speak the same standard version of each language. There is no support for regional accents or dialect variations within those languages.

Can I change the speed?

Yes, you can adjust the speed between 0.25 and 4.0. This allows you to slow down complex menu items or speed up simple lists. Send the speed parameter in your JSON body alongside the text, voice, and model to customize the playback rate.

Is the audio MP3 or WAV?

You choose the format. Supported response formats include MP3, WAV, OPUS, FLAC, and PCM. Specify your preferred format in the request. MP3 is efficient for web delivery, while WAV offers uncompressed quality. The choice depends on your application’s storage and playback requirements.

Do I need to pay per menu?

No, you pay per character processed, at $10 per 1 million characters. Failed requests are free. You can top up with USDT on TRON. There are no monthly plans or per-menu fees. You only pay for the characters in the text you send.

Can I use my own voice?

No, custom voice cloning is not offered. You must choose from the eight preset voices: Aria, Nova, Luna, Sage, Felix, Milo, Atlas, or Orion. These are based on licensed recordings. You cannot upload your own audio to create a custom voice model.

Is there a character limit?

Yes, each request supports up to 4096 characters. Spaces and punctuation count toward this limit. If your menu text exceeds this, split it into multiple requests. Each request generates a separate audio file that you can concatenate for the final output.

How do I install the SDK?

We do not provide an official SDK. Use the OpenAI SDK by changing the base_url to https://api.dd12login.com/v1. Pass your API key in the Authorization header. Alternatively, use plain HTTP POST requests to the /v1/audio/speech endpoint with your JSON body.

What if the API fails?

If synthesis fails, the charge is returned in full. Requests are processed sequentially, so under load, a request may wait in a queue. If you encounter errors, check your API key and input format. Support is available via email only.

Why Read Menus Aloud?

Sound wave illustration for: Why Read Menus Aloud?

Reading menus aloud transforms static text into an accessible audio experience. For visually impaired diners, this removes the barrier of small print and complex layouts, allowing independent navigation of dining options without assistance. It also supports hands-free ordering in busy kitchens where chefs need clear audio instructions without looking at screens.

Multilingual support ensures tourists understand daily specials and ingredients regardless of their native language. By converting menu text to speech, restaurants provide consistent, clear information that adapts to the listener’s needs, reducing ordering errors and enhancing the overall dining experience for diverse customer bases.

Accessibility for visually impaired

Visual menus require close attention and steady hands. TTS allows users to listen while navigating or holding drinks, as the audio is returned as a file that can be played by the client application. This independence improves the dining experience for those with low vision or reading difficulties.

Audio menus can be integrated into table QR codes or digital kiosks. Users simply tap to hear the full menu read aloud, ensuring they don’t miss items due to visual fatigue.

  • Supports screen readers and direct audio playback
  • Reduces dependency on staff for menu explanation

Hands-free ordering in kitchens

Chefs often have wet or dirty hands, making touch screens difficult. Audio instructions allow staff to hear orders clearly without looking away from their tasks. This improves efficiency during peak hours.

Kitchen display systems can use TTS to announce new orders or special instructions. This reduces the need for constant visual monitoring of order tickets, allowing staff to focus on food preparation.

  • Clear audio for noisy environments
  • Reduces visual distraction for kitchen staff

Multilingual support for tourists

Tourists may struggle with local dialects or complex menu terms. TTS provides consistent pronunciation for all languages, ensuring accurate understanding of ingredients and cooking methods. This reduces ordering mistakes and enhances customer satisfaction.

Restaurants can offer menus in multiple languages without hiring multilingual staff for every shift. The API handles 23 languages, providing a scalable solution for international visitors.

  • Supports 23 languages including English, French, and Japanese
  • Consistent pronunciation across all menu items

Choosing the Right Voice

Sound wave illustration for: Choosing the Right Voice

Selecting the right voice depends on your menu’s context. Aria delivers warm, clear narration ideal for daily specials, while Sage offers instructional clarity for dietary instructions. Felix adds energetic punch to promotional items.

Each preset is based on licensed recordings from LibriTTS-R (CC BY 4.0) and LibriVox public-domain audiobook readings. Choose based on whether you prioritize warmth, clarity, or energy in your dining app.

Aria for warm, clear narration

Aria’s tone is best for standard menu reading. Her voice provides a warm, clear narration that feels inviting to customers. Use her for main course descriptions or general menu items where clarity and comfort are key.

Her voice style aligns well with traditional dining experiences, offering a consistent and pleasant listening experience for visually impaired users or those using hands-free ordering in kitchens.

  • Warm, clear narration
  • Ideal for main courses
  • Consistent tone for general menus

Sage for instructional clarity

Sage is designed for instructional clarity. Her calm, instructional tone works well for dietary restrictions, allergen warnings, or preparation details. Use her when precise information delivery is critical.

Her voice ensures that important details like ‘gluten-free’ or ‘contains nuts’ are heard clearly, reducing errors in kitchen orders and improving accessibility for customers with visual impairments.

  • Calm, instructional tone
  • Best for allergens and diets
  • Clear information delivery

Felix for energetic promotions

Felix brings an energetic, promo-focused voice to your menu. Use him for daily specials, limited-time offers, or promotional items that need to stand out.

His upbeat tone can drive engagement and highlight deals effectively. Perfect for apps where you want to encourage customers to try new or discounted items.

  • Energetic, promo-focused
  • Ideal for daily specials
  • Upbeat tone for deals

Technical Setup

Sound wave illustration for: Technical Setup

The API requires a valid bearer token for authentication. You can generate or retrieve your key from the /get-api-key/ dashboard, where it is displayed alongside your current balance and usage statistics. This single key authenticates all requests to the speech endpoint.

Get your API key from the dashboard

Navigate to the dashboard to view your active key. You can issue a new key at any time; the previous one becomes invalid immediately. Store this key securely in your environment variables to avoid exposing it in client-side code.

  • View key and balance instantly
  • Revoke and regenerate keys on demand
  • One active key per account

Install the OpenAI SDK

Use the OpenAI SDK for Python or Node.js. It provides a convenient interface for sending POST requests and handling responses without writing raw HTTP code from scratch.

Set the base URL

Configure the SDK’s base URL to https://api.dd12login.com/v1. This redirects standard method calls to our infrastructure while maintaining compatibility with existing OpenAI SDK logic.

  • Base URL: https://api.dd12login.com/v1
  • Compatible with official OpenAI SDKs

Sending Text to the API

Sound wave illustration for: Sending Text to the API

To generate speech, send a POST request to https://api.dd12login.com/v1/audio/speech. The API expects a JSON body containing the text, model, voice, and output format. This structure mirrors the OpenAI speech endpoint, allowing you to use standard SDKs by simply adjusting the base URL.

Ensure your input text does not exceed 4096 characters. The API processes requests sequentially, so complex menus may require splitting logic to maintain performance.

Structure the JSON body

Construct a JSON object with the input field containing your menu text. Include the model ("tts-1" or "tts-1-hd") and voice identifier. The request must include your API key in the Authorization header as Bearer tts-....

  • input: The raw text string (max 4096 chars)
  • model: "tts-1" or "tts-1-hd"
  • voice: One of the 8 available presets
  • response_format: Output audio format

Select the model and voice

Choose between "tts-1" and "tts-1-hd" for identical pricing and engine quality. Select a voice that matches your dining context: use Aria for warm narration or Sage for clear instructional reading of allergen warnings. Felix works well for energetic daily specials.

  • Use Aria for warm, clear narration
  • Use Sage for instructional clarity
  • Use Felix for energetic promotions

Specify the audio format

Define the response_format as mp3, wav, opus, flac, or pcm. MP3 is recommended for general web playback due to its balance of quality and file size. The API returns the audio file directly in the response body.

  • mp3: Standard web compatibility
  • wav: High quality, larger files
  • opus: Efficient compression
  • flac: Lossless audio
  • pcm: Raw uncompressed data

Handling Long Menus

Sound wave illustration for: Handling Long Menus

Restaurant menus often exceed the 4096-character limit per request. You must split your menu text into chunks that fit within this constraint before sending them to the API.

Split text into 4096 char chunks

Divide your menu string into segments of up to 4096 characters. Spaces and punctuation count toward this limit. Ensure each chunk is a complete sentence or phrase to avoid awkward audio cuts.

Generate audio for each part

Send each chunk as a separate POST request to /v1/audio/speech. The API returns an audio file for each segment. Process requests sequentially to respect the 60 requests per minute rate limit.

Join audio files for playback

Concatenate the returned audio files in order. This creates a single continuous audio file for your voice interface. Use formats like MP3 or WAV for easy integration with your dining hall’s playback system.

Managing Language Settings

Sound wave illustration for: Managing Language Settings

Language handling in your menu API depends on whether the input script matches the target voice. The system guesses the language from the script, defaulting to English for Latin characters. This works well for standard English menus but may misinterpret other Latin-script languages.

For non-English Latin text, you must explicitly set the language parameter. Without this, the API assumes English, leading to unnatural pronunciation. This ensures accurate delivery for menus in French, German, or Spanish in tourist-heavy areas.

Set ISO code for non-English

Always specify the ISO language code (e.g., fr, de, es) in your JSON body for non-English Latin text. This overrides the default English guess and ensures the voice uses the correct phonetics.

This is critical for menus containing localized dish names or descriptions that do not follow English syntax. Without it, the TTS engine will read French or German text with an English accent.

  • Supported languages include French, German, Spanish, Italian, and more.
  • The language field is optional but recommended for non-English Latin scripts.

Use auto-detection for Latin

If your menu is entirely in English, you can omit the language field. The API detects Latin script and defaults to English voice pronunciation.

This simplifies integration for domestic restaurants that only serve English-speaking customers, reducing the number of required API parameters.

Ensure correct pronunciation

Any voice can speak any of the 23 supported languages, allowing flexible voice selection regardless of menu language. For example, use the 'aria' voice for a warm, clear narration in Japanese or the 'atlas' voice for neutral news-style delivery in Russian.

Test your specific menu items to verify that proper nouns and dish names are pronounced correctly. If issues arise, check that the ISO code matches the actual language of the text input.

  • Voices are language-agnostic; any voice can speak any supported language.
  • Verify pronunciation for unique dish names or brand-specific terms during testing.
Managing Language Settings

Testing the Integration

Sound wave illustration for: Testing the Integration

Testing ensures your menu audio meets quality standards before going live. Start by using the $0.50 free trial credit, which covers approximately 50,000 characters, to verify basic functionality without financial risk.

This trial period lasts seven days, giving you ample time to refine your implementation. Focus on clear audio output and accurate voice selection to enhance the dining experience for customers.

Use the free trial credit

Sign in via Google to receive the $0.50 trial credit immediately. This allows you to test the API without entering payment details. Use this credit to generate sample audio files for your most complex menu items, ensuring the system handles special characters and punctuation correctly.

If you created an account with email and password, you start without trial credit. Consider signing in with Google if you want to test the free tier first.

  • Credit amount: $0.50
  • Approximate characters: 50,000
  • Validity: 7 days
  • Activation: Google sign-in

Check audio quality

Listen to generated files for clarity and natural flow. Verify that the voice selected matches your brand identity, such as using Aria for warm narration or Sage for instructional clarity. Ensure the audio format (mp3, wav, opus, flac, pcm) is compatible with your player.

Remember that every file contains an inaudible watermark marking it as synthetic speech. This does not affect quality but identifies the content as AI-generated.

  • Formats: mp3, wav, opus, flac, pcm
  • Inaudible watermark included
  • Verify player compatibility

Verify speed and tone

Adjust the speed parameter (0.25–4.0) to match the dining pace. Test with typical menu lengths to ensure the audio plays within a reasonable timeframe. Short phrases may take a few seconds to generate, while longer texts are processed at roughly real-time speed (about 25 characters per second).

Monitor the tone for consistency. Ensure that the voice remains clear and engaging throughout the entire menu reading process, avoiding monotony or rushed delivery.

  • Speed range: 0.25–4.0
  • Generation time: varies by length
  • Tone consistency check

Pricing for Menu Reading

Sound wave illustration for: Pricing for Menu Reading

DiningVoices charges $0.01 per 1,000 characters, including spaces and punctuation. This flat rate applies to all voices and models, making it easy to predict costs for static menu descriptions. Failed requests incur no charge, ensuring you only pay for successful audio generation.

For a standard menu with 5,000 characters, the cost is approximately $0.05. Daily specials often add 500–1,000 characters. Budgeting for high-traffic periods requires accounting for repeated plays by customers, but the low per-character cost keeps expenses minimal even with frequent requests.

Cost per character

The API charges $0.01 per 1,000 characters. Spaces and punctuation count toward this total. Failed synthesis attempts are free, so you only pay for usable audio files.

  • - $0.01 per 1,000 characters
  • - Includes spaces and punctuation
  • - Free retries on failure

Estimate menu length

A typical restaurant menu contains 3,000–8,000 characters. Use the /v1/voices endpoint to check character limits. Split texts longer than 4,096 characters into parts to ensure smooth playback.

  • - Average menu: 3,000–8,000 chars
  • - Max 4,096 chars per request
  • - Split long menus automatically

Budget for daily specials

Daily specials add variable text volume. Update the API key’s balance before peak hours. No monthly plans or minimum spend apply, so you only pay for what you use.

  • - No monthly plans
  • - Pay-as-you-go model
  • - Balance never expires

Deployment Considerations

Sound wave illustration for: Deployment Considerations

Deploying your menu TTS integration requires careful attention to rate limits and failure states. With a limit of 60 requests per minute, you must implement queuing to prevent throttling during peak hours. If synthesis fails, the charge is returned in full, so ensure your application logs these events for accurate billing reconciliation without losing user trust.

Rate limits management

The API allows 60 requests per minute per key, but new accounts start with only 10 requests per minute until the first top-up. Plan your audio generation batches accordingly, perhaps pre-generating daily specials during off-peak hours. Implement exponential backoff in your client code to handle temporary 429 errors gracefully without interrupting the customer experience.

  • Monitor your usage dashboard to stay within the 60 req/min limit.
  • Pre-generate static menu items during low-traffic periods to conserve API quota.
  • Use a single API key; issuing a new one immediately invalidates the old one.

Error handling for failures

Synthesis failures are free, but they still consume a request. Ensure your application retries failed requests with a short delay, as the queue processing may have been delayed under load. Log the error response to distinguish between transient network issues and permanent input errors, such as exceeding the 4096 character limit per chunk.

  • Implement retry logic with jitter for transient 5xx errors.
  • Check for 429 Too Many Requests and back off appropriately.
  • Verify input text length before sending to avoid silent truncation or errors.

User experience optimization

Since requests are processed sequentially, long menus may experience latency. Split text into 4096-character chunks and play them as they become available to reduce perceived wait time. Use the speed parameter (0.25–4.0) to adjust playback for clarity, especially in noisy dining environments. Avoid streaming audio, as the API returns complete files, and plan your UI to buffer the first chunk quickly.

  • Adjust speed for noisy environments or slower-speaking users.
  • Display a loading indicator while the API processes the next chunk.

Data Privacy

Sound wave illustration for: Data Privacy

When you integrate DiningVoices into your menu systems, you retain full control over your data’s lifecycle. We operate on a minimal retention model designed specifically for indie developers who value privacy without sacrificing functionality.

Text not used for training

The text you send to our API is used exclusively to generate the audio file. We do not consume your menu content, daily specials, or ingredient lists to train our neural networks. Your unique voice assets remain yours.

Audio not stored

Once the synthesis is complete, the generated audio file is returned in the response and is not stored on our servers. This ensures that your specific menu readings are transient, reducing long-term data exposure.

Metadata for billing only

We keep request metadata—such as timestamp, character count, and status—strictly for accurate billing and troubleshooting. This data does not include the actual text or audio content, keeping your operational details clean and simple.

Support and Updates

Sound wave illustration for: Support and Updates

Support is handled exclusively via email. There is no live chat or phone line, so responses depend on your query volume. This approach keeps overhead low, allowing us to maintain a simple, cost-effective API without enterprise-grade SLAs or guaranteed response times.

Contact via email

Send your questions to the support address found on the /contact/ page. Please include your API key and a clear description of the issue. Since we do not offer priority support tiers, all inquiries are treated with equal attention, but response times may vary.

Check for voice updates

The eight voices (Aria, Nova, Luna, Sage, Felix, Milo, Atlas, Orion) are stable presets. To verify the current list and available formats, call the GET /v1/voices endpoint. You do not need to wait for changelog announcements; the endpoint provides the definitive, real-time list of supported voices.

Monitor API status

We do not provide a public status page or uptime guarantees. You can monitor availability by sending test requests to POST /v1/audio/speech. If requests fail, check your authentication and rate limits (60 requests per minute). Failed requests are free, so testing is risk-free.

  • Use GET /v1/models to verify endpoint health.
  • Check rate limits if you see 429 errors.
  • No SLA means no guaranteed 99.9% uptime.

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. We built a cozy virtual dining hall where players can craft their own culinary experiences and share stories with friends.

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. TRON developer hub: TRC-20
  4. Python documentation
  5. ISO 639 language codes
  6. LibriTTS-R paper (arXiv 2305.18802)
  7. Creative Commons Attribution 4.0
  8. openai-node on GitHub
  9. MDN: Web Speech API
  10. Node.js documentation
  11. LibriTTS-R corpus (OpenSLR 141)
  12. Tether (USDT)

More on this site