Frequently asked questions
Why use AI voice for SaaS notifications?
AI voice enhances user engagement by delivering clear, natural-sounding alerts directly in the user’s preferred language. Narative’s API supports 23 languages, including Hindi, ensuring your notifications feel personal and accessible. This approach simplifies your tech stack by replacing complex TTS pipelines with a single, unified endpoint that integrates seamlessly into your application’s notification flow.
How does the API handle Hindi text?
Send your Hindi text to the POST /v1/audio/speech endpoint. The API supports Hindi natively among 23 available languages. You can specify the language code to ensure accurate synthesis, though the system also guesses the language from the script. The result is a high-quality audio file ready for playback in your notification system.
What is the best voice for notifications?
For notifications, clarity and calmness are key. Sage offers a calm, instructional tone perfect for system updates, while Milo provides a friendly, conversational style for user alerts. Aria is another option for clear narration. Choose the voice that best matches your brand’s tone, ensuring users receive information in a consistent, pleasant voice.
How do I detect the language automatically?
The API automatically guesses the language from the script if you do not specify it. For Latin-script text, it defaults to English. For Hindi or other non-English scripts, it attempts detection. However, for non-English Latin-script text, we recommend explicitly setting the language parameter to ensure accurate synthesis and avoid misinterpretation.
Can I play the audio directly in the browser?
Yes, the API returns audio files in formats like mp3, wav, opus, flac, or pcm. You can directly embed these files in your browser using standard HTML5 audio tags. This allows seamless playback of notifications without requiring additional backend processing or conversion steps, enabling instant audio delivery to your users.
How do I handle large volumes of notifications?
Split texts into parts of up to 4096 characters and join the audio files. The API processes requests sequentially, so under load, a request may wait in a queue. With a rate limit of 60 requests per minute per key, plan your volume accordingly. Failed requests are free, ensuring you only pay for successful synthesis.
What is the difference between tts-1 and tts-1-hd?
Both tts-1 and tts-1-hd use the same engine and price. The difference lies in audio quality: tts-1-hd offers higher fidelity, though both use the same engine. Since pricing is identical, you can choose tts-1-hd for premium notifications or tts-1 for standard alerts, depending on your quality requirements without any cost penalty.
Do I need a backend to use the API?
No, you can call the API directly from your frontend using the OpenAI SDK or plain HTTP. Just change the base_url to https://api.ppn88.info/v1 and use your API key. However, for security, consider hiding your key in a backend proxy if you are exposing it to end-users in your application.
How do I calculate costs for notifications?
Cost is $10 per 1 million characters, or $0.01 per 1,000 characters. Spaces and punctuation count as characters. Failed requests are free. You can track your usage and balance in your account dashboard. This transparent pricing model helps you predict costs accurately based on the character length of your notifications.
Is the API suitable for real-time notifications?
The API is suitable for near real-time notifications, with typical speed of roughly real time on long texts. Short phrases take a few seconds to generate. Requests are processed sequentially, so under load, a request may wait in a queue. For immediate feedback, consider pre-generating audio for common notifications.
Can I change the voice after generating audio?
No, once the audio file is generated, the voice is fixed. To change the voice, you must send a new request to the API with the desired voice parameter. The API does not support post-generation voice modification or SSML, so choose your voice carefully before synthesis.
How do I ensure audio quality?
Use the tts-1-hd model for higher fidelity. Ensure your text is clear and within the 4096 character limit. Specify the correct language to avoid synthesis errors. The API uses licensed recordings from LibriVox, ensuring high-quality synthetic speech. You can also experiment with different voices to find the best fit for your notifications.
What happens if the API is down?
We do not offer an SLA or uptime guarantee. If the API is down, requests may fail. Failed requests are free, so you are not charged for unsuccessful synthesis. You can retry the request later. Monitor your account dashboard for status updates, as support is available by email only for any issues.
Do I need to pay for every notification?
You pay only for successful synthesis, based on the character count. Failed requests are free. The cost is $0.01 per 1,000 characters. You can manage your balance via USDT top-ups. There are no monthly plans or minimum spends, so you only pay for the notifications you actually receive.
Understanding the Use Case
Voice notifications transform static SaaS alerts into engaging, human-centric interactions. By integrating speech synthesis directly into your application, you enable users to receive critical updates without needing to read lengthy emails or push notifications. This approach is particularly valuable for users who are multitasking or have visual impairments, allowing them to consume information passively while continuing their workflow.
Voice Notifications in SaaS
In modern SaaS platforms, notifications often become a source of friction. Users may miss important system alerts, billing updates, or collaboration requests buried in their inbox. By delivering these messages as audio, you reduce cognitive load and ensure that time-sensitive information is heard immediately, regardless of the user's current screen activity.
Why Hindi Voice Matters
Hindi is spoken by over 600 million people, making it a critical language for global SaaS expansion. While many platforms offer English or major European languages, Hindi support is often limited or robotic. Using our API, you can provide a natural, high-quality Hindi voice that resonates with users in India and the diaspora, ensuring inclusivity and broader market reach.
- Supports 23 languages, including Hindi
- Natural, licensed voice presets
- No custom cloning needed
User Experience Benefits
A Hindi voice notification enhances user experience by providing a familiar, comforting tone. It reduces the need for users to switch contexts to read text, allowing for seamless consumption of information. This is especially beneficial for automated notifications like password resets, shipping updates, or appointment reminders, where clarity and speed are paramount.
Preparation Steps
Narative simplifies the onboarding process for SaaS teams, allowing you to integrate Hindi voice notifications in minutes. Start by creating an account via Google or email on the /get-api-key/ page. This single step grants you access to the dashboard where your API credentials and usage statistics are displayed immediately.
Create an Account
Sign up using your Google account or an email and password combination. Accounts are specific to the ppn88.info domain. Upon registration, you receive a free trial credit of $0.50, valid for 7 days, which covers approximately 50,000 characters of text-to-speech generation.
Obtain API Key
After signing in, navigate to the dashboard to view your unique API key. The key format begins with 'tts-'. You can issue a new key at any time, which instantly invalidates the previous one. Ensure you store this key securely, as it is required for all API requests.
- Key format: Bearer tts-...
Choose a Voice Preset
Narative offers eight voice presets, all capable of speaking Hindi. For notifications, select a voice that matches your brand tone, such as 'aria' for clear narration or 'felix' for energetic updates. These voices are based on licensed recordings, ensuring high-quality synthetic speech with an inaudible watermark.
Technical Implementation
Integrate Narative into your SaaS notification pipeline by sending a JSON payload to the speech endpoint. The request requires a model identifier, the input text, and a voice preset. You can control the output format and playback speed to match your application’s user interface requirements.
Construct JSON Payload
Create a JSON object containing the model (e.g., "tts-1"), input text, and voice preset. For Hindi notifications, ensure the language field is explicitly set to "hi" to prevent default English detection. The input text must not exceed 4096 characters.
- Include
model,input,voice, andresponse_format. - Add
languageparameter for Hindi to ensure correct synthesis.
Set Required Headers
Attach your API key to the Authorization header using the Bearer token scheme. This authenticates your request against the Narative API. Ensure the header is correctly formatted to avoid authentication errors during the synthesis process.
Send POST Request
Send the prepared payload to https://api.ppn88.info/v1/audio/speech using a POST request. The API returns the audio file directly in the response body. You can then save the data for later playback or pipe it to a client audio player.
Handling the Response
The API returns the synthesized audio directly in the response body, eliminating the need for polling or waiting for a separate job. The endpoint delivers the file in the format you specified, allowing your application to handle the binary data immediately for playback or processing.
Receive Audio File
Upon a successful POST request, the response body contains the audio file itself. The HTTP status code is 200, and the Content-Type header indicates the format (e.g., audio/mpeg for mp3). Your code should read this binary stream directly into memory or write it to a temporary file for immediate use in your SaaS notification interface.
- Direct binary response in the body
- Standard HTTP 200 status on success
- Content-Type matches requested format
Store or Stream Audio
Since generated audio is not stored on our servers, you must manage the lifecycle of the file in your own infrastructure. For real-time user notifications, pipe the response stream directly to the client’s audio player. For asynchronous alerts, save the file to your object storage (e.g., S3) with a defined retention policy to manage costs.
- Stream directly to client audio player
- Save to object storage for async use
- Manage local file retention policies
Handle Errors Gracefully
If synthesis fails, the API returns an error status code (e.g., 4xx or 5xx) with a JSON body explaining the issue. Crucially, failed requests are free, so you can retry them without incurring character costs. Ensure your application logs these errors and implements retry logic with exponential backoff to handle transient queue delays under load.
- Error details in JSON body
- Failed requests are free
- Implement retry logic with backoff
Scaling for Multiple Users
As your SaaS application scales to support multiple users, managing the 60 requests-per-minute rate limit per key becomes critical. Without proper oversight, concurrent notification triggers can exceed this threshold, causing delays or temporary service interruptions.
Manage Rate Limits
Each API key is capped at 60 requests per minute. For high-volume notification workflows, ensure your backend logic respects this limit to maintain consistent delivery speeds.
- 60 requests per minute per key
- 10 requests per minute before first top-up
Queue Requests if Needed
When demand exceeds the rate limit, process requests sequentially. Since synthesis takes roughly real-time (25 characters per second), queuing ensures no audio file is lost due to overload.
Monitor Usage Statistics
Track your character consumption and request status via the dashboard. Regular monitoring helps you anticipate scaling needs and ensures your balance remains sufficient for global user bases.
Testing and Validation
Before committing to a full integration, use your $0.50 free trial credit to validate that the API meets your specific notification needs. This initial test allows you to verify connectivity and response times without financial risk.
Use Free Trial Credit
The free trial provides approximately 50,000 characters of usage, valid for 7 days after signing in with Google. This is sufficient to run multiple test scenarios and confirm that the API responds correctly to your SaaS environment.
- Valid for 7 days post-sign-up
- Approx. 50,000 characters included
- No credit card required for Google sign-in
Test with Sample Texts
Send short and long texts to verify character limits and generation speed. Test various Hindi phrases alongside English to ensure accurate pronunciation and tone for both native and non-native speakers.
- Test under 4096 character limits
- Verify Hindi script accuracy
- Check multi-language mixed inputs
Verify Audio Quality
Listen to the returned audio files in MP3 or WAV format to assess clarity. Ensure the voice preset matches your brand’s tone and that the audio is playable in your application’s interface.
- Supports MP3, WAV, OPUS, FLAC, PCM
- Real-time generation speed
- Inaudible synthetic watermark present

Optimizing for Performance
Optimizing performance ensures your SaaS notifications deliver audio files quickly without exceeding API constraints. By intelligently managing text length, speed, and file formats, you maintain smooth user experiences even during peak usage periods.
Split Long Texts
The API accepts up to 4096 characters per request. For longer notification messages, split the text into chunks and generate separate audio files. Join these files programmatically to create a continuous audio file for the user.
- Limit input to 4096 characters
- Join multiple audio files sequentially
- Preserve context across splits
Adjust Speed Settings
Use the speed parameter (0.25–4.0) to control playback rate. Faster speeds reduce generation time slightly, but realistic speech remains the priority. Test different speeds to find the best balance between clarity and latency for your Hindi notifications.
- Range: 0.25 to 4.0
- Test clarity vs. speed
- Default is usually optimal
Choose Efficient Formats
Select mp3 for smaller file sizes and faster transmission, or wav for high fidelity. opus offers excellent compression. Select mp3 for smaller file sizes and faster transmission, or wav for high fidelity. opus offers excellent compression. Avoid flac or pcm unless uncompressed quality is strictly required, as they increase bandwidth and storage costs significantly.
- mp3: best for web delivery
- wav: highest quality
- opus: efficient compression
Language Detection Nuances
Accurate language handling ensures your Hindi notifications sound natural. While the API attempts to guess the language from the text script, explicit configuration prevents misinterpretation, especially for mixed-language content common in SaaS interfaces.
Explicit Language Parameter
Always set the language field to hi when sending Hindi text. This guarantees the engine selects the correct vocal patterns from your chosen voice preset, avoiding awkward intonations that occur when English defaults apply to non-English text.
Default English Behavior
If you omit the language field, the system defaults to English for Latin-script input. This means Hindi text written in Latin script (Hinglish) might be read with an English accent, which can confuse users expecting native pronunciation.
Script-Based Detection
The API detects language primarily by script. Devanagari script is reliably identified as Hindi. However, for optimal results, explicitly defining the language parameter remains the best practice for production SaaS notifications to ensure consistent user experience.
Security and Key Management
Protecting your API key ensures that your Narative credits are used exclusively by your application. Since each account holds only one active key at a time, losing access or exposing it can disrupt your notification pipeline instantly.
Secure storage prevents unauthorized usage and keeps your billing accurate. Regular rotation and monitoring provide a simple, effective security layer without requiring complex infrastructure.
Secure Key Storage
Store your tts-... key in environment variables or a secure secrets manager, never in client-side code or public repositories. This prevents accidental exposure during debugging or version control pushes.
- Use environment variables for backend services.
- Avoid hardcoding keys in source files.
- Encrypt keys at rest if stored in databases.
Rotate Keys Regularly
You can issue a new key at any time via the dashboard. When you do, the old key stops working immediately, ensuring that any compromised credential is instantly invalidated without downtime.
- Generate new key from the dashboard.
- Update application config immediately.
- Old key ceases access instantly.
Monitor Key Usage
Track your balance, characters used, and request history in the account dashboard. This visibility helps you detect unusual activity or unexpected costs before they impact your production notifications.
- Check balance and character count daily.
- Review request logs for anomalies.
- Set alerts for low balance.
Common Integration Pitfalls
Developers often overlook the 60 requests per minute limit, causing sudden pauses in notification delivery during peak usage. Without monitoring, your SaaS might silently drop alerts if the queue backs up.
Character counting errors lead to unexpected costs or truncated audio, as every space and punctuation mark counts toward the 4096-character limit per request.
Ignoring Rate Limits
The API enforces a strict limit of 60 requests per minute per key. If your SaaS triggers notifications for thousands of users simultaneously, requests may queue or fail if you do not implement exponential backoff or distributed rate limiting.
- Monitor usage via the dashboard to stay below 60 req/min.
- Implement retry logic with jitter for failed requests.
- Note that pre-top-up accounts are limited to 10 req/min.
Mismatched Character Counts
Each request supports up to 4096 characters, including spaces and punctuation. Exceeding this limit causes the API to reject the request, resulting in no audio generation and no charge. For longer notifications, you must split the text and concatenate the resulting audio files.
- Count characters accurately before sending the POST request.
- Split texts into chunks of 4096 characters or less.
- Join audio files server-side if the text exceeds the limit.
Incorrect Format Selection
Choosing an unsupported format or mismatching your client’s playback capabilities can lead to broken audio experiences. Ensure your SaaS player supports the format you select from mp3, wav, opus, flac, or pcm, and verify that the response_format field matches your infrastructure.
- mp3 is widely supported and offers good compression.
- pcm is uncompressed, resulting in larger file sizes.
- opuses provide efficient storage but require specific player support.
Support and Resources
Narative provides comprehensive API documentation at /docs/ to guide your integration, covering all endpoints, parameters, and code examples. This resource ensures you can implement Hindi voice notifications efficiently without guessing configuration details.
While we do not offer live chat or phone support, our documentation serves as the primary reference for developers. It is regularly updated to reflect the current state of the API, including rate limits and voice presets.
API Documentation
The /docs/ page details every endpoint, including the POST request for speech synthesis and the GET requests for voices and models. It explains the JSON structure, required headers, and response formats like mp3 and wav.
You will find ready-to-use curl examples and explanations of the 8 voice presets, helping you select the right tone for your Hindi notifications.
- Full endpoint reference
- JSON body examples
- Error code explanations
Community Forums
Currently, Narative does not maintain an official community forum or discussion board. We focus our resources on direct developer support through documentation and email.
Email Support Access
For specific integration issues, billing questions, or technical problems, contact us via email. This is our sole support channel, as we do not offer phone or live chat options.
Include your API key and request details in your email to help us resolve issues quickly. We aim to provide clear, factual answers to your queries.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Understanding cost predictability is vital for SaaS notification systems.
23 languages
Any voice speaks any of these languages.
Sources and further reading
- Wikipedia
- ISO 639 language codes
- W3C WAI: making audio and video accessible
- LibriTTS-R paper (arXiv 2305.18802)
- LibriVox public-domain audiobooks
- Creative Commons Attribution 4.0
- MDN: Web Speech API
- IETF RFC 7845: Ogg Opus
- LibriTTS-R corpus (OpenSLR 141)
- Node.js documentation
- curl documentation
- Python documentation
