Text-to-Speech API Optimized for Smart Home and IoT Projects

By SmartTTS Labs editorial team · Updated 2026-11-18

This page details the SmartTTS Labs API, designed for indie developers building smart home hubs and IoT devices. You will find concrete integration steps, exact voice presets, and performance data for text-to-speech generation. While we do not guarantee specific millisecond latency, our engine processes text at roughly real-time speed, generating approximately 25 characters per second. Short phrases take a few seconds, while longer texts are synthesized sequentially, potentially waiting in a queue under load.

We provide a reliable, character-based pricing model with no hidden fees or monthly subscriptions. Explore our 23 supported languages, 8 distinct voice styles, and OpenAI SDK compatibility to start generating audio from your next IoT project. Requests are processed one after another, ensuring predictable costs. Failed requests are free, and you can split longer texts into 4096-character chunks to join audio files seamlessly for your connected devices.

Text-to-Speech API Optimized for Smart Home and IoT Projects

Frequently asked questions

What is TTS online?

It is a cloud text-to-speech API where you send text via a POST request and receive an audio file. The endpoint accepts JSON bodies identical to the OpenAI speech endpoint, allowing direct integration for smart home hubs and IoT devices using standard HTTP clients, without requiring custom infrastructure or complex setup procedures.

How does TTS work for IoT devices?

Send text to the API endpoint and receive an audio file. For texts exceeding 4096 characters, split the input into parts and join the resulting audio files. The API supports standard formats like MP3 and WAV, ensuring compatibility with most smart speakers and IoT audio players.

What is the latency of the API?

Processing is roughly real-time, generating about 25 characters of text per second of audio. Short phrases take a few seconds to synthesize. Requests are processed sequentially, so under heavy load, a request may wait in a queue before being handled by the synthesis engine.

Which voices are best for smart speakers?

No single voice is objectively best for smart speakers. Aria offers a warm, clear narrator style, while Felix provides energetic delivery. Milo is friendly and conversational, and Atlas delivers a neutral tone. All eight presets support all 23 languages, allowing consistent branding across linguistic markets. Choose the voice that fits your specific use case, as suitability depends on the desired tone rather than a universal ranking.

Does the API support multiple languages?

Yes, it supports 23 languages including English, Spanish, German, French, Japanese, and Chinese. Any voice can speak any supported language. If the language is not specified, it is guessed from the script, but setting it explicitly is recommended for non-English Latin-script text.

How is pricing calculated?

Pricing is $10 per 1 million characters, or $0.01 per 1,000 characters. Spaces and punctuation count as characters. Failed requests are free, with charges returned in full. There are no monthly plans, seats, or minimum spends, and balance does not expire after top-up.

What happens if the request fails?

If synthesis fails, the charge is returned in full. You are only billed for successful audio generation. This ensures predictable costs for your IoT applications, as you pay strictly for usable audio output without penalty for temporary errors or processing issues.

Can I use the OpenAI SDK?

Yes, the API uses the same request shape as the OpenAI speech endpoint. You can use the official OpenAI SDKs by changing the base_url to https://api.lv177casino.com/v1 and providing your SmartTTS Labs API key. This allows easy integration into existing developer workflows.

Is there a rate limit?

The limit is 60 requests per minute per key. Before the first top-up, the limit is 10 requests per minute. If you exceed this, requests may queue or fail. You can issue a new key at any time, which invalidates the old one immediately.

What audio formats are supported?

The API supports MP3, WAV, OPUS, FLAC, and PCM formats. You can specify the desired format in the request body. This flexibility allows you to choose between compressed audio for bandwidth efficiency or lossless formats for high-quality playback on smart home devices.

Do you store my text data?

Input text is used only to produce the audio and is not used for training. Generated audio is returned in the response and not stored. Request metadata, such as time, characters, and status, is kept solely for billing purposes and accounting records.

Can I clone my own voice?

No, custom voice cloning is not offered. The API provides eight preset voices based on licensed recordings from LibriTTS-R and LibriVox. You cannot upload your own voice or design custom voices. The generated audio includes an inaudible watermark marking it as synthetic speech.

Is there an SLA?

No, we do not offer an SLA or uptime guarantee. There is no enterprise contract, on-premise installation, or specific data-center selection. Support is provided via email only; we do not maintain a phone number or live chat for immediate assistance. This allows us to keep infrastructure simple and pricing predictable for indie developers and IoT integrations.

How do I get started?

Sign up on the /get-api-key/ page using Google or email. You receive a free trial credit of $0.50 valid for 7 days. Use the provided API key with the OpenAI SDK or plain HTTP to send text and receive audio files immediately.

First request

curl

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

How It Works

Sound wave illustration for: How It Works

SmartTTS Labs provides a straightforward API designed for smart home hubs and IoT devices. Developers send a POST request with a JSON payload containing the text, voice selection, and optional parameters like speed or language. The endpoint processes the input and generates high-quality synthetic speech without requiring complex infrastructure management.

The generated audio is returned directly in the response body, allowing seamless integration into existing workflows. Failed synthesis attempts incur no charge, ensuring predictable billing. This simple request-response cycle fits well within the constraints of low-latency IoT environments where resources are limited.

Send JSON payload

Construct a JSON object with the text to be spoken and select one of the eight available voices. You can specify the model (tts-1 or tts-1-hd), output format (mp3, wav, opus, flac, pcm), and speed (0.25–4.0). The input text must not exceed 4096 characters per request.

Include an ISO language code if the text is not English to ensure accurate pronunciation. Authentication is handled via a Bearer token in the Authorization header. If the text exceeds the character limit, split it into parts and join the resulting audio files.

  • POST to https://api.lv177casino.com/v1/audio/speech
  • Supports tts-1 and tts-1-hd models
  • Input limit: 4096 characters per request
  • Optional speed control (0.25–4.0)

Receive audio file

The API returns the synthesized audio file directly in the response body. Supported formats include mp3, wav, opus, flac, and pcm, allowing flexibility for various IoT device capabilities. Each generated file contains an inaudible watermark to identify it as synthetic speech.

If synthesis fails, the request is free, and no charge is applied to your balance. This ensures that only successful generations incur costs, which are calculated at $0.01 per 1,000 characters.

  • Audio returned in response body
  • Formats: mp3, wav, opus, flac, pcm
  • Failed requests are free
  • Inaudible synthetic watermark included

Real-time generation

Generation is roughly real-time, processing approximately 25 characters of text per second for long texts. Short phrases may take a few seconds to generate. Requests are processed sequentially, so under load, a request may wait in a queue before synthesis begins.

This processing model is suitable for most smart home and IoT use cases where immediate sub-second response is not critical. The predictable processing time helps in designing reliable user experiences for voice assistants and notifications.

  • Approx. 25 chars/sec for long texts
  • Sequential processing with potential queueing
  • Suitable for non-instant voice feedback
  • Predictable latency for IoT integration

Supported Voices

Sound wave illustration for: Supported Voices

SmartTTS Labs provides eight distinct voice presets derived from licensed LibriTTS-R and LibriVox recordings, ensuring high-quality synthetic speech for your IoT applications. Each voice carries an inaudible watermark to identify synthetic audio. All eight voices support all 23 languages without restriction.

Female presets

Aria offers a warm, clear narrator style suitable for general instructions. Nova provides a bright, upbeat tone ideal for promotional content. Luna delivers a soft, storytelling voice for ambient notifications. Sage ensures calm, instructional clarity for device commands.

  • Aria: Warm, clear narrator
  • Nova: Bright, upbeat
  • Luna: Soft, storytelling
  • Sage: Calm, instructional

Male presets

Felix brings an energetic, promo-ready voice for active announcements. Milo offers a friendly, conversational tone for user interactions. Atlas provides a neutral, news-style delivery for factual updates. Orion delivers a deep, documentary voice for detailed explanations.

  • Felix: Energetic, promo
  • Milo: Friendly, conversational
  • Atlas: Neutral, news
  • Orion: Deep, documentary

Neutral options

Atlas serves as the primary neutral option, delivering consistent, professional audio for smart home hubs. Its design prioritizes clarity and reliability over expressive flair, making it suitable for repeated automated messages. Orion provides a deeper alternative for specific acoustic environments.

Supported Voices

Languages Available

Sound wave illustration for: Languages Available

SmartTTS Labs supports 23 languages, including English, Spanish, German, French, Japanese, and Chinese. Our API handles diverse linguistic requirements for global smart home deployments without requiring separate voice models for each region.

23 supported languages

We support Arabic, Danish, Dutch, Finnish, Greek, Hebrew, Hindi, Italian, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Swahili, Swedish, and Turkish. Every voice preset can speak any of these languages, ensuring consistent audio quality across your device fleet regardless of the target market.

Automatic detection

The API guesses the language from the input script if the language field is omitted. Latin script defaults to English, but non-English Latin text (e.g., Spanish or German) should explicitly set the language code to avoid misinterpretation.

ISO code support

Pass an optional ISO language code to override detection. This ensures precise synthesis for specific regional variants. We do not support Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, or Bengali.

Technical Specs

Sound wave illustration for: Technical Specs

The API endpoint mirrors the OpenAI speech structure, allowing you to reuse existing client libraries by simply updating the base_url to https://api.lv177casino.com/v1. This compatibility eliminates the need for custom HTTP clients or proprietary SDKs, enabling rapid integration into your smart home hub or IoT device firmware.

You can request audio in mp3, wav, opus, flac, or pcm formats, giving you flexibility for bandwidth-constrained IoT devices or high-fidelity smart speakers. Unlike competitors, we do not support SSML markup, keeping the payload simple and predictable for automated voice generation systems.

OpenAI SDK compatible

Drop-in compatibility with the official OpenAI SDKs simplifies development. Configure your client with base_url=https://api.lv177casino.com/v1 and use standard TTS methods. This works with any language binding that supports the OpenAI request shape, reducing boilerplate code for indie developers building voice-enabled IoT products.

Authentication is handled via a single Bearer token in the Authorization header. The request body accepts model, input, voice, and optional parameters like language and speed, ensuring a straightforward implementation without complex configuration files or custom headers.

  • Reuses OpenAI SDK logic with simple base_url change
  • Standard JSON request body
  • Single Bearer token authentication

Multiple formats

Choose between compressed mp3 and opus for efficient network transmission on smart speakers, or lossless wav and flac for archival quality. The PCM format is ideal for direct hardware playback where decompression is handled by the device. Each format serves different bandwidth and processing constraints in IoT deployments.

The selected format is returned directly in the response body as an audio file. There is no need for separate conversion steps or additional API calls to convert between formats, streamlining the audio generation pipeline for automated voice notifications or responses.

  • mp3, wav, opus, flac, pcm supported
  • No SSML markup support
  • Direct audio file response

Speed control

Adjust playback speed between 0.25x and 4.0x using the speed parameter. This allows fine-tuning voice output for different contexts, such as slower, clear speech for accessibility features in smart home devices or faster alerts for urgent notifications. The engine handles tempo changes without distorting the voice character.

Speed adjustments are applied during synthesis, ensuring consistent audio quality across all rates. Combined with the 4096-character input limit, you can generate precise audio segments for specific commands or status updates without post-processing delays.

  • Speed range: 0.25 to 4.0
  • Adjusts synthesis tempo
  • No post-processing required

Use Cases

Sound wave illustration for: Use Cases

SmartTTS Labs provides a reliable TTS API designed for smart home hubs and IoT devices. Indie developers can generate synthetic speech for voice assistants, notifications, and smart speakers with predictable pricing and high-quality voices.

Smart speakers

Generate natural-sounding audio for voice-activated devices using our API. Send text via JSON and receive an audio file, optimized for low-latency generation in smart speaker applications.

  • Supports 8 distinct voice presets for varied user experiences
  • Compatible with OpenAI SDKs for easy integration

Voice assistants

Integrate TTS into your voice assistant with a simple POST request. Our API handles text input and returns audio files in formats like MP3 or WAV, ensuring smooth interaction.

  • Fast generation, roughly real-time for long texts
  • No SSML or custom cloning needed

Notifications

Deliver clear, audible alerts to users. Our API converts text notifications into audio files, suitable for IoT devices that require voice-based updates without complex infrastructure.

  • Pay per character, no hidden fees
  • Free trial available for new accounts
Use Cases

Integration

Sound wave illustration for: Integration

Integration is straightforward: send a JSON payload to our single endpoint and receive an audio file. You can use the OpenAI SDK by adjusting the base URL, or stick to plain HTTP requests. This flexibility means you can integrate TTS into smart home hubs, IoT devices, or voice assistants without needing a proprietary library.

Our API supports standard formats like MP3, WAV, Opus, FLAC, and PCM, making it easy to play audio on any device. You can also control speech speed from 0.25x to 4.0x to match your device’s processing capabilities.

Simple endpoint

All requests go to https://api.lv177casino.com/v1/audio/speech via POST. Include your Bearer token in the Authorization header. The JSON body requires model, input, voice, and response_format fields.

You can also specify an optional language ISO code or speed multiplier. The endpoint handles authentication and returns the audio file directly in the response body.

  • POST https://api.lv177casino.com/v1/audio/speech
  • Accepts JSON with model, input, voice, format
  • Bearer token authentication required

No SDK required

While you can use the OpenAI SDK by changing the base URL, it is not mandatory. Any HTTP client that can send JSON and receive binary data works perfectly.

This reduces dependency overhead for indie developers and IoT projects with limited resources. You control exactly how requests are made and audio is processed.

cURL ready

You can test integration immediately with a single cURL command. This is ideal for quick prototyping on smart home hubs or Raspberry Pi devices.

Simply replace YOUR_API_KEY with your token and run the request to receive audio data directly in your terminal or script.

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

Pricing Overview

Sound wave illustration for: Pricing Overview

SmartTTS Labs offers a straightforward pay-per-character model designed for predictable IoT billing. At $10 per 1 million characters, you only pay for what you use, with spaces and punctuation counting toward the total. Failed requests are refunded in full, ensuring you never pay for errors.

Pay per character

Each character costs $0.00001. This flat rate applies to all models and voices, making it easy to estimate costs for smart speaker announcements or device notifications.

No hidden fees

There are no monthly plans, seat licenses, or minimum spend requirements. We do not charge for API calls, storage, or format conversions. Your balance does not expire, and you can top up with USDT on TRC-20 whenever needed.

Free trial

Sign in with Google to receive $0.50 in trial credit, valid for 7 days. This provides approximately 50,000 characters to test integration. Email-based accounts start without trial credit.

Performance

Sound wave illustration for: Performance

Latency varies by text length. Short phrases take a few seconds, while longer texts generate at roughly real-time speed (25 characters per second).

Under load, requests may queue. We process them sequentially to ensure stability.

Latency expectations

Generation time depends on input length. Short phrases require a few seconds. Long texts process at approximately real-time speed, translating 25 characters of text per second of audio. This consistency helps developers time UI updates accurately without overestimating wait times for complex prompts.

Queue handling

Requests are processed sequentially. Under heavy load, a request may wait in the queue before synthesis begins. This ensures predictable output but means concurrent bursts may experience slight delays. Plan your batch splits accordingly to maintain smooth audio playback for users.

Rate limits

Your API key supports 60 requests per minute after your first top-up. New accounts start with a limit of 10 requests per minute. This allows steady integration with smart hubs without overwhelming the synthesis engine. Exceeding the limit returns a standard error until the window resets.

  • Standard limit: 60 requests per minute per key.
  • Initial limit: 10 requests per minute.
  • Processed sequentially; queueing may occur under load.
Performance

Why Choose Us

Sound wave illustration for: Why Choose Us

SmartTTS Labs offers a straightforward, transparent API designed for developers who need reliable text-to-speech without complex infrastructure. We focus on providing clear, predictable pricing and high-quality synthetic voices that integrate seamlessly with smart home hubs and IoT devices.

Transparent data use

Your input text is used solely to generate the audio file and is never used for training our models. We do not store the generated audio, ensuring your content remains yours. Only request metadata like time, character count, and status are retained for accurate billing purposes.

No training data

Unlike many competitors, we do not consume your API usage data to improve our voice models. This ensures that your usage patterns and content remain private and are not leveraged for commercial training datasets, giving you full control over your intellectual property.

Simple billing

We charge $0.01 per 1,000 characters with no monthly plans, seats, or hidden fees. Failed requests are refunded in full. You can start with a free trial credit or top up using USDT (TRC-20) on the TRON network, with balances that never expire.

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. Build intelligent devices that seamlessly connect everyday objects for a truly responsive living experience.

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. openai-node on GitHub
  3. TRON developer hub: TRC-20
  4. MDN: Web Speech API
  5. curl documentation
  6. OpenAI API reference: create speech
  7. FFmpeg documentation
  8. Python documentation
  9. LibriVox public-domain audiobooks
  10. Tether (USDT)
  11. Node.js documentation
  12. W3C WAI: making audio and video accessible

More on this site