Frequently asked questions
How do I generate an API key?
Visit the /get-api-key/ page to sign up using Google or an email and password. Once registered, your account dashboard displays your unique API key. You can issue a new key at any time, which immediately invalidates the previous one, ensuring secure access to the text-to-speech service for your projects.
What is the base URL for the API?
The API base URL is https://api.play799bet.com/v1. You use this endpoint for all requests, including POST for audio generation and GET for retrieving voice details. This base URL allows you to connect directly to the cloud service without needing additional routing configurations or custom domain setups.
Can I use the OpenAI SDK with this API?
Yes, the official OpenAI SDKs work by changing the base_url to https://api.play799bet.com/v1. You simply update the configuration in your SDK client to point to this endpoint. This allows you to use the same request shape and code structure as you would with the standard OpenAI speech endpoint.
What audio formats are supported?
The API supports mp3, wav, opus, flac, and pcm formats. You specify the desired format using the response_format field in your request body. This flexibility allows you to choose the best balance between file size and quality for your specific virtual tour or property listing audio needs.
How do I specify the language?
You can optionally provide an ISO language code in the request. If omitted, the system guesses the language from the script, defaulting to English for Latin text. For non-English Latin-script text, explicitly setting the language parameter ensures accurate synthesis, as any voice can speak any of the 23 supported languages.
What is the character limit per request?
Each request supports up to 4096 characters of input text. For longer texts, you must split the content into chunks of this size and join the resulting audio files. This limit applies to the input field, including spaces and punctuation, so plan your text segmentation accordingly for longer property descriptions.
How do I handle rate limits?
The API allows 60 requests per minute per key, or 10 per minute before your first top-up. Requests are processed sequentially, so high load may cause queuing. Monitor your usage via the dashboard to avoid throttling, especially when generating audio for multiple property listings simultaneously during peak hours.
What happens if the API returns an error?
If synthesis fails, the charge is returned in full. You do not lose credit for failed requests. This ensures that temporary issues or invalid inputs do not impact your billing balance. Always check the response status to determine if the audio generation was successful or if a retry is needed.
Is there an SDK for mobile apps?
No, there is no official mobile SDK. You can use the standard OpenAI SDK or plain HTTP requests by adjusting the base URL. This approach allows you to integrate the TTS service into any mobile app that supports standard HTTP clients, giving you full control over the implementation details.
Can I use SSML in the request?
No, the API does not support SSML. You send plain text in the input field. The system handles basic prosody automatically through voice presets and speed settings. If you need precise control over pronunciation or pauses, you must manage this within your text input or post-process the audio.
How do I rotate my API key?
You can issue a new API key at any time from your account dashboard. When you generate a new key, the old one stops working immediately. This allows you to rotate keys securely without downtime. Ensure your application updates to use the new key before the old one is invalidated.
What is the difference between tts-1 and tts-1-hd?
Both tts-1 and tts-1-hd use the same engine and have the same price. The model field accepts either value, but they use the same engine. You can choose either based on your preference or compatibility with existing SDK configurations, as there is no functional or cost difference between them.
Do I need to install any dependencies?
You need the standard OpenAI SDK or a basic HTTP library for your programming language. No proprietary dependencies are required. Simply install the standard library for your environment and configure the base URL. This keeps your project lightweight and avoids vendor lock-in, making integration straightforward for startup developers.
How do I calculate the cost of a request?
Pricing is $10 per 1 million characters, or $0.01 per 1,000 characters. Spaces and punctuation count toward the total. Failed requests are free. Calculate costs by counting characters in your input text and multiplying by the rate. This transparent model helps you budget accurately for large-scale voiceover projects.
First request
curl
curl https://api.play799bet.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.play799bet.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.play799bet.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 and Keys
Access the LodgeVoice API by generating a key on the /get-api-key/ dashboard. Sign up via Google or email to receive your unique identifier. Each account holds one active key; use it to authenticate all requests sent to the API base.
Generating your API key
Navigate to the dashboard to create your key. Google sign-in provides a $0.50 trial credit valid for 7 days. Email accounts start with zero balance. Keys are tied to the site account and displayed immediately after creation.
Bearer token format
Include the key in the HTTP header as Authorization: Bearer tts-.... Ensure no extra spaces or characters are added. The API validates this token for every POST request to /v1/audio/speech.
Rotating keys for security
Generate a new key from the dashboard at any time. The previous key stops working immediately upon issuance. Use this to revoke access if a key is exposed, without losing your balance or usage history.
Endpoint: Audio Speech Generation
To generate audio, send a POST request to https://api.play799bet.com/v1/audio/speech. The API accepts a JSON body containing your text and voice preferences, returning an audio file directly in the response. This endpoint mirrors the OpenAI speech interface, allowing you to use existing OpenAI SDKs by simply pointing the base URL to our domain.
POST /v1/audio/speech
Send your request to the endpoint using the Bearer token from your API key. The service processes the text and returns the synthesized audio file, ready for integration into your virtual property tour application.
JSON request body structure
The request body is a standard JSON object. It includes the model identifier, the text input, the chosen voice, and optional parameters for format and speed. Ensure the text does not exceed 4096 characters per request.
- model: "tts-1" or "tts-1-hd"
- input: string (max 4096 chars)
- voice: one of 8 presets
- response_format: mp3, wav, opus, flac, or pcm
- speed: 0.25 to 4.0
- language: optional ISO code
Required fields: model, input, voice
Three fields are mandatory: model, input, and voice. The model determines quality and price (both models share the same engine and price). The input field holds your property description text. The voice field selects one of the eight available presets, such as aria for a warm narrator or atlas for neutral news-style delivery.
Supported Models and Voices
Our API provides two models, tts-1 and tts-1-hd, which use the same underlying engine and pricing. Both accept text up to 4096 characters per request, allowing you to generate audio efficiently without worrying about model-specific feature differences.
tts-1 and tts-1-hd models
Both models use the same engine and price, but the documentation does not specify that they deliver identical audio quality. You can switch between them without changing your code, as the request structure remains the same. This simplifies integration for startups building virtual tours.
8 voice presets available
We offer eight distinct voices based on licensed recordings from LibriTTS-R and LibriVox. Each voice is designed for specific tones, from warm narration to energetic promos, ensuring your property descriptions sound professional.
- Female: aria, nova, luna, sage
- Male: felix, milo, atlas, orion
Selecting voices for tone
Choose aria for clear, warm narrations of property features, or felix for energetic promotional tours. Use atlas for neutral, news-style updates or sage for calm, instructional content. All voices support 23 languages, including English, Spanish, and German.
Audio Formats and Speed
The API accepts five audio formats: mp3, wav, opus, flac, and pcm. Selecting the right format balances file size and quality for your virtual property tours. MP3 offers efficient compression for web delivery, while WAV and FLAC provide lossless quality for archival or high-fidelity listings. PCM is available for raw, uncompressed data needs.
You can adjust the playback speed between 0.25 and 4.0. This allows you to speed up short property descriptions or slow down complex architectural details. The engine maintains natural intonation across the entire range, ensuring clarity whether the voice is rapid or measured.
MP3, WAV, Opus, FLAC, PCM
Choose MP3 for standard web players to minimize bandwidth. Use WAV or FLAC if you need lossless audio for professional presentations. Opus offers high quality at low bitrates, suitable for mobile tours. PCM provides raw audio data for custom processing pipelines.
- mp3: Compressed, widely supported
- wav: Lossless, uncompressed
- opus: Efficient compression
- flac: Lossless, archival quality
- pcm: Raw binary data
Speed range: 0.25 to 4.0
The speed parameter accepts values from 0.25 to 4.0. A value of 1.0 is normal speed. Values below 1.0 slow down the narration, useful for detailed property features. Values above 1.0 increase pace, suitable for quick overviews.
- 0.25: Very slow, clear enunciation
- 1.0: Normal speed
- 2.0: Double speed
- 4.0: Maximum speed
Choosing format for web players
For most web-based virtual tours, MP3 is recommended due to its small file size and broad compatibility. If your platform supports it, Opus provides excellent quality with even smaller files. Use WAV or FLAC only when specific quality requirements dictate lossless audio, keeping in mind the larger file sizes.
Language Handling
LodgeVoice supports 23 languages, including Arabic, Chinese, French, and Swahili. Any voice can speak any supported language, allowing you to localize property listings efficiently without managing multiple voice models.
ISO code specification
Specify the language parameter with an ISO 639-1 code (e.g., es, de) to ensure consistent pronunciation. This is critical when the voice preset might otherwise default to English for Latin-script text.
- Supported: Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, Turkish
Auto-detection for Latin scripts
If you omit the language field, the API guesses the language based on the input script. Latin text defaults to English, which may cause mispronunciation for non-English content like German or Spanish listings.
Forcing language for mixed content
For mixed-language descriptions, always set the language code explicitly. This prevents the auto-detector from incorrectly switching between languages mid-sentence, ensuring clear, professional voiceovers for international real estate tours.
- Not supported: Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, Bengali

Rate Limits and Quotas
Rate limits protect the synthesis queue from overload. Each API key allows 60 requests per minute under normal conditions. This ensures fair access to the shared engine. Requests are processed sequentially, so higher volume may increase latency during peak usage.
When you first create an account, your limit starts at 10 requests per minute. This lower threshold applies until you make your first top-up. After funding your account, the limit automatically increases to the full 60 requests per minute.
60 requests per minute limit
The standard limit is 60 requests per minute per key. This applies to all voice models and formats. If you exceed this, subsequent requests will queue or fail.
Long texts require splitting into 4096-character chunks. Each chunk counts as one request. Plan your batching strategy to stay within the 60-request window.
- Limit resets every 60 seconds.
- Applies per API key, not per IP.
- Queued requests wait for available slots.
10 requests per minute initially
New accounts start with a 10 requests per minute limit. This applies immediately upon key generation. The limit remains in effect until you add funds.
Top-up via USDT on the TRON network (TRC-20) removes this restriction. Credits are applied within minutes. Once funded, your limit increases to 60 requests per minute.
- No manual upgrade required.
- Funding triggers limit increase.
- Applies to all new accounts.
Handling rate limit errors
Exceeding the limit returns a 429 Too Many Requests error. Your code should handle this by waiting before retrying. Implement exponential backoff for robust integration.
Failed requests (e.g., invalid voice) do not count against your limit. Requests are processed one after another, so under load a request may wait in a queue. Failed requests are free. Monitor your usage dashboard for real-time stats.
- Return 429 status code.
- Retry after delay.
- No charge for 429 errors.
Error Codes and Responses
The API returns standard HTTP status codes to indicate request outcomes. Understanding these responses helps you handle failures gracefully in your virtual tour workflows without wasting credits on failed synthesis attempts.
Each error response includes a JSON body with a code and message field, providing specific details about what went wrong, such as invalid character limits or unsupported voice parameters.
400 Bad Request
This status indicates that your request body is malformed or contains invalid data. Common causes include exceeding the 4096-character input limit, using an invalid voice name, or providing a speed value outside the 0.25–4.0 range.
Failed requests are free, so you are not charged for characters processed in these errors. Review the error message to correct the input format before retrying.
- Ensure input text is under 4096 characters.
- Verify voice names match the 8 presets.
- Check that speed is between 0.25 and 4.0.
429 Too Many Requests
This error occurs when you exceed the rate limit of 60 requests per minute for active keys. New accounts start with a lower limit of 10 requests per minute until the first top-up is processed.
Implement exponential backoff in your application to handle these retries automatically. The response will include a Retry-After header indicating how long to wait before the next attempt.
500 Internal Server Error
A 500 error indicates a temporary issue on the server side, such as high load causing queue delays or a transient engine failure. These errors are rare but may occur during peak usage times.
Since the request failed, no characters are consumed. You can safely retry the request after a short delay. If the issue persists, contact support via email.
Example Requests (Curl and SDK)
The API accepts standard JSON bodies, allowing immediate integration with existing tools. You can test the endpoint quickly using a command-line request or integrate it directly into your application logic using the OpenAI SDK or native fetch methods.
These examples demonstrate how to pass the required parameters, including the model, voice preset, and input text, ensuring you receive the audio file in your preferred format and speed settings.
Basic curl command
Use this command to verify your key and receive an MP3 file.
curl -X POST https://api.play799bet.com/v1/audio/speech \ -H "Authorization: Bearer tts-..." \ -H "Content-Type: application/json" \ -d '{"model": "tts-1", "input": "Welcome to the property.", "voice": "milo", "response_format": "mp3"}' -o audio.mp3
OpenAI Python SDK integration
Install the official SDK and configure the base URL to point to our API. This allows you to use familiar methods while accessing our engine.
import openai client = openai.OpenAI(base_url="https://api.play799bet.com/v1", api_key="tts-...") speech_file = client.audio.speech.create( model="tts-1", voice="aria", input="Virtual tour starting now." )
JavaScript fetch example
For web applications, use the native fetch API to send requests and handle the binary response as a blob.
fetch('https://api.play799bet.com/v1/audio/speech', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer tts-...' }, body: JSON.stringify({ model: 'tts-1', voice: 'nova', input: 'Explore this listing.' }) })
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. For real estate apps, fast generation times ensure smooth user experiences when loading tour pages.
23 languages
Any voice speaks any of these languages.
