How Does Our TTS API Power Smart Home Devices?

By SmartVoice editorial team · Updated 2026-11-19

SmartVoice provides a reliable text-to-speech API designed for indie developers building localized voice assistants for smart home and IoT devices. This page explains how our REST API converts text into audio files, enabling consistent voice identities across your hardware ecosystem.

You will learn how to integrate our 8 voice presets and 23 languages using standard HTTP requests or the OpenAI SDK. We cover latency, audio formats, and pricing so you can deploy voice features without complex infrastructure or hidden costs.

How Does Our TTS API Power Smart Home Devices?

Frequently asked questions

What is TTS?

Text-to-speech (TTS) is a cloud API that converts input text into audio files. You send a POST request with your text and voice preference, and receive an audio response. It is designed for easy integration into smart home applications, allowing devices to speak user prompts or status updates without complex local processing.

How does TTS work in IoT?

Your IoT device sends text to our API endpoint. The server processes the request and returns an audio file (mp3, wav, etc.). Your device then plays the audio. Since texts over 4096 characters are split and joined, you can generate long announcements for smart home routines or voice assistant responses seamlessly.

What languages are supported?

We support 23 languages including English, German, Spanish, Chinese, and Japanese. Any voice can speak any of these languages. If you do not specify a language, it is guessed from the script, but setting it explicitly ensures accuracy for non-English Latin-script text. Vietnamese, Thai, Indonesian, Ukrainian, Romanian, Czech, Bengali and others are not supported.

Can I use my own voice?

No. We do not offer custom voice cloning or uploading your own voice. Our service uses eight preset voices based on licensed recordings from LibriTTS-R and LibriVox. You choose from options like Aria, Nova, or Felix, but you cannot create a unique voice profile for your specific brand or device.

Is the API real-time?

No. We do not support streaming, WebSocket, or real-time partial audio. Requests are processed one after another, and the full audio file is returned only after synthesis completes. This means your device must wait for the file to be ready before playback begins, which is suitable for non-interactive prompts.

What is the latency?

Typical speed is roughly real time, generating about 25 characters of text per second of audio. Short phrases take a few seconds. Under load, requests may wait in a queue because they are processed sequentially. For most smart home notifications, this latency is acceptable, though not instantaneous.

How do I choose a voice?

Choose from eight presets: Aria (warm narrator), Nova (bright), Luna (soft), Sage (calm), Felix (energetic), Milo (friendly), Atlas (neutral), or Orion (deep). Each voice suits different tones, from news updates to storytelling. You specify the voice name in your API request to match your device’s personality.

What formats are supported?

We support mp3, wav, opus, flac, and pcm. You specify the format in the response_format field. MP3 and Opus are efficient for bandwidth-constrained IoT devices, while WAV and FLAC offer lossless quality. PCM provides raw audio data if your hardware requires uncompressed input for immediate playback.

Is there a free trial?

Yes. Signing in with Google gives you $0.50 of credit, valid for 7 days, allowing about 50,000 characters. Email-based accounts start without trial credit. This allows you to test integration with your smart home devices before committing to top-ups via USDT on the TRON network.

How much does it cost?

Pricing is $10 per 1 million characters ($0.01 per 1,000 characters). Failed requests are free. There are no monthly plans or subscriptions. You top up with USDT (TRC-20), minimum $5. Balance does not expire. This simple model fits indie developer budgets for IoT projects without hidden fees.

Do I need an internet connection?

Yes. Our TTS API is a cloud service. Your IoT device must send text to https://api.6game.info/v1/audio/speech and receive the audio file. Without an internet connection, your device cannot generate speech. We do not offer an offline SDK or on-premise install option.

Can I use it offline?

No. The API requires an internet connection to process requests. We do not provide offline capabilities, local voice engines, or downloadable voice packs. All synthesis happens on our servers, and the resulting audio file is returned to your device for playback. You need consistent connectivity for smart home features.

Is the audio copyrighted?

Generated audio is not stored by us and is returned in the response. The voices are based on licensed recordings (LibriTTS-R, CC BY 4.0) from public-domain readings. Each file carries an inaudible watermark marking it as synthetic. You can use the audio in your applications.

How do I handle errors?

If synthesis fails, the charge is returned in full. You can check the response status from the API. For issues, contact support by email. We do not offer phone support or live chat. Ensure your text is under 4096 characters and your API key is valid to avoid common errors.

Definition of TTS

Sound wave illustration for: Definition of TTS

Text-to-speech (TTS) technology converts written text into audible speech. For smart home ecosystems, this means transforming digital commands or status updates into clear, human-like audio that users can hear without looking at a screen.

Text input to audio output

The process begins with plain text, which the API processes to generate an audio file. This straightforward pipeline ensures that your application’s logic remains decoupled from audio synthesis, allowing you to focus on device behavior rather than sound engineering.

  • Converts character strings into synthesized speech
  • Outputs standard audio formats like MP3 or WAV

Used in voice assistants

Voice assistants rely on TTS to deliver responses naturally. By using consistent voices like Aria or Felix, your smart device maintains a recognizable personality, whether it is reading out a weather forecast or confirming a locked door.

Common in IoT devices

IoT devices often lack screens, making audio the primary feedback channel. TTS enables notifications for security alerts or calendar reminders without requiring visual attention, ensuring users stay informed while multitasking in their homes.

How it Works

Sound wave illustration for: How it Works

Our API follows a simple request-response pattern designed for reliable IoT integration. Developers send a text string via HTTP POST, and the service returns a synthesized audio file ready for playback.

The process is deterministic: you define the voice, language, and format, and the server handles the synthesis engine. This ensures consistent output quality across thousands of smart home devices without managing complex infrastructure.

API request with text

Send a JSON payload to POST https://api.6game.info/v1/audio/speech. Include your text in the input field (up to 4,096 characters), a valid model (tts-1 or tts-1-hd), and your chosen voice preset. Authentication is handled via a Bearer token in the header.

For convenience, you can use the official OpenAI SDK by pointing it to our base URL. This allows existing codebases to integrate with minimal changes, leveraging familiar libraries for smart home voice assistants.

  • Endpoint: POST https://api.6game.info/v1/audio/speech
  • Format: JSON body with input, model, voice
  • Auth: Authorization: Bearer tts-...

Server generates audio

Our servers process the request using licensed voice models. Processing happens sequentially; under heavy load, requests may queue. For typical usage, generation speed approaches real-time (approx. 25 chars/sec), though short phrases may take a few seconds.

The system handles character counting accurately, including spaces and punctuation. If synthesis fails, the request is retried or aborted without charge, ensuring you only pay for successful audio generation.

Return audio file

The API returns the audio file directly in the response body. You can specify formats like MP3, WAV, OPUS, FLAC, or PCM. The file is ready for immediate playback by your IoT device’s audio driver.

No intermediate storage is required. The audio is generated on-demand and returned in the HTTP response, minimizing latency for voice assistant triggers like weather updates or security alerts.

Voice Selection

Sound wave illustration for: Voice Selection

SmartVoice offers eight distinct voice presets, allowing developers to select a tone that aligns with their device’s personality. Whether you need the warm clarity of Aria for narration or the energetic promo style of Felix, the API supports both male and female voices across 23 languages.

Choose from 8 presets

Each voice is derived from licensed recordings, ensuring high-fidelity output. Developers can swap voices instantly via the voice parameter in the request, enabling A/B testing to find the best fit for your users.

  • 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

Match tone to brand

Consistency is key for user trust. By locking in a specific voice preset, your smart home device maintains a recognizable auditory identity across all interactions, from weather updates to security alerts.

Consistent voice identity

The same voice model generates audio for every request, ensuring that your device sounds uniform regardless of the text content or language. This consistency enhances the perceived reliability of the assistant.

Language Support

Sound wave illustration for: Language Support

Our TTS engine supports 23 languages, ensuring your IoT devices can communicate clearly with users worldwide. Whether deploying in Paris, Tokyo, or São Paulo, the same API handles diverse linguistic requirements with consistent audio quality.

23 languages supported

We cover major global markets 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. Any voice preset can speak any of these languages, giving you flexibility in design.

  • Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, Turkish

French voice options

For French-speaking users, you can choose between female voices like Aria or Nova, and male voices like Felix or Milo. Each voice offers a distinct tonal quality, allowing you to match your device’s brand identity precisely.

Auto-detection feature

If you omit the language field, the system guesses the language from the script. Latin-script text defaults to English. For non-English Latin text, we recommend explicitly setting the language parameter to ensure accurate pronunciation.

Integration Methods

Sound wave illustration for: Integration Methods

Integration is straightforward: send a POST request to https://api.6game.info/v1/audio/speech with your text and voice parameters. You receive a binary audio file ready for playback on your smart home hub or IoT device.

For developers preferring higher-level tools, the OpenAI SDK works seamlessly by pointing base_url to our API. This allows you to use standard libraries while maintaining full control over speech parameters like speed and format.

While we do not offer native webhook delivery, you can easily implement server-side webhooks to trigger TTS jobs asynchronously. This pattern suits devices that need to notify users without blocking the main thread during speech synthesis.

REST API calls

Send a POST request to https://api.6game.info/v1/audio/speech with a JSON body containing your text, selected voice, and desired audio format. The API returns the binary audio file directly, which your IoT device can play immediately.

This method requires no external libraries, making it ideal for embedded systems or simple scripts that just need to convert text to speech efficiently.

  • Endpoint: POST https://api.6game.info/v1/audio/speech
  • Auth: Bearer tts-... key
  • Formats: mp3, wav, opus, flac, pcm

OpenAI SDK usage

Use the official OpenAI SDK by setting base_url to https://api.6game.info/v1. This leverages familiar client libraries for Python, Node.js, and other languages, simplifying integration into your existing smart home infrastructure.

The request shape matches the OpenAI speech endpoint, ensuring consistent behavior and easy migration for teams already using similar API patterns.

  • Compatible with official OpenAI SDKs
  • Adjust base_url only
  • Standard JSON request body

Webhook integration

Implement a webhook on your server to listen for events that trigger speech synthesis. This allows your smart home system to queue voice updates without blocking the user interface during generation.

Combine this with our API to handle asynchronous speech delivery, ensuring your IoT devices remain responsive even when processing longer voice messages or handling multiple simultaneous requests.

Latency Considerations

Sound wave illustration for: Latency Considerations

Generating audio for smart home devices requires balancing response time with resource constraints. Our API processes requests sequentially, meaning that under heavy load, a request may wait in a queue before synthesis begins. This sequential processing ensures consistent quality but introduces variable latency depending on concurrent usage.

Real-time on long texts

For longer texts, such as weather reports or security alerts, generation speed approaches real-time. You can expect roughly 25 characters of text to be processed per second of audio output. This efficiency makes the API suitable for delivering detailed notifications without significant delay.

Queuing under load

Requests are processed one after another. If many devices trigger synthesis simultaneously, your request may wait in a queue. Short phrases typically take a few seconds to generate, but peak usage can extend this wait time. Planning for slight delays ensures a smooth user experience.

Optimize for speed

To minimize latency, split long texts into parts of up to 4096 characters and join the audio files. Adjust the speed parameter between 0.25 and 4.0 to reduce generation time. Pre-fetching audio for common responses can also reduce perceived latency for end-users.

Audio Formats

Sound wave illustration for: Audio Formats

The API lets you choose the output format that best fits your device’s constraints. Selecting the right format ensures your smart home assistant delivers clear audio without wasting bandwidth or storage space.

MP3 for compression

MP3 is a common format for consumer devices. It offers small file sizes while maintaining acceptable quality, making it ideal for voice assistants with limited storage or bandwidth.

  • Best for general voice responses
  • Small file size reduces data usage

WAV for quality

WAV provides uncompressed, high-fidelity audio. Use this format when audio quality is critical, such as for premium sound systems or when minimal processing is needed.

Note that WAV files are significantly larger than MP3s, which may impact loading times on slower networks.

  • Lossless audio quality
  • Larger file size

OPUS for efficiency

OPUS offers efficient compression with high quality, making it suitable for low-bandwidth environments. It is particularly useful for IoT devices with restricted network capabilities.

  • High efficiency for low bandwidth
Audio Formats

Use Cases

Sound wave illustration for: Use Cases

SmartVoice provides reliable speech synthesis for everyday smart home interactions. By converting text to audio, it enables devices to deliver clear, localized updates without manual intervention.

The API handles specific tones for different contexts, ensuring that information is received appropriately, whether it is a gentle reminder or an urgent notification.

Weather updates

Devices can announce current conditions or forecasts using natural voices. This is useful for dashboards or smart displays that provide ambient information to users.

The system supports multiple languages, allowing localized weather reports that match the user's preference.

  • Real-time temperature and condition announcements
  • Localized forecasts in 23 supported languages
  • Consistent voice identity across different weather events

Calendar reminders

Smart speakers can read out upcoming appointments or tasks. This helps users stay organized without needing to look at a screen.

Users can configure specific voices for different types of reminders, such as a calm voice for daily plans or an energetic one for urgent tasks.

  • Automatic reading of scheduled events
  • Customizable voice tones for different reminder types
  • Support for various languages to suit diverse households

Security alerts

When a sensor is triggered, the system can generate an audio alert. This ensures that users are notified immediately, even if they are not looking at their devices.

The API's reliability ensures that critical notifications are delivered consistently, providing peace of mind for home security applications.

  • Immediate audio notifications for sensor triggers
  • Clear and distinct alert sounds
  • Reliable delivery for critical security events

Developer Tools

Sound wave illustration for: Developer Tools

Smart developers start with a simple cURL command to verify their API key and generate the first audio file. This immediate feedback loop confirms that the endpoint is reachable and the account balance is active before integrating into larger smart home workflows.

For those preferring code over raw HTTP, the official OpenAI SDKs work seamlessly by simply pointing the base URL to our API. This allows you to use familiar libraries in Python, Node.js, or Go without learning a proprietary client.

Our documentation provides complete reference materials, including voice lists and format options. It covers all necessary endpoints like /v1/audio/speech and /v1/voices, ensuring you have the exact specifications needed for reliable IoT voice assistant integration.

cURL examples

A single line of code can test your setup instantly. Copy the provided curl example from your dashboard, paste it into your terminal, and receive an audio file in seconds. This confirms your key works and helps debug connection issues before writing complex application logic.

You can adjust parameters like speed and voice directly in the command line. This flexibility lets you prototype different voice personalities for your device without changing code structure, simply by swapping the voice parameter in your request.

  • [

SDK libraries

Use the OpenAI SDK by setting the base URL to https://api.6game.info/v1. This approach leverages well-tested libraries, reducing the need for custom HTTP handling code in your smart home backend services.

  • [

Documentation

The docs detail every parameter, from model selection to response formats. You will find clear examples for handling rate limits and splitting long texts, which is crucial for maintaining smooth voice interactions in connected devices.

  • [

Cost Efficiency

Sound wave illustration for: Cost Efficiency

SmartVoice uses a transparent, usage-based pricing model tailored for indie developers. You pay only for what you process, with no hidden fees or recurring subscriptions. The cost is $10 per 1 million characters, including spaces and punctuation, making it easy to predict expenses for your smart home or IoT projects.

This structure eliminates financial risk for small teams. There is no minimum spend, no monthly plan, and no seat limit. You can scale from a few dozen requests to millions without changing your billing setup, ensuring your budget aligns strictly with actual usage.

Pay per character

The rate is fixed at $0.01 per 1,000 characters. Failed requests are free, so you only pay for successful audio synthesis. This ensures you never pay for errors in your automation pipelines.

Input text is processed character by character, meaning even brief voice prompts for devices like smart displays or speakers are cost-effective. Long texts are split into 4096-character chunks, with each chunk billed individually.

  • $10 per 1 million characters
  • $0.01 per 1,000 characters
  • Spaces and punctuation count as characters
  • Failed requests are free

No minimum spend

There is no monthly plan, no seats, and no minimum spend. You can use the API for just a few dollars or scale up as your product grows. This flexibility is ideal for indie developers testing new features or launching MVPs.

Top-ups are processed via USDT on the TRON network (TRC-20) with a $5 minimum. Balance does not expire, so you can accumulate credit over time without worrying about annual renewals or usage windows.

  • No monthly plans
  • No seats or minimum spend
  • Balance does not expire
  • Top-up via USDT (TRC-20), min $5

Free trial available

New accounts created with Google sign-in receive $0.50 of credit, valid for 7 days. This provides about 50,000 characters for testing integration with your smart home devices. Email/password accounts start without trial credit.

This trial allows you to verify voice quality and API response times without committing funds. You can test multiple voices and languages to find the best fit for your brand before purchasing top-up credits.

  • $0.50 credit for Google sign-ins
  • Approx. 50,000 characters
  • Valid for 7 days
  • Email/password accounts start without trial credit

Data Privacy

Sound wave illustration for: Data Privacy

SmartVoice prioritizes your data integrity by ensuring input text is used exclusively for audio synthesis and never for model training. This guarantees that your unique command structures remain private to your infrastructure, providing a clear boundary between service usage and data consumption.

No training on input

Your voice commands and status messages are processed on-demand. Once the audio is generated and delivered, the source text is not retained for any secondary learning or improvement of the TTS engine, ensuring strict separation between your operational data and our model development.

No audio storage

The synthesized audio files are returned directly in the response stream and are not stored on our servers. This means your device’s audio output is ephemeral, reducing your attack surface and ensuring that no persistent audio copies of your home’s voice interactions remain in our cloud.

Metadata only

We retain only request metadata—such as timestamp, character count, and status code—necessary for accurate billing and troubleshooting. This minimal dataset allows us to monitor API health without storing the actual content of your smart home’s voice interactions, keeping your data footprint as small as possible.

Future Updates

Sound wave illustration for: Future Updates

Our roadmap focuses on steady, reliable improvements rather than flashy features. We prioritize stability for your IoT deployments, ensuring that voice quality remains consistent as we scale.

Voice updates

We may refine existing voice models to enhance clarity and naturalness. These updates will be applied automatically, requiring no code changes from your side.

New languages

We are evaluating additional languages beyond our current 23. Priority is given to regions with significant smart home adoption, ensuring broad accessibility for global devices.

Format improvements

Future updates may optimize audio encoding for better compression ratios. This ensures faster transmission over constrained IoT networks without sacrificing audible quality.

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. When a voice assistant confirms a locked door or adjusts the thermostat, consistency in timbre reinforces trust.

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

More on this site