Frequently asked questions
Do I need the OpenAI SDK?
No, you do not need the OpenAI SDK. You can use any HTTP client or the official OpenAI SDK by changing the base_url to https://api.sp999.info/v1. The request shape matches the OpenAI speech endpoint, so you can easily adapt existing code by providing your SpatialVoice API key in the Authorization header.
Can I use cURL for requests?
Yes, cURL is fully supported. You can send a POST request to https://api.sp999.info/v1/audio/speech with a JSON body containing your model, input text, voice, and response format. The documentation page provides a ready-to-use curl example that you can copy and paste directly into your terminal for immediate testing.
How do I specify the language?
Include the optional 'language' field in your JSON body with a two-letter ISO code, such as 'en' for English or 'de' for German. If omitted, the system guesses the language from the script, defaulting to English for Latin text. Explicitly setting it ensures accurate pronunciation for non-English texts in Latin script.
What is the max text length?
Each request supports up to 4096 characters of input text, including spaces and punctuation. For longer property descriptions or tour scripts, you must split the text into parts of this size, generate audio for each part, and then join the resulting audio files to create a complete narration track.
Is the response format JSON?
No, the primary response is the audio file itself in the format you requested, such as mp3, wav, opus, flac, or pcm. While you send a JSON body, the endpoint returns the binary audio data directly. You may receive JSON metadata for errors or status updates, but the core output is audio.
Can I stream the audio?
No, streaming is not supported. The API returns the complete audio file after synthesis is finished. Requests are processed sequentially, so under load, a request may wait in a queue. You receive the full file once generation is complete, rather than receiving partial audio chunks in real-time.
Does it support SSML?
No, SSML is not supported. You send plain text input, and the system generates natural-sounding narration based on the selected voice preset. There are no tags for controlling pauses, emphasis, or pronunciation. You can adjust the overall speed using the 'speed' parameter, but fine-grained control is not available.
How do I check my usage?
Visit the /get-api-key/ page on your account dashboard. It displays your current balance, trial status, characters remaining, and detailed usage history. You can also monitor your active API key and see how many characters you have consumed since your last top-up or trial period began.
Can I regenerate a voice?
You can generate new audio files by sending new requests with the same or different parameters. Each request is charged based on the character count. If a synthesis fails, the charge is returned in full, allowing you to retry without cost. There is no limit to how many times you can generate.
Is there a delay in processing?
Yes, processing can take time. Typical speed is roughly real-time, meaning 25 characters of text per second of audio. Short phrases may take a few seconds, but under load, requests are processed sequentially and may wait in a queue. Plan your bulk generation workflows accordingly to avoid bottlenecks.
Do I need to split long texts?
Yes, if your text exceeds 4096 characters, you must split it into smaller parts. Generate audio for each segment separately and then join the resulting audio files. This ensures the API processes each chunk within its limit while maintaining the continuity of your property tour narration.
What happens on server error?
If synthesis fails, the charge is returned in full to your account balance. You can retry the request without losing credits. The system does not store the generated audio, so you must save it immediately upon receipt. Failed requests are free, ensuring you only pay for successful audio generation.
Can I use my own domain?
Is the API versioned?
Yes, the API is versioned. The current endpoint is /v1/audio/speech. This structure allows for future updates while maintaining compatibility. You should pin your integration to this version or update your base_url if a new version is introduced, ensuring your real estate audio generation remains stable.
First request
curl
curl https://api.sp999.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.mp3Python (openai)
from openai import OpenAI
client = OpenAI(base_url="https://api.sp999.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.sp999.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 | |
|---|---|
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
Secure your API access with a Bearer token passed in the Authorization header. This single key authenticates all requests to the Speech endpoint, ensuring your account's credits are used correctly for each voice-over generation.
Use Bearer token in header
Include the header Authorization: Bearer tts-... in every HTTP request. The token links your API calls directly to your account balance and usage limits, allowing seamless integration with standard HTTP clients and the OpenAI SDK.
One active key per account
Each account maintains exactly one active API key at any time. This simplifies security management for real estate agencies, as you only need to manage a single credential across all your virtual tour production pipelines.
Revoke old key instantly
Issue a new key at any time from your dashboard. The previous key stops working immediately, ensuring no unauthorized usage of your credits while you rotate credentials or move keys between development and production environments.
Endpoint structure
The SpatialVoice API provides three primary endpoints for integration. Use the speech endpoint to generate audio files from text. Retrieve available voices and model details via dedicated endpoints to configure your requests accurately.
POST /v1/audio/speech
Send text to this endpoint to receive synthesized audio. The request body must include the model, input text, voice selection, and preferred response format. This is the core endpoint for generating voice-overs for your real estate videos.
- Endpoint: POST https://api.sp999.info/v1/audio/speech
- Returns audio file in the specified format (mp3, wav, opus, flac, pcm)
GET /v1/voices for list
Call this endpoint to retrieve the complete list of available voices, their associated languages, supported formats, and pricing details. This allows your application to dynamically present voice options to users or select presets programmatically for consistent branding across property tours.
- Endpoint: GET https://api.sp999.info/v1/voices
- Returns voice presets, languages, formats, and price information
GET /v1/models for info
Use this endpoint to fetch information about the available TTS models, including 'tts-1' and 'tts-1-hd'. This helps you verify model capabilities and ensure compatibility with your integration setup before sending synthesis requests.
- Endpoint: GET https://api.sp999.info/v1/models
- Returns model details and configuration options
Request parameters
The API accepts a JSON body containing your text and voice preferences. You can choose between "tts-1" and "tts-1-hd" for identical audio quality and pricing, allowing flexible integration with existing OpenAI-compatible SDKs by simply adjusting the base URL.
Model: tts-1 or tts-1-hd
Both model identifiers use the same engine and price. Select either "tts-1" or "tts-1-hd" depending on your SDK requirements; the output audio is identical for both.
Input: text up to 4096 chars
Pass your script text in the input field, limited to 4,096 characters per request. Longer property descriptions should be split into chunks and concatenated manually, as the API returns audio files sequentially.
- Spaces and punctuation count toward the 4,096 character limit.
- Generate audio for multiple property segments separately for precise control.
Voice: select from 8 presets
Choose from eight distinct voices, including female presets like Aria and Nova, and male options like Felix and Atlas. Each voice is optimized for clear narration, suitable for virtual tour guides or promotional clips.
- Aria: warm, clear narrator.
- Nova: bright, upbeat.
- Felix: energetic, promo style.
- Atlas: neutral, news tone.
Response formats
Specify the desired audio quality and file type via the response_format parameter. Choose between MP3, WAV, OPUS, FLAC, or PCM to suit your virtual tour workflow, balancing file size and compatibility with your editing software.
MP3, WAV, OPUS, FLAC, PCM
Select the format that best fits your production pipeline. MP3 offers efficient compression for web delivery, while WAV and FLAC provide lossless quality for professional editing. PCM is available for raw data processing, and OPUS provides excellent efficiency for streaming applications.
- MP3: Best for web playback and small file sizes
- WAV: Lossless quality for professional editing
- FLAC: Lossless compression for storage efficiency
- OPUS: High efficiency for web delivery
- PCM: Raw uncompressed audio data
Audio file in response body
The generated audio file is returned directly in the HTTP response body. You can save this binary data to your local storage or upload it immediately to your video editing software. No additional download steps are required.
Standard HTTP status codes
The API uses standard HTTP status codes to indicate success or failure. A 200 OK response means your audio file is ready. Use 400, 401, or 429 codes to troubleshoot common issues like bad requests, authentication failures, or rate limits.
Speed control
Adjust the pacing of your virtual tour narration to match the visual flow. Speed control allows you to slow down complex property details or accelerate brief transitions, ensuring the audio syncs perfectly with your video cuts.
Range from 0.25x to 4.0x
The API accepts speed values between 0.25 and 4.0. Use lower values for detailed property descriptions where clarity is paramount, or higher values for quick intro sequences. This range gives you precise control over the voice's delivery rhythm without altering the voice character itself.
Adjust for pacing needs
Real estate videos often alternate between slow pans of a living room and quick cuts of amenities. By tuning the speed parameter, you can ensure the narrator’s tone remains consistent even when the visual tempo changes. This is especially useful for bulk production where uniform pacing is required across multiple clips.
Default speed is 1.0x
If you do not specify a speed, the API uses 1.0x. This default provides a natural, standard speaking rate suitable for most general property introductions. You only need to adjust this value when you have a specific creative direction for the voice-over.

Language handling
SpatialVoice supports narration in 23 languages, from Arabic to Turkish. You can let the system guess the language based on the script, or explicitly define it for precise control. This flexibility ensures your property descriptions sound natural regardless of the target market.
ISO code optional
The language field is optional. If omitted, the API infers the language from the text characters. This simplifies integration for single-language workflows, such as English-only virtual tours.
Auto-detect for Latin script
Text in Latin script defaults to English if no language is specified. For other Latin-based languages like German or Spanish, explicit language codes prevent mispronunciation. This default behavior saves time for US and UK real estate agencies.
Set explicitly for accuracy
For non-English Latin text, always set the language parameter. This ensures correct pronunciation of property terms and addresses. Unsupported languages like Vietnamese or Thai will not produce accurate speech even if the script appears similar.
- Supported: Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, Turkish.
- Not supported: Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, Bengali.
Rate limits
The API enforces strict rate limits to ensure stable performance during bulk property video production. Limits are measured per API key, allowing agencies to manage multiple keys if needed.
60 requests per minute
Once you add funds to your account, the limit increases to 60 requests per minute. This higher throughput supports efficient processing of multiple property listings or virtual tour segments.
10 per minute initially
Accounts start with a limit of 10 requests per minute before the first top-up. This applies to all accounts immediately, regardless of whether they signed up via Google or email/password.
- Initial limit: 10 requests per minute
- Applies to all account types immediately
- No distinction between trial and paid accounts at this stage
Limit increases after top-up
The higher 60 requests per minute limit activates automatically once you add funds to your account. No manual verification or waiting period is required.
Error handling
Handling errors ensures your property video workflow stays smooth. The API uses standard HTTP status codes to indicate success or failure, allowing your application to react appropriately to common issues.
400 for bad request
This error occurs when the input text exceeds 4096 characters or contains invalid JSON structure. Ensure your text is within the limit or split it into smaller chunks before sending.
- Check text length before sending
- Validate JSON syntax
401 for auth failure
Returned if the Bearer token is missing, expired, or incorrect. Verify your API key is correct and included in the Authorization header.
- Verify key correctness
- Check header format
429 for rate limit
Occurs when you exceed 60 requests per minute (or 10/min initially). Implement retry logic with exponential backoff to handle temporary throttling during bulk property narration.
- Monitor request count
- Use backoff strategy
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. She is particularly effective for luxury homes or properties with unique histories.
23 languages
Any voice speaks any of these languages.
