API Documentation for Restaurant Voice Integration

By SavorSpeak team · Updated 2026-11-19

This documentation provides the technical reference for integrating SavorSpeak’s text-to-speech API into your restaurant operations. It covers authentication, request structures, and voice selection for generating clear audio files from menus, updates, and staff communications. The guide is designed for engineering teams building internal tools or customer-facing audio features.

You will find concrete examples for the OpenAI-compatible SDK, details on the eight voice presets, and specifications for supported audio formats. The page explains rate limits, error handling, and language detection to help you deploy reliable synthetic voice solutions for noisy dining halls and back-of-house environments.

API Documentation for Restaurant Voice Integration

Frequently asked questions

What is the base URL for the API?

The API base URL is https://api.18vk.info/v1. You send POST requests to https://api.18vk.info/v1/audio/speech to generate audio. This endpoint accepts JSON bodies containing your text, voice selection, and format preferences for restaurant menu items or staff updates.

How do I authenticate my requests?

Include your API key in the Authorization header as a Bearer token: Authorization: Bearer tts-... . You receive one active key per account. If needed, you can issue a new key at any time, which immediately invalidates the previous one.

What formats are supported for audio output?

You can request audio in mp3, wav, opus, flac, or pcm formats. Choose the format that best fits your playback system. MP3 is efficient for web delivery, while WAV or FLAC may be preferred for high-quality internal back-of-house announcements.

What is the character limit per request?

Each request supports up to 4096 characters of input text. This limit applies to the entire text payload, including spaces and punctuation. For longer menu descriptions, you must split the text into multiple requests and join the resulting audio files.

How many requests can I make per minute?

The rate limit is 60 requests per minute per key. If your account has not been topped up yet, the limit is 10 requests per minute. Exceeding this limit may result in temporary delays or rejection of your synthesis requests.

Do I need to install a specific SDK?

No specific SDK is required. You can use any HTTP client to send POST requests to the endpoint. The API uses standard JSON bodies, making it easy to integrate with existing restaurant management systems or internal tools using simple code.

Can I use the OpenAI SDK with this API?

Yes, the official OpenAI SDKs work by changing the base_url to https://api.18vk.info/v1 and using your SavorSpeak key. This allows you to use familiar code structures for generating speech without rewriting your integration logic for our specific endpoint.

How do I specify the language?

Pass the optional 'language' field with an ISO code in your request body. If omitted, the system guesses the language from the script, defaulting to English for Latin text. Explicitly setting the language ensures accurate pronunciation for non-English menu items.

What happens if I exceed the rate limit?

Requests may be processed in a queue or rejected if the limit is exceeded. The system processes requests sequentially. Under load, you might experience delays. Ensure your application handles rate limit errors gracefully and retries after a brief pause.

Are errors returned in JSON format?

Standard HTTP error responses are returned when requests fail. Errors are returned as standard HTTP codes with a JSON body containing the error type and message. Failed synthesis requests are free, and any charges are returned in full if synthesis fails.

Can I send multiple texts in one request?

No, each request handles a single text input up to 4096 characters. To generate audio for multiple menu sections, you must send separate requests for each text segment and then join the resulting audio files in your application logic.

How do I handle long menu texts?

Split long texts into parts of up to 4096 characters. Send each part as a separate request to the speech endpoint. Once you receive the audio files for each part, join them in your application to create the complete audio file.

Is the API synchronous or asynchronous?

The API is synchronous. You send a request and wait for the audio file to be generated and returned in the response. Processing happens sequentially, so under load, requests may wait in a queue before being processed.

Do I need to manage audio file storage?

Generated audio is returned in the response and not stored by the API. You are responsible for storing the audio files if needed. Input text is used only for synthesis and is not stored for training purposes.

First request

curl

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

Sound wave illustration for: Authentication

Secure access to the SavorSpeak API relies on a single Bearer token per account. This key authenticates all requests to the speech endpoint, ensuring that only authorized restaurant systems can generate audio for menus or staff updates.

Each account maintains one active key at a time. You can manage this key directly from your dashboard, where usage statistics and character limits are also displayed.

Bearer Token Usage

Bearer Token Usage

Include your API key in the HTTP header as Authorization: Bearer tts-.... This format is compatible with standard HTTP clients and the OpenAI SDK, allowing you to integrate voice generation into existing restaurant management software without complex protocol changes.

  • Header: Authorization: Bearer tts-<your_key>
  • Format: Bearer token string

Key Management

Key Management

Your dashboard displays the current key and usage metrics. Since only one key is active per account, ensure your kitchen displays or ordering systems are configured to use the most recent token to avoid service interruptions.

Key Rotation

You can issue a new key at any time via the dashboard. The previous key stops working immediately, providing a secure way to rotate credentials without downtime if you suspect a leak or need to reset access for a specific device.

  • Issue new key anytime
  • Old key invalid immediately

Speech Endpoint

Sound wave illustration for: Speech Endpoint

The POST /v1/audio/speech endpoint accepts your text and returns synthesized audio. It mirrors the OpenAI speech endpoint structure, allowing you to use standard HTTP clients or the OpenAI SDK by adjusting the base URL. Send a JSON payload containing the model, input text, voice selection, and desired audio format.

POST /v1/audio/speech

Send requests to https://api.18vk.info/v1/audio/speech. The endpoint processes text up to 4096 characters per call. For longer menus or staff updates, split the text into chunks and join the resulting audio files. Responses are returned as direct audio files, suitable for immediate playback in dining halls or back-of-house systems.

JSON Body Structure

The request body must include the model ("tts-1" or "tts-1-hd"), the input text, and the voice preset. You can also specify response_format (mp3, wav, opus, flac, pcm), speed (0.25–4.0), and an optional language ISO code. Authentication is handled via Authorization: Bearer <key> in the header.

  • model: "tts-1" or "tts-1-hd"
  • input: string (max 4096 chars)
  • voice: one of 8 presets
  • response_format: mp3, wav, opus, flac, pcm
  • speed: 0.25–4.0
  • language: optional ISO code

Input Text Limit

Each request supports a maximum of 4096 characters. Spaces and punctuation count toward this limit. If your menu description exceeds this length, divide the text into smaller segments. Synthesize each part separately and concatenate the audio files to create the final output. This ensures consistent audio quality and manageable request sizes.

Supported Voices

Sound wave illustration for: Supported Voices

Our API provides eight distinct voice presets designed to handle the diverse audio needs of restaurant environments, from clear menu announcements to engaging staff updates. Each voice is generated from licensed recordings, ensuring natural-sounding synthetic speech that remains intelligible even in noisy dining halls or busy back-of-house areas.

The eight presets include female voices (aria, nova, luna, sage) and male voices (felix, milo, atlas, orion). You can select any voice for any of the 23 supported languages, allowing you to maintain a consistent audio brand across multilingual menus or diverse staff teams without needing multiple voice actors.

8 Voice Presets

Each voice is based on licensed recordings from LibriTTS-R (CC BY 4.0), sourced from LibriVox public-domain audiobook readings. Every generated audio file carries an inaudible watermark to mark it as synthetic speech, ensuring transparency while maintaining audio quality.

The eight presets are designed for specific use cases: aria for warm narration, nova for upbeat updates, luna for soft storytelling, sage for calm instructions, felix for energetic promos, milo for friendly conversations, atlas for neutral news, and orion for deep documentary-style audio.

  • 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 Selection Parameters

Select any of the eight voices for any of the 23 supported languages. If the language field is not set, the system guesses the language from the script, defaulting to English for Latin-script text. For non-English Latin-script text, explicitly set the language parameter to ensure accurate pronunciation.

All voices support the full range of 23 languages, including Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, and Turkish. This flexibility allows you to create multilingual menus or staff communications with a single API key.

Voice Characteristics

Voices are optimized for clarity and natural flow, making them suitable for reading menus, announcements, or internal communications. The synthetic nature of the audio ensures consistency, with no variation between readings, which is critical for large restaurant teams needing reliable audio content.

Each voice has a distinct tone, from the energetic promo style of felix to the neutral news delivery of atlas. This variety allows you to match the audio to the context, whether it’s a lively menu description or a calm staff instruction.

Audio Formats

Sound wave illustration for: Audio Formats

Our API returns audio files in multiple formats to suit different playback environments. Choose the format that best matches your kitchen displays, PA systems, or staff devices.

Each format balances file size and quality. MP3 offers small files for easy sharing. WAV provides lossless quality for high-fidelity speakers. Opus and FLAC offer efficient compression with excellent sound.

Select the format via the response_format field in your request. The API returns the audio file directly in the response body, ready for immediate playback or storage.

MP3 Support

MP3 is the default format for most use cases. It provides good audio quality with small file sizes, making it ideal for quick delivery to mobile devices or web players.

Use MP3 when you need to minimize bandwidth usage or when storing many audio files. It is widely supported across all modern browsers and devices.

  • Default format for most integrations
  • Small file size for fast delivery
  • Universal compatibility with web and mobile players

WAV Support

WAV provides uncompressed, lossless audio quality. This is ideal for high-fidelity PA systems in dining halls where sound clarity is critical.

Use WAV when audio quality is prioritized over file size. It ensures no degradation occurs during playback, preserving the natural tone of the synthetic voices.

  • Uncompressed, lossless quality
  • Ideal for high-fidelity PA systems
  • Preserves natural voice tone

Opus and FLAC Options

Opus offers efficient compression with high quality, suitable for low-bandwidth environments. FLAC provides lossless compression, reducing file size while maintaining perfect audio fidelity.

Choose Opus for efficient storage and streaming. Choose FLAC when you need lossless quality but want to save space compared to WAV.

  • Opus: efficient compression for streaming
  • FLAC: lossless compression for storage
  • Both maintain high audio quality

Rate Limits

Sound wave illustration for: Rate Limits

Understanding rate limits is essential for maintaining consistent audio generation during busy service hours. Our API processes requests sequentially, meaning each synthesis job waits for the previous one to complete before starting. This ensures stable performance but requires careful planning for high-volume tasks like daily menu updates or staff briefings.

For most restaurant operations, the standard limit of 60 requests per minute is sufficient. However, if you are generating many short announcements simultaneously, you might hit the queue. Knowing these constraints helps you schedule bulk audio creation during off-peak hours to avoid delays.

60 Requests Per Minute

Each API key allows up to 60 requests per minute. This limit applies to all users once their account is active. If you exceed this threshold, additional requests will queue until slots become available. Under heavy load, processing may take longer than usual, as requests are handled one after another.

This limit ensures fair usage for all customers and maintains audio quality. It is suitable for generating menu items, special offers, and internal communications without interruption. Monitor your usage dashboard to track your consumption and plan accordingly.

Initial Limit

New accounts start with a lower limit of 10 requests per minute. This applies until you make your first top-up. The initial limit helps verify your integration works correctly before scaling up your usage. It is ideal for testing voice presets and audio formats with small batches of text.

Once you add funds via USDT, your limit increases to the standard 60 requests per minute immediately. This change happens automatically after the transfer is confirmed, usually within minutes. You can start generating audio at full speed without any further configuration or waiting period.

Limit Increase

The rate limit is 60 requests per minute per key (10 per minute before the first top-up). The rate limit is fixed at 60 requests per minute (10 before the first top-up) regardless of balance. The rate limit does not scale with your balance; it remains 60 requests per minute (10 before the first top-up). This flexibility supports large restaurant chains with multiple locations.

To increase your limit, simply top up your account using USDT on the TRON network. The minimum top-up is $5, and the increase is applied automatically. You do not need to contact support or wait for manual approval. Your new limit will be reflected in your dashboard immediately after the transaction is confirmed.

Rate Limits

Error Handling

Sound wave illustration for: Error Handling

Errors are returned as standard HTTP codes with a JSON body containing the error type and message. Failed synthesis requests are free, meaning the charge is returned in full if the process fails before completion.

Common Error Codes

A 401 Unauthorized response occurs if the Bearer token is invalid or missing. A 429 Too Many Requests indicates you have exceeded the 60 requests per minute limit per key.

  • 400: Invalid JSON or missing required fields
  • 401: Authentication failure
  • 429: Rate limit exceeded
  • 500: Internal server error during synthesis

Retry Logic

Implement exponential backoff for 429 and 500 errors. Since requests are processed sequentially, under load a request may wait in a queue, causing temporary timeouts. Wait briefly before retrying to avoid immediate rejections.

  • Start with a 1-second delay
  • Double the delay for each consecutive retry
  • Stop after 5 attempts

Character Count Errors

Each request accepts up to 4096 characters. If your menu item or announcement exceeds this limit, split the text into parts, generate each audio file, and join them programmatically. Spaces and punctuation count toward this limit.

  • Count characters before sending
  • Split text at natural pauses
  • Rejoin audio files on the client side

Language Detection

Sound wave illustration for: Language Detection

Understanding language nuances ensures your menu items and staff announcements sound natural in any dining hall. Our API handles language detection automatically, but you can also specify it manually for precision.

This section explains how to manage language settings to avoid mispronunciations, ensuring clear audio for both front-of-house and back-of-house teams.

Auto-Detection

The API automatically detects the language based on the script of your input text. For example, text in Cyrillic is identified as Russian, while Greek script is identified as Greek.

This feature works for the 23 supported languages, including Arabic, Chinese, Japanese, and Swahili, without requiring you to specify the language code in every request.

  • Supports all 23 listed languages
  • Uses script analysis for detection
  • No manual code needed for most cases

Manual Language Code

You can explicitly set the language parameter using an ISO 639-1 code (e.g., 'en', 'es', 'fr') to override auto-detection. This is useful when the text might be ambiguous or when you want to ensure a specific voice uses the correct accent.

For instance, if your menu includes French phrases in an English document, setting language: 'fr' ensures the voice pronounces them correctly.

  • Use ISO 639-1 codes
  • Override auto-detection when needed
  • Ensures consistent accent

Latin Script Default

If the language parameter is not set and the text is in Latin script, the API defaults to English. This means that text in Spanish, Italian, or German written in Latin characters will be read with an English accent unless you specify the language.

To avoid this, always set the language parameter for non-English Latin-script texts, such as 'es' for Spanish or 'de' for German.

  • Latin script defaults to English
  • Set language for non-English Latin text
  • Avoids English accent on foreign words

SDK Integration

Sound wave illustration for: SDK Integration

You can use the official OpenAI SDKs for Python or Node.js by simply changing the base URL to https://api.18vk.info/v1. Pass your API key as tts-... in the Authorization header. This works because our endpoint accepts the same JSON structure as the OpenAI speech endpoint, requiring no custom client code.

We do not provide our own mobile SDK or WordPress plugin. For complex integrations, use plain HTTP requests or the standard OpenAI libraries. This approach ensures compatibility with your existing infrastructure without needing to download a proprietary client.

OpenAI SDK Compatibility

The endpoint shape matches the OpenAI speech API exactly. You can send model, input, voice, response_format, and speed parameters using the same library methods you already know. This reduces development time for restaurant IT teams who already use these tools.

  • Use openai Python or Node.js library
  • Same JSON structure as OpenAI
  • No custom client required

Base URL Change

Set your SDK's base_url to https://api.18vk.info/v1. This directs all requests to our servers instead of OpenAI’s. Ensure your API key starts with tts- to authenticate correctly against the SavorSpeak service.

Code Examples

Here is a minimal Python example using the OpenAI SDK to generate audio for a menu update. Change the base URL and use your tts-... key. The response returns the audio file directly, which you can save or stream to your back-of-house devices.

You can also use curl for quick tests. Send a POST request with the JSON body containing your text and voice selection. The API returns the audio file in the specified format, such as MP3 or WAV, ready for playback.

  • Set base_url to https://api.18vk.info/v1
  • Use tts-... API key
  • Send JSON body with input and voice

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. Gather feedback from front-of-house and back-of-house teams.

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. Tether (USDT)
  3. Creative Commons Attribution 4.0
  4. openai-node on GitHub
  5. ISO 639 language codes
  6. LibriTTS-R paper (arXiv 2305.18802)
  7. openai-python on GitHub
  8. TRON developer hub: TRC-20
  9. OpenAI API reference: create speech
  10. MDN: Web Speech API
  11. Python documentation
  12. IETF RFC 7845: Ogg Opus

More on this site