Add Voice Notifications to Your App with TTS API

By VoxNotify editorial team · Updated 2026-11-19

This guide helps indie developers turn bank notifications and fintech alerts into clear, playable audio. You will learn how to integrate the VoxNotify TTS API into your app, from setting up your API key to handling long texts and managing costs with USDT.

We cover practical steps for choosing voices like Aria or Atlas, handling errors, and optimizing performance. Whether you are testing with curl or deploying to production, this page gives you the concrete details you need to build a smooth voice notification feature.

Add Voice Notifications to Your App with TTS API

Frequently asked questions

How do I choose a voice?

Select from eight presets based on your app’s tone. Use aria for clear narration, nova for upbeat alerts, or atlas for neutral news. Each voice supports all 23 languages. Choose the style that best fits your user experience, whether it’s a calm instructional guide or an energetic promo.

What is the best voice for banking?

There is no single best voice, but atlas offers a neutral, news-style delivery suitable for financial data. Milo provides a friendly, conversational tone for account updates. Sage is calm and instructional for complex transactions. Test a few options to see which resonates best with your specific user base.

How do I split long texts?

The API limits input to 4096 characters per request. Split your text into parts of this size and send multiple requests. Join the resulting audio files on the client side. This ensures all text is processed, as requests are handled sequentially, though longer texts may take time due to queueing.

Can I use OpenAI SDK?

Yes. The endpoint matches the OpenAI speech endpoint shape. Change the SDK’s base_url to https://api.sensai777.cc/v1 and use your VoxNotify key. This allows you to use the official OpenAI SDKs directly without writing custom HTTP clients, simplifying integration into your existing codebase.

How do I handle errors?

Check the HTTP response status code. If synthesis fails, the charge is returned in full. Implement retry logic for transient network issues. Since requests are processed sequentially, high load may cause delays. Monitor your rate limit headers to avoid exceeding the 60 requests per minute threshold.

What is USDT?

USDT (Tether) is a cryptocurrency. We accept it on the TRON network (TRC-20) for top-ups. The minimum deposit is $5. Funds are credited automatically within minutes of transfer. This is the only payment method available; we do not accept cards, PayPal, or subscriptions.

How do I detect language?

Set the optional language parameter to an ISO code for precise control. If omitted, the system guesses the language from the script, defaulting to English for Latin text. Explicitly setting the language ensures correct pronunciation, especially for non-English Latin-script texts or mixed-language content.

Is there a demo?

Sign up with Google to receive a $0.50 free trial credit, valid for 7 days. This provides about 50,000 characters to test voices and formats. Use the /get-api-key/ page to get your key and try the curl example immediately. No demo video is provided.

How long does it take?

Generation is roughly real-time, about 25 characters per second. Short phrases take a few seconds. Long texts are processed sequentially, so under load, requests may wait in a queue. Expect delays during high traffic periods. The audio is returned directly in the response.

Can I change voices?

Yes, you can switch voices per request by changing the voice parameter. You can also rotate voices for variety in notifications. Each request is independent, allowing you to use different voices for different alert types, such as using atlas for balances and nova for promotions.

Do I need to store audio?

No. Generated audio is returned in the response and not stored by our API. Input text is used only for synthesis and not for training. You are responsible for storing the audio files if needed. Request metadata is kept for billing purposes only.

How do I track usage?

The /get-api-key/ page displays your balance, characters left, and usage history. You can also monitor request metadata including time, characters, and status. Failed requests are free, so your billing reflects only successful synthesis. Check the dashboard regularly to manage your credit and spending.

Is there a limit on requests?

Yes, the limit is 60 requests per minute per key. Before your first top-up, the limit is 10 per minute. If you exceed this, requests may be queued or rejected. Monitor your usage on the dashboard to stay within limits and ensure smooth delivery of alerts.

Can I use this for alerts?

Yes. The API is ideal for turning bank notifications and fintech alerts into clear audio. Use voices like atlas for neutral updates or nova for upbeat reminders. The fast generation speed and low cost make it suitable for high-volume, real-time notification systems.

How do I integrate with React?

Use the OpenAI SDK with the base_url set to https://api.sensai777.cc/v1. Send a POST request with your text, voice, and format. Handle the audio blob in the response. Play it using an HTML5 audio element. Ensure you handle errors and rate limits appropriately in your component lifecycle.

How do I integrate with Node.js?

Install the OpenAI npm package. Configure the base_url to https://api.sensai777.cc/v1 and set the API key. Call the speech endpoint with your text and parameters. The response contains the audio stream or blob. Process it to save or play the audio in your Node.js application.

Why add voice to your app

Sound wave illustration for: Why add voice to your app

Voice notifications turn dry bank alerts into clear, immediate audio cues. This helps users with visual impairments or those multitasking grasp critical fintech updates without staring at a screen.

Hearing a notification feels more personal than a silent push. It draws attention faster, reducing the chance that a transaction alert gets lost in a sea of app notifications.

Better accessibility

Reading small transaction details can be hard on small screens. Voice converts text into clear audio, making your app usable for people who rely on screen readers or have trouble focusing on dense text.

Higher engagement

Audio notifications stand out in a quiet room or a busy commute. Users are more likely to acknowledge a voice cue than a silent vibration, keeping them connected to their financial updates.

Modern UX

Modern apps go beyond text. By adding voice, you offer a richer, more responsive experience that fits naturally into how people interact with their devices every day.

Choosing the right voice

Sound wave illustration for: Choosing the right voice

Choosing the right voice matters for bank notifications. Clear audio reduces confusion for users checking balances or alerts. We picked three presets that fit fintech workflows best.

Aria for clarity

Aria has a warm, clear narrator tone. It works well for transaction details where every word counts. Users hear numbers and dates clearly without straining.

  • Warm, clear narrator style

Atlas for news

Atlas offers a neutral, news-like delivery. It sounds professional for balance updates or system alerts. The steady pace keeps information digestible without emotional bias.

  • Neutral, news-style tone

Milo for friendliness

Milo brings a friendly, conversational vibe. Use it for payment confirmations or welcome messages. It makes routine notifications feel less robotic and more personal.

  • Friendly, conversational style

Setting up the API

Sound wave illustration for: Setting up the API

To start receiving audio files, sign up at /get-api-key/ using Google or email. You will receive a unique API key starting with tts- and a free trial balance of $0.50 valid for 7 days.

Get API key

Your account page displays your active key, current balance, and a ready-to-use curl example. You can issue a new key at any time; the old one stops immediately.

Install SDK

We do not provide a custom SDK. Use the official OpenAI SDK or plain HTTP requests. Our endpoint matches the OpenAI speech API shape, so existing integrations often work with minor adjustments.

Configure base_url

Update your SDK configuration to point to https://api.sensai777.cc/v1. Send your API key in the Authorization: Bearer header. The endpoint is POST /v1/audio/speech.

  • Base URL: https://api.sensai777.cc/v1
  • Endpoint: POST /v1/audio/speech
  • Auth: Authorization: Bearer tts-...

Sending text to speech

Sound wave illustration for: Sending text to speech

Converting text to speech with VoxNotify is straightforward. You send a POST request to the API endpoint with your text and voice preference, then receive an audio file ready for playback.

This guide covers the core steps to integrate voice notifications into your app, ensuring smooth delivery of alerts and updates to your users.

Prepare request body

Construct a JSON payload with your API key in the Authorization header. Include the text to convert, up to 4096 characters, and select a voice like Aria for clarity or Atlas for news-style notifications.

Set the response format to mp3 or wav, and specify a speed between 0.25 and 4.0 if needed. The API handles the synthesis, so you just need to ensure your text is clean and within limits.

  • Use tts-1 or tts-1-hd for the model
  • Include text in the 'input' field
  • Set 'voice' to a preset like 'aria' or 'atlas'
  • Specify 'response_format' as mp3, wav, opus, flac, or pcm

Handle response

The API returns the audio file directly in the response body. Check for a 200 status code to confirm success. If the synthesis fails, you won't be charged, so handle errors gracefully without penalty.

Parse the audio data and pass it to your app's media player. Ensure you handle potential network issues or timeouts, as long texts may take a few seconds to process.

Play audio

Once you have the audio file, feed it to your app’s audio player. For bank notifications, a clear voice like Milo ensures users understand the alert without distraction.

Test the playback on various devices to ensure compatibility with your chosen format. Keep the user experience smooth by minimizing delay between the request and audio start.

  • Test on iOS and Android devices
  • Ensure audio formats match player capabilities
  • Minimize latency for real-time feel

Handling long texts

Sound wave illustration for: Handling long texts

Handling long texts requires splitting your input into segments of up to 4096 characters. This ensures every request stays within the API’s limits while preserving the natural flow of the notification.

Split into chunks

Break your text into parts, ensuring each chunk is under 4096 characters. Spaces and punctuation count toward this limit, so be precise.

Generate segments

Send each chunk to the POST /v1/audio/speech endpoint. Requests are processed sequentially, so longer texts may queue slightly under load.

Join audio files

Once you receive all audio files, concatenate them into a single file for playback. This creates a seamless voice notification for your users.

Managing costs

Sound wave illustration for: Managing costs

Keep your project running by watching your balance and character count in the dashboard. Failed requests are free, so you only pay for successful audio generation. Usage data is kept for billing, helping you predict future needs without surprise charges.

Monitor usage

Check your remaining characters and current balance directly on the /get-api-key/ page. The API returns usage metadata with each response, allowing you to track consumption in real-time. This transparency helps indie developers manage small budgets effectively without hidden costs.

  • View balance and characters left instantly
  • Track usage per API key
  • No minimum spend required

Top up with USDT

Add funds via USDT on the TRON network (TRC-20). The minimum top-up is $5, and credits appear automatically within minutes. There are no credit cards, PayPal, or VAT invoices. Your balance never expires, giving you flexibility for long-term projects.

  • USDT (TRC-20) only
  • Minimum $5 top-up
  • Automatic credit within minutes
  • No subscriptions or fees

Use free trial

Sign in with Google to receive $0.50 in trial credit, valid for 7 days. This covers roughly 50,000 characters, enough to test multiple voices and formats. Email/password accounts start without trial credit, so use Google sign-in to explore the API risk-free.

  • $0.50 credit for Google sign-ins
  • Valid for 7 days
  • Covers ~50,000 characters

Error handling

Sound wave illustration for: Error handling

When synthesis fails, the API returns a clear error status without charging your balance. This ensures that failed requests are free, so you can retry without worrying about wasted credits or billing surprises.

Retry on failure

Implement exponential backoff for transient errors like rate limits (60 requests/minute). If a request fails, the charge is returned in full, allowing safe retries.

  • Check status codes for immediate retry vs. permanent failure.
  • Respect rate limits to avoid queuing delays.

Refund logic

Failed requests trigger automatic refunds. No manual claim needed. Your balance updates instantly, preserving your trust and budget.

User feedback

Inform users when audio generation fails. Provide a simple retry button or fallback to text. This maintains a smooth experience even during high load.

Error handling

Language selection

Sound wave illustration for: Language selection

VoxNotify automatically guesses the language from your text’s script, defaulting to English for Latin characters. This simplifies integration for common use cases, but explicit control ensures accuracy for mixed or ambiguous input.

Auto-detect

The API infers the language from character sets. If you send non-English Latin text without specifying a language, it defaults to English. This works well for clear scripts but may misinterpret mixed-language notifications.

  • Latin script defaults to English
  • Detects Cyrillic, Arabic, CJK scripts

Set language code

Pass the language field (e.g., "es", "ja") in your request. This overrides auto-detection and ensures the correct voice pronunciation. All 23 supported voices can speak any supported language.

  • Use ISO 639-1 codes
  • Overrides script-based guessing

Fallback options

If a specific language is unsupported, the system may fall back to English. Supported languages include Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, and Turkish.

  • Vietnamese and Thai are not supported
  • Check /v1/voices for full list

Testing your integration

Sound wave illustration for: Testing your integration

To verify your integration, start by sending a simple request. This confirms connectivity and validates your API key before you commit to larger payloads.

Use curl example

Run the provided curl command to send a short text string. Check the response for a 200 status code and a valid audio file download link.

  • Replace YOUR_API_KEY with your actual key.
  • Ensure base_url points to https://api.sensai777.cc/v1.

Test with SDK

Use the OpenAI SDK with the adjusted base URL. This ensures your code integrates smoothly with standard libraries without custom HTTP clients.

  • Install the official OpenAI SDK.
  • Set base_url to the API endpoint.

Check audio quality

Listen to the generated MP3 or WAV file. Verify that the voice clarity matches your selected preset and that the audio plays correctly in your app.

Deploying to production

Sound wave illustration for: Deploying to production

Before going live, ensure your API key is stored securely in your app’s environment variables rather than hardcoding it in the client-side code. Since each account holds only one active key, keep it safe to prevent unauthorized usage of your balance.

Secure your key

Rotate your key periodically via the dashboard if you suspect exposure. A new key instantly invalidates the old one, ensuring seamless security without downtime.

Monitor limits

Track your usage through the dashboard to stay within the 60 requests per minute limit. If your app spikes, requests may queue, so monitor latency closely.

Scale as needed

Since there are no monthly plans or seat limits, you can scale usage freely as your user base grows. Just ensure your USDT top-ups keep pace with consumption.

Common pitfalls

Sound wave illustration for: Common pitfalls

Avoiding common integration hurdles ensures your voice notifications arrive smoothly without unexpected interruptions or wasted credits. Understanding the specific constraints of the API helps you design a resilient user experience.

Character limits

Each request accepts a maximum of 4096 characters. If your notification text exceeds this, you must split the input into smaller chunks, generate audio for each, and join the files. Remember that spaces and punctuation count toward this limit.

Rate limits

You are allowed 60 requests per minute per key. New accounts start with a lower limit of 10 requests per minute until the first top-up is processed. If you exceed the limit, requests will be queued or rejected.

Format issues

Ensure you select a supported response format such as mp3, wav, opus, flac, or pcm. Mismatched headers or incorrect MIME types can prevent your app from playing the generated audio correctly. Always verify the returned file type matches your player.

Next steps

Sound wave illustration for: Next steps

You now have the core integration working. The next phase is refining the user experience by selecting the perfect voice and format for your specific notification type.

Use the /v1/voices endpoint to preview options like Aria for clarity or Milo for friendliness. Experiment with formats like MP3 for efficiency or WAV for high fidelity.

Explore voices

Review the eight available presets to match your app’s tone. Each voice has a distinct character, from Aria’s warm narration to Atlas’s neutral news style.

Remember that any voice can speak any of the 23 supported languages. Use the language parameter to ensure correct pronunciation for non-English text.

  • Aria: Warm, clear narrator
  • Atlas: Neutral, news-style
  • Milo: Friendly, conversational
  • Orion: Deep, documentary

Try different formats

Choose between MP3, WAV, OPUS, FLAC, or PCM based on your bandwidth and quality needs. MP3 is efficient for mobile, while WAV offers uncompressed clarity.

Failed requests are free, so you can test multiple formats without worrying about extra costs. Adjust the speed parameter between 0.25 and 4.0 to optimize playback time.

  • MP3: Efficient, small file size
  • WAV: Uncompressed, high quality
  • OPUS: Modern, efficient codec
  • FLAC: Lossless compression

Build your app

Integrate the API into your bank notification workflow. Use the OpenAI SDK with the custom base_url for easy implementation.

Monitor your usage and balance via the dashboard. Top up with USDT on TRON when needed to keep your service running smoothly.

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. This overrides auto-detection and ensures the correct voice pronunciation.

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. FFmpeg documentation
  3. Tether (USDT)
  4. curl documentation
  5. W3C WAI: making audio and video accessible
  6. LibriTTS-R corpus (OpenSLR 141)
  7. OpenAI API reference: create speech
  8. Creative Commons Attribution 4.0
  9. Python documentation
  10. Node.js documentation
  11. openai-python on GitHub
  12. openai-node on GitHub

More on this site