Cloud Text-to-Speech API for Developers to Generate Natural Audio

By Houspeech editorial team · Updated 2026-11-18

This page provides clear, practical documentation for developers building voice-overs for real estate listings and virtual tours. You will find exact code examples, parameter details, and integration guides for the Houspeech API, designed to fit seamlessly into your no-code or low-code workflows.

Learn how to generate natural-sounding audio using standard HTTP requests or the OpenAI SDK. We cover everything from authenticating your request to handling long scripts, ensuring you can deliver professional narration for property tours without needing a recording studio.

Cloud Text-to-Speech API for Developers to Generate Natural Audio

Frequently asked questions

How do I authenticate requests?

Include your API key in the Authorization header as Bearer tts-.... You can find your key on the /get-api-key/ dashboard. Each account has one active key; issuing a new one immediately invalidates the previous one.

What is the base URL?

The API base URL is https://api.playji777.com/v1. Use this endpoint for all requests, including POST /v1/audio/speech for generation and GET /v1/voices for listing available options.

Can I use the official SDKs?

Yes. The request shape matches the OpenAI speech endpoint. You can use official OpenAI SDKs by changing the base_url to https://api.playji777.com/v1 and providing your Houspeech key.

What happens if I hit the rate limit?

You are limited to 60 requests per minute per key (10 per minute before the first top-up). Requests are processed sequentially, so exceeding limits may cause delays or errors in your workflow.

Is streaming supported?

No. The API does not support streaming, WebSockets, or real-time partial audio. You receive the complete audio file in the response after synthesis finishes.

Do I need to handle SSML?

No. The API does not support SSML, phoneme dictionaries, or custom pronunciation lexicons. You simply send plain text, and the system handles the natural language processing automatically.

How do I set the language?

Pass the language parameter with an ISO code. If omitted, the system guesses the language from the script, defaulting to English for Latin text. Specify it explicitly for non-English Latin-script texts.

What is the input character limit?

Each request accepts up to 4096 characters of text. For longer scripts, split your text into parts, generate audio for each, and join the files in your workflow.

Can I change the speed of speech?

Yes. Use the speed parameter with a value between 0.25 and 4.0. This allows you to adjust the narration pace to fit your video listing’s timing needs.

Are there any response headers?

The documentation does not specify custom response headers. Standard HTTP headers apply. Focus on parsing the audio file returned in the response body.

How do I handle errors?

Check the HTTP status code and response body for error details. Failed requests are free, and the charge is returned in full if synthesis fails.

Is the API synchronous?

Yes. The API is synchronous; you send a request and wait for the audio file in the response. Requests are processed one after another, so under load, you may experience queue delays.

Can I send text in different languages?

Yes. The API supports 23 languages including English, Spanish, German, and Japanese. Any voice can speak any supported language, provided you specify the correct language code if needed.

What is the maximum speed?

The maximum speed is 4.0. You can adjust the speed parameter between 0.25 and 4.0 to control how fast the narrator speaks your property listing script.

First request

curl

curl https://api.playji777.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.mp3

Python (openai)

from openai import OpenAI

client = OpenAI(base_url="https://api.playji777.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.playji777.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
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

Get Your API Key

Sound wave illustration for: Get Your API Key

To start generating voice-overs for your real estate listings, visit the /get-api-key/ page on playji777.com. You can sign up using your Google account or create a standard email and password account. This process creates your unique API key immediately.

Sign Up on Site

Sign Up on Site

Navigate to the sign-up page and choose your preferred authentication method. Google sign-in includes a $0.50 free trial credit valid for 7 days, while email accounts start with a zero balance. Once registered, you are ready to access your credentials.

Copy Your Key

Copy Your Key

After logging in, your dashboard displays your active API key starting with "tts-". Copy this string exactly as it appears. This single key authenticates all your requests to the speech endpoint. You can generate a new key at any time, which instantly invalidates the previous one.

Secure Storage

Treat your API key like a password. Store it in your environment variables or a secure secret manager rather than hardcoding it in your frontend JavaScript. Since you get one active key per account, ensure it is not exposed publicly to prevent unauthorized usage of your balance.

  • Use environment variables for storage.
  • Generate a new key to invalidate the old one instantly.
  • Keep the key private to protect your billing balance.

First Request with cURL

Sound wave illustration for: First Request with cURL

Send your first synthesis request using a simple cURL command. Replace <YOUR_API_KEY> with the key from your dashboard and provide the text you want converted into speech.

The API returns the audio file directly in the response body as binary data. You can save this output to a local file for immediate use in your property listing videos or virtual tours.

Basic Command

Use the following cURL command to trigger speech synthesis. The request body includes the model, input text, voice preset, and desired audio format.

Ensure you replace the placeholder with your actual Bearer token. The endpoint expects a JSON payload with standard fields like model, input, voice, and response_format.

  • POST https://api.playji777.com/v1/audio/speech
  • Content-Type: application/json
  • Authorization: Bearer <YOUR_API_KEY>

Response Format

On success, the response contains the raw audio data. The format matches your response_format parameter (e.g., mp3, wav, opus, flac, or pcm).

Error Handling

If the request fails, the API returns an error code and message. Failed requests are free, so you are not charged for errors.

Using the OpenAI SDK

Sound wave illustration for: Using the OpenAI SDK

To generate property tour voice-overs efficiently, the OpenAI SDK offers a straightforward path by simply redirecting the base URL. This allows you to leverage familiar code structures without learning a new client library, keeping your real estate automation scripts lightweight and consistent.

Install SDK

Install the official OpenAI Python or Node.js package using your preferred package manager. This standard library handles JSON serialization and request formatting, ensuring your property listing scripts remain clean and maintainable.

  • pip install openai
  • npm install openai

Set Base URL

Configure the client to point to Houspeech’s API endpoint. By setting base_url to https://api.playji777.com/v1, the SDK routes requests correctly without requiring custom HTTP headers or manual payload adjustments.

Call Speech Endpoint

Invoke the audio.speech.create method with your model, voice, and input text. The SDK returns the audio file directly, allowing you to save it as MP3 or WAV for immediate integration into your virtual tour videos.

Available Audio Formats

Sound wave illustration for: Available Audio Formats

Houspeech supports five audio formats to suit different deployment needs. The default is MP3, which offers a good balance between file size and quality for web players. WAV provides uncompressed lossless audio, ideal for high-fidelity editing or professional voice-over workflows.

OPUS and FLAC are also available for specialized use cases. OPUS provides efficient compression for bandwidth-constrained environments, while FLAC offers lossless compression for archival purposes. PCM is available for raw audio data processing.

MP3 for Web

MP3 is the most versatile format for embedding audio in virtual property tours. It ensures broad compatibility with web browsers and mobile devices.

Choose MP3 when you need small file sizes for faster loading times in your video listings. It is the recommended default for most use cases, providing clear speech at a reasonable bitrate.

  • Compatible with all major web browsers
  • Small file size for quick loading
  • Recommended default for web integration

WAV for High Quality

WAV delivers uncompressed, lossless audio. This format is ideal for high-fidelity editing or professional voice-over workflows.

Use WAV when audio fidelity is critical, such as for high-end luxury property listings.

  • Uncompressed, lossless quality
  • Ideal for professional editing
  • Best for high-end listings

OPUS and FLAC Options

OPUS offers high-quality audio at lower bitrates, making it suitable for environments with limited bandwidth.

FLAC provides lossless compression, reducing file size while maintaining audio quality. It is suitable for archiving generated voice-overs.

  • OPUS: Efficient compression for streaming
  • FLAC: Lossless compression for archiving
  • PCM: Raw audio data available

Supported Voices and Models

Sound wave illustration for: Supported Voices and Models

Houspeech offers two model variants, tts-1 and tts-1-hd, which use the same underlying engine and pricing. This allows you to switch between standard and high-definition audio without changing your integration logic or budget calculations.

tts-1 and tts-1-hd

Both models support the same voice presets and language options. Choose tts-1 for efficient processing or tts-1-hd when higher fidelity is needed for premium property tours.

8 Voice Presets

Select from eight licensed voices, including Aria, Luna, and Felix. Each voice brings a distinct tone suitable for different types of real estate content.

  • Female: Aria (warm narrator), Nova (upbeat), Luna (soft storytelling), Sage (calm instruction)
  • Male: Felix (energetic promo), Milo (friendly), Atlas (neutral news), Orion (deep documentary)

Voice Selection Tips

Match the voice to your video style. Use Felix for quick sales pitches or Orion for detailed neighborhood documentaries. All voices speak all 23 supported languages.

Supported Voices and Models

Rate Limits and Performance

Sound wave illustration for: Rate Limits and Performance

Houspeech processes TTS requests sequentially, meaning under load, your synthesis job may wait in a queue before generation begins. This ensures stability but means processing time scales with concurrent demand rather than being instant.

60 Requests Per Minute

Each API key is limited to 60 requests per minute. New accounts without a top-up start with a stricter limit of 10 requests per minute. Once you add funds via USDT (TRC-20), the limit increases to the full 60 RPM.

  • Standard limit: 60 requests/minute
  • New accounts (no top-up): 10 requests/minute
  • Limit resets every 60 seconds

Queue Processing

Requests are processed one after another. If many users are generating audio simultaneously, your request may wait in a queue. Short phrases take a few seconds to generate, while longer texts take longer depending on queue depth.

Text Length Limits

Each API call accepts up to 4,096 characters. If your script exceeds this, split the text into chunks and join the resulting audio files. This approach keeps each request manageable and ensures consistent generation quality for your virtual tour voice-overs.

  • Max input: 4,096 characters per request
  • Split and join for longer scripts

Handling Long Scripts

Sound wave illustration for: Handling Long Scripts

The API accepts up to 4096 characters per request. For longer property listings or virtual tour scripts, split your text into segments that stay within this limit. Each segment generates a separate audio file.

Split into 4096 Chunks

Divide your script into blocks of 4096 characters or fewer. This ensures every request succeeds without truncation. Spaces and punctuation count toward the limit, so account for them when splitting.

  • Keep segments under 4096 characters
  • Count spaces and punctuation
  • Maintain logical sentence breaks

Join Audio Files

Once you receive the audio files for each segment, concatenate them in order. This creates a single, continuous voice-over file for your real estate video or tour.

Automated Processing

You can script this process to handle large volumes efficiently. Simply loop through your text chunks, send them to the API, and merge the outputs programmatically.

Frequently Asked Questions

Sound wave illustration for: Frequently Asked Questions

Common questions about authentication, limits, and format support for Houspeech's TTS API.

How do I authenticate requests?

Include your unique key in the header: Authorization: Bearer tts-....

What is the base URL?

Use https://api.playji777.com/v1 for all requests.

Can I use the official SDKs?

Yes, the OpenAI SDKs work by setting base_url to our API endpoint.

What happens if I hit the rate limit?

Requests are processed sequentially; you may experience slight delays during high volume.

Is streaming supported?

No, the API returns complete audio files upon request completion.

Do I need to handle SSML?

No, SSML is not supported in this version.

How do I set the language?

Pass an optional ISO code. If omitted, the system guesses based on the script.

What is the input character limit?

Each request supports up to 4,096 characters.

Can I change the speed of speech?

Yes, adjust the speed parameter between 0.25 and 4.0.

Are there any response headers?

The response contains standard headers along with the audio binary data.

How do I handle errors?

Failed requests are returned with an error code and are free.

Is the API synchronous?

Yes, the API waits for synthesis to complete before returning the audio file.

Can I send text in different languages?

Yes, we support 23 languages including English, Spanish, German, and Japanese.

What is the maximum speed?

The maximum speed setting is 4.0x.

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. Every voice can speak all supported languages, ensuring consistent audio quality across markets.

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. Node.js documentation
  3. OpenAI API reference: create speech
  4. LibriTTS-R corpus (OpenSLR 141)
  5. IETF RFC 7845: Ogg Opus
  6. LibriVox public-domain audiobooks
  7. curl documentation
  8. Python documentation
  9. TRON developer hub: TRC-20
  10. FFmpeg documentation
  11. openai-python on GitHub
  12. MDN: Web Speech API

More on this site