Frequently asked questions
How do I change the base_url for the OpenAI SDK?
Update your SDK configuration to point to https://api.fb777usa.com/v1. This allows you to use the official OpenAI SDKs directly by adjusting the base_url parameter. Ensure your Authorization header uses your Bearer key. The request body structure remains identical to the standard OpenAI speech endpoint, supporting model, input, voice, response_format, speed, and language fields.
What is the maximum input length per request?
Each request supports a maximum of 4096 characters. This limit includes spaces and punctuation. For longer texts, such as full menu descriptions, split the content into parts of up to 4096 characters. Generate audio for each part separately and join the resulting audio files to create the complete voiceover for your digital signage.
Does the API support streaming audio?
No, the API does not support streaming, WebSocket connections, or real-time partial audio. It returns the audio file in the response after synthesis is finished. Requests are processed sequentially, so under load, a request may wait in a queue. Typical speed is roughly real time, but short phrases take a few seconds.
Can I specify a language for Latin-script text?
Yes, you can set the optional language parameter to an ISO code. If omitted, the system guesses the language, defaulting to English for Latin-script text. For non-English Latin-script text, such as French or Spanish menus, explicitly set the language parameter to ensure accurate pronunciation and avoid incorrect English voice synthesis.
How do I handle rate limit errors?
The limit is 60 requests per minute per key (10 before the first top-up). If you exceed this, requests may queue or fail. A simple immediate or short-delay retry is sufficient to handle temporary congestion. Since requests are processed sequentially, longer texts split into parts may also experience delays during high load periods.
Is the API compatible with Node.js?
Yes. Use the official OpenAI SDK or plain HTTP. Set base_url to https://api.fb777usa.com/v1 and provide your Bearer key. No custom SDK is required. Send POST requests to /v1/audio/speech with a JSON body containing model, input, voice, and format.
What happens if I exceed the character limit?
Requests exceeding 4096 characters will fail. To handle longer texts, split your input into chunks of up to 4096 characters. Generate audio for each chunk separately. Then, join the resulting audio files to create the final voiceover. This workflow ensures all content is processed successfully without truncation or errors.
Do I need to install extra libraries?
No, you do not need extra libraries specific to this API. Use the standard OpenAI SDK or plain HTTP libraries available in your language. The API follows the same request shape as OpenAI, so standard tools work by simply changing the base_url. No custom SDK or mobile library is required.
First request
curl
curl https://api.fb777usa.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.mp3Python (openai)
from openai import OpenAI
client = OpenAI(base_url="https://api.fb777usa.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.fb777usa.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 | |
|---|---|
aria | female |
nova | female |
luna | female |
sage | female |
felix | male |
milo | male |
atlas | male |
orion | male |
| language | |
|---|---|
ar | العربية |
zh | 中文 |
da | Dansk |
nl | Nederlands |
en | English |
fi | Suomi |
fr | Français |
de | Deutsch |
el | Ελληνικά |
he | עברית |
hi | हिन्दी |
it | Italiano |
ja | 日本語 |
ko | 한국어 |
ms | Bahasa Melayu |
no | Norsk |
pl | Polski |
pt | Português |
ru | Русский |
es | Español |
sw | Kiswahili |
sv | Svenska |
tr | Türkçe |
Authentication
Authentication for the DineRead TTS API relies on a single active Bearer token per account. You generate this key via the /get-api-key/ dashboard. Include it in the HTTP header as Authorization: Bearer tts-... for every request to the API base https://api.fb777usa.com/v1. This token authorizes your agency’s account to consume characters from your balance.
Bearer Token Setup
Obtain your key by signing in with Google or email on the /get-api-key/ page. The dashboard displays your current key, allowing immediate integration into your voiceover pipeline. Use this token in all API calls to identify your agency’s account and deduct characters from your balance.
- Format:
Authorization: Bearer tts-<your_key> - One active key per account
- View key details on /get-api-key/
Key Rotation
You can issue a new key at any time via the dashboard. When a new key is generated, the previous one stops working immediately. There is no overlap period; ensure your voiceover automation updates to the new token promptly to avoid authentication errors during restaurant menu updates.
- Old key stops at once
- No guaranteed zero-downtime overlap
- Update headers immediately
Security Best Practices
Treat your Bearer token as a secret credential. Rotate it regularly to minimize risk if it is exposed in logs or code repositories. Since only one key is active, rotating invalidates the old token instantly, securing your account against unauthorized usage without waiting for a session timeout.
- Rotate keys regularly
- Invalidate old tokens instantly
- Store in environment variables
Endpoint Overview
The API provides three core endpoints for integrating text-to-speech into restaurant management systems. The primary endpoint generates audio from text, while the auxiliary endpoints expose available voices and model metadata to simplify client configuration for multilingual digital signage and menu announcements.
POST /v1/audio/speech
This endpoint accepts text input and returns synthesized audio files. It supports standard request fields including model selection, voice preset, response format, and speed adjustments. The engine processes up to 4,096 characters per request, making it suitable for individual menu items or short promotional messages.
GET /v1/voices
This endpoint returns the full list of available voices, supported languages, audio formats, and the fixed pricing structure. It does not dynamically display current pricing tiers; the cost remains constant at $0.01 per 1,000 characters regardless of the voice selected.
GET /v1/models
Use this endpoint to retrieve available model identifiers, such as tts-1 and tts-1-hd. Both models use the same underlying engine and pricing, allowing agencies to switch between standard and high-definition outputs without changing the billing logic.

Request Parameters
Configure the synthesis engine by selecting either "tts-1" or "tts-1-hd"; both utilize the identical underlying engine and pricing structure. The critical parameter is input, which accepts the script text. Each request is strictly limited to 4096 characters, including spaces and punctuation. For longer menu descriptions or accessibility scripts, you must split the text into chunks of this size and concatenate the resulting audio files manually.
Model Selection (tts-1/tts-1-hd)
Both model identifiers trigger the same synthesis engine with no difference in audio quality or generation speed. The tts-1-hd label is retained primarily for SDK compatibility with OpenAI’s standard interface. Choose based on your existing codebase conventions rather than expecting distinct audio characteristics between the two options.
Input Text Limits
Send text via the input field, capped at 4096 characters per request. The API does not auto-truncate; exceeding this limit returns an error. For extensive digital signage scripts, split your content into 4096-character segments. Process each segment individually and join the returned audio files to ensure seamless playback across your restaurant displays.
- Maximum 4096 characters per request
- Spaces and punctuation count toward the limit
- Manual splitting required for longer texts
Voice and Language Codes
Specify one of eight preset voices via the voice parameter and an optional ISO 639-1 language code. While any voice can speak any of the 23 supported languages, you must explicitly set the language field for non-English Latin-script text. If omitted, the system guesses English, which may mispronounce names or menu items in other languages.
Unsupported languages include Vietnamese, Thai, and Ukrainian. Ensure your digital menu content uses only the 23 supported languages to avoid fallback pronunciation errors.
- Supported: Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, Turkish
- Default language is English if not specified
Response Formats
The API returns audio files in five supported formats: MP3, WAV, OPUS, FLAC, and PCM. Each format offers different trade-offs between file size and quality, allowing you to choose the best fit for your restaurant’s digital signage or accessibility workflows.
MP3 Compression
MP3 is the default format for most use cases. It provides a good balance between file size and audio quality, making it ideal for web-based digital menus and quick-loading accessibility overlays in dining halls.
WAV for Quality
WAV files are uncompressed and offer the highest fidelity. Use this format when you need pristine audio quality for professional voiceovers or when processing the audio further in post-production.
OPUS and FLAC Options
OPUS provides efficient compression for storage-constrained environments, reducing bandwidth usage without significant quality loss. FLAC offers lossless compression, preserving all audio details while keeping file sizes smaller than WAV.
Rate Limits
Rate limits are enforced per API key, with a standard throughput of 60 requests per minute. This capacity supports steady generation for digital signage or menu audio. Failed requests do not incur charges, though they may still count toward the request limit depending on implementation.
60 Requests Per Minute
Once your account has a valid balance, you can send up to 60 synthesis requests every minute. This allows agencies to process bulk menu updates or accessibility scripts efficiently without manual throttling.
10 Requests Before Top-Up
New API keys start with a limit of 10 requests per minute, regardless of whether the account was created via Google sign-up or email. This lower limit applies until the first top-up is processed. The $0.50 trial credit does not exempt accounts from this initial throttle.
- Limit resets immediately after the first successful top-up.
- Applies to all keys, not just trial accounts.
Queue Behavior
Requests are processed sequentially. Under load, additional requests may wait in a queue before synthesis begins. Typical generation speed is roughly real-time (25 characters per second), meaning short phrases may take a few seconds to complete.
Plan your integration to handle slight delays during high-volume periods, especially when generating longer texts split into multiple 4096-character chunks.

Error Handling
When a request fails, the charge is returned in full. This applies regardless of whether the failure stems from a server error or an invalid input format. You are not billed for audio that is not successfully generated.
Common Error Codes
Standard HTTP error codes indicate the nature of the failure. A 4xx error typically means the request was malformed, such as exceeding the 4096-character limit or providing an invalid voice name. A 5xx error suggests a temporary server-side issue.
Retry Strategy
Requests are processed sequentially, so under load a request may wait in a queue. If you receive a 5xx error, wait briefly and retry. There is no need for complex exponential backoff; a simple immediate or short-delay retry is sufficient to handle temporary congestion.
Failed Request Refunds
If synthesis fails completely, the charge is returned in full. This ensures you only pay for successfully generated audio files. Failed requests are free, so you can test your integration confidently without worrying about unexpected costs for errors.
Code Examples
Integrating DineRead’s TTS API into your restaurant voiceover workflow is straightforward, leveraging familiar OpenAI-compatible tools. Use the provided examples to generate audio for digital signage or accessibility menus directly from your application stack.
Each example demonstrates a standard synthesis request. Replace the placeholder API key with your credential from /get-api-key/. The response returns an audio file matching the specified format, ready for immediate playback or storage.
cURL Command
Send a POST request with your text and voice selection. The output file must match the response format; use audio.mp3 for MP3 output.
```bash curl https://api.fb777usa.com/v1/audio/speech \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "tts-1", "input": "Welcome to DineRead.", "voice": "nova", "response_format": "mp3"}' \ --output audio.mp3 ```
OpenAI SDK Python
Install the official OpenAI SDK. Configure the base URL to point to DineRead’s API endpoint. This allows you to use standard Python libraries for voice generation.
```python import openai client = openai.OpenAI(base_url="https://api.fb777usa.com/v1", api_key="YOUR_API_KEY") response = client.audio.speech.create( model="tts-1", voice="nova", input="Menu available now." ) response.stream_to_file("output.mp3") ```
OpenAI SDK JavaScript
Initialize the client with the DineRead base URL. The JavaScript SDK handles the streaming or file output similarly to the Python example, ensuring consistent integration across web and node environments.
```javascript import OpenAI from "openai"; const openai = new OpenAI({ baseURL: "https://api.fb777usa.com/v1", apiKey: "YOUR_API_KEY" }); const mp3 = await openai.audio.speech.create({ model: "tts-1", voice: "nova", input: "Table 5 is ready." }); ```

Voice Selection Guide
Selecting the right voice ensures your restaurant’s audio content resonates with diners. Our eight presets cover narration, promotional energy, and calm instruction, allowing agencies to match the tone of digital signage, menu descriptions, or accessibility overlays precisely.
8 Preset Voices
Choose from four female voices: Aria (warm narrator), Nova (upbeat), Luna (storytelling), and Sage (instructional). Male options include Felix (energetic promos), Milo (conversational), Atlas (neutral news), and Orion (deep documentary).
All voices originate from licensed LibriTTS-R recordings (CC BY 4.0), derived from LibriVox public-domain audiobook readings. Each generated audio file includes an inaudible watermark to identify synthetic speech.
- 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
Voice Characteristics
Voices are optimized for clarity and natural pacing in commercial settings. Short menu items render quickly, while longer descriptions may require splitting text into 4096-character chunks to maintain speed and quality.
Language Compatibility
The API supports 23 languages including English, Spanish, French, German, Chinese, Japanese, and Arabic. Any voice can speak any supported language, ensuring consistent quality across multilingual menus.
Set the language parameter explicitly for non-English Latin-script text to avoid defaulting to English. Unsupported languages include Vietnamese, Thai, and Ukrainian.
- Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, Turkish
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Our venues offer seamless dining experiences tailored to elevate your agency's corporate events.
23 languages
Any voice speaks any of these languages.
