Frequently asked questions
Which voice is best for notifications?
A: Use aria for warm, clear narration or felix for energetic promos. Since the API lacks emotion tags, suitability depends on your specific UI context rather than a single "best" voice. We recommend testing both presets to determine which best complements your application's interface without sounding robotic.
Can I change the voice dynamically?
Yes. Each API request accepts a voice parameter. You can switch between all eight presets—aria, nova, luna, sage, felix, milo, atlas, orion—per request. This allows dynamic voice selection based on user preferences or content type without needing separate audio files or complex streaming setups.
How do I handle language detection?
Set the language field to the ISO code for non-English Latin-script text. If omitted, the system guesses from the script, defaulting to English for Latin text. Explicitly setting the language ensures accuracy for languages like German, French, or Spanish, preventing misinterpretation of the input text.
What format is best for mobile?
Use mp3 for broad compatibility or opus for smaller file sizes. Both are supported via response_format. Opus offers better compression for mobile data usage. MP3 remains the safest choice for legacy players. Avoid WAV or FLAC unless uncompressed quality is strictly required, as they increase bandwidth costs.
How do I speed up slow audio?
Adjust the speed parameter between 0.25 and 4.0. The default is 1.0. Increasing speed reduces generation time and file size. Note that requests are processed sequentially, so higher speeds may not reduce queue wait times. Test 1.5x or 2.0x for optimal balance between clarity and speed.
Can I pause and resume audio?
No streaming or WebSocket support exists. You receive a complete audio file. Pause/resume depends on your client-side player. The API does not provide partial audio chunks. You must download the full file before playback can be controlled. This simplifies implementation but removes real-time interactivity.
Do I need to download the audio?
The API returns the audio file in the response body. You can stream it directly to your player or save it. It is not stored server-side. Downloading is optional but recommended for caching. Ensure your client handles the response format correctly, whether mp3, wav, opus, flac, or pcm.
How do I handle rate limits?
You are limited to 60 requests per minute per key. New accounts start with 10 requests per minute. Implement exponential backoff if you hit the limit. Monitor your usage via the dashboard. Split long texts into 4096-character chunks to manage queue times and stay within safe operational thresholds.
Is the watermark audible?
Yes, every generated file contains an inaudible watermark that marks it as synthetic speech. It does not affect audio quality or playback. The watermark is embedded in the audio data itself. Users cannot easily detect it, but it serves as a marker for synthetic content verification.
Can I use the same voice for all users?
Yes. You can assign a single voice, such as atlas for news or luna for storytelling, to all users. This ensures brand consistency. Alternatively, allow users to choose from the eight presets. The API supports any voice per request, making uniform or personalized delivery equally simple.
How do I cache audio responses?
Cache the returned audio file on your client or CDN. Since input text is not stored, you must cache based on the text hash or request parameters. Use cache headers to reduce repeated API calls. This saves costs and improves load times for repeated notifications or UI elements.
What happens if the API is down?
Failed requests are free; charges are returned in full. There is no SLA or uptime guarantee. If the API is unavailable, your requests will fail, and you will not be billed. Implement retry logic with backoff. Monitor status via standard HTTP response codes to handle errors gracefully.
Can I mix text and audio?
Yes, mix generated audio with other media in your UI. The API returns standard audio files. You can overlay them with video or images. No special format is required. Just ensure your player supports the chosen response format. This allows flexible content creation without complex synthesis pipelines.
Is the API suitable for live captions?
No, it is not ideal for live captions. Requests are processed sequentially, causing latency. Short phrases take a few seconds. For live use, pre-generate audio or use a faster local engine. The API is better for static notifications or on-demand playback where real-time response is not critical.
Choosing the Right Voice
Selecting the appropriate voice preset directly influences user engagement in SaaS interfaces. The API provides eight distinct presets, each optimized for specific tonal requirements ranging from clear narration to energetic promotions. Choosing the correct voice ensures your audio notifications align with the context of the notification, whether it is a system alert or a user onboarding message.
Aria for Narration
Aria offers a warm, clear narrative tone ideal for explanatory content or detailed status updates. Use this preset when delivering longer, information-dense messages where accuracy and tone are paramount.
- Warm and clear narrative style
- Ideal for detailed status updates
- Ensures high comprehension of complex info
Nova for Upbeat Alerts
Nova delivers a bright, upbeat sound perfect for time-sensitive notifications or positive interactions. Its energetic character grabs attention effectively without sounding aggressive. This preset is well-suited for low-stakes alerts, such as welcome messages or minor achievement notifications, where a friendly tone encourages immediate user attention.
- Bright and upbeat delivery
- Effective for grabbing attention
- Suitable for welcome or minor alerts
Luna for Storytelling
Luna provides a soft, storytelling voice that creates a more immersive experience. This preset is best reserved for longer-form content or guided tours within your application. Its gentle cadence helps maintain user interest during extended audio playback, making it ideal for onboarding sequences or detailed feature explanations.
- Soft, immersive storytelling style
- Ideal for guided tours
- Maintains interest during extended playback
Language Selection
Selecting the correct language parameter ensures accurate pronunciation, as the API guesses the language from the script by default (defaulting to English for Latin text). Explicitly setting the language code prevents misinterpretation for non-English Latin-script texts.
Auto-Detection vs. Explicit
The API infers language from the input script, defaulting to English for Latin characters. For mixed-language content or ambiguous scripts, explicitly passing the ISO language code guarantees the correct voice model processes the text.
Non-English Latin Text
Latin-script languages like Spanish, French, or German are not automatically distinguished from English. Without an explicit language field, the engine defaults to English pronunciation. Always specify the target language to ensure accurate pronunciation.
23 Language Coverage
Our engine supports 23 languages, 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 can speak any of these languages.
Unsupported languages include Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, and Bengali.
- Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, Turkish
Audio Format Optimization
Selecting the correct audio format balances file size, compatibility, and quality. The API supports MP3, WAV, OPUS, FLAC, and PCM, allowing you to optimize delivery based on your SaaS infrastructure constraints.
MP3 for Compression
MP3 provides efficient compression for general use. It reduces bandwidth usage while maintaining acceptable audio quality, making it ideal for standard UI notifications where file size matters more than pristine fidelity.
WAV for Quality
WAV offers uncompressed, high-quality audio. Use this format when audio clarity is critical, such as in high-fidelity audio players or when processing audio further, accepting the larger file size overhead.
OPUS for Bandwidth
OPUS delivers superior compression efficiency, often outperforming MP3 at similar bitrates. It is optimal for mobile applications or low-bandwidth environments, ensuring fast loading times for SaaS interfaces without significant quality loss.
Handling Long Texts
Long texts exceed the single-request limit of 4,096 characters. Your application must split the input string into chunks that fit this constraint before sending them to the API.
Each chunk generates a separate audio file. Your backend logic must retrieve these files and concatenate them into a single audio file to ensure a seamless listening experience for your users.
4096 Character Limit
The API enforces a strict 4,096 character limit per request. Spaces, punctuation, and special characters count toward this total. Exceeding the limit returns an error without generating audio.
Plan your splitting algorithm to preserve word boundaries where possible, preventing awkward pauses at chunk boundaries.
- Max 4,096 characters per request
- Spaces and punctuation count as characters
- Exceeding limit returns an error
Splitting and Joining
Split your input text into manageable chunks, then send each sequentially. The API returns individual audio files for each chunk. Your system must download and join these files in order.
Use standard audio libraries to merge the files. Ensure the concatenation preserves the audio format specified in your request (mp3, wav, opus, flac, or pcm).
- Split text into <4096 char chunks
- Send requests sequentially
- Join audio files in order
User Experience Impact
Processing multiple chunks takes time. Display a progress indicator to the user while the audio is being generated and joined. This prevents confusion during the wait.
For very long texts, generation may take several seconds. Consider caching the result if the text is static, reducing latency for subsequent plays.
- Show progress indicators
- Wait for all chunks to process
- Cache results for static text
Speed Control
Speed control allows you to adjust the synthesis rate without changing the voice characteristics. The default setting provides a balanced, natural pacing suitable for most SaaS notification contexts.
Default Speed
By default, the API generates audio at a standard pace. This baseline works well for general UI components and standard system alerts where clarity is prioritized over dramatic effect.
Range 0.25 to 4.0
The API accepts a speed parameter ranging from 0.25 to 4.0. Values below 1.0 slow the speech, while values above 1.0 accelerate it. This range accommodates both detailed instructional content and rapid status updates.
- 0.25: Very slow, suitable for complex data reading.
- 1.0: Standard natural pace.
- 2.0-4.0: Fast, ideal for brief system notifications.
User Preference
Implementing speed control lets users tailor audio consumption. Users can speed up routine alerts or slow down critical instructions. This flexibility improves accessibility for diverse cognitive processing needs.
Error Handling in UI
Generating speech in UI components requires robust error handling to maintain a smooth user experience. Since requests are processed sequentially, high load can cause queuing delays, making it essential to distinguish between transient network issues and service-level constraints like rate limits.
Properly communicating these states prevents user frustration and ensures that notifications are delivered reliably without overwhelming the backend or consuming unnecessary credits on failed attempts.
Rate Limit Messages
The API enforces a limit of 60 requests per minute per key. If exceeded, the UI should display a clear message indicating temporary unavailability rather than a generic error. For new accounts before the first top-up, the limit is stricter at 10 requests per minute.
Displaying a countdown or a simple 'Please wait' state helps users understand that the delay is due to system capacity, not a broken feature. This transparency maintains trust during peak usage periods.
- Check HTTP 429 status codes for rate limit confirmation.
- Display a user-friendly message like 'Speech generation is temporarily busy. Please try again in a moment.'
- Avoid retrying immediately; implement exponential backoff to respect the 60 requests/minute limit.
Network Errors
Network interruptions can occur during the POST request to https://api.net8.info/v1/audio/speech. If the connection drops, the UI should allow the user to retry without losing the input text. Failed synthesis requests are free, so retries do not incur additional costs.
Ensure that the UI handles timeouts gracefully. Short phrases may take a few seconds to generate, so set reasonable timeout thresholds to distinguish between slow generation and actual connection failure.
- Implement retry logic with a maximum of 3 attempts for transient errors.
- Show a loading state that clearly indicates speech is being generated.
- Verify that the input text is preserved during retry attempts.
Fallback Strategies
If the TTS API is unavailable, consider falling back to browser-native Web Speech API for immediate audio feedback, or simply display the text notification. This ensures that the user still receives the notification even if the cloud service is down.
For critical notifications, you might pre-generate common alerts and store them as static audio files. This reduces dependency on the API for frequently used sounds and ensures instant playback.
Log all errors with timestamps and status codes for later debugging. This helps identify patterns in failures, such as specific voice models or languages that cause issues.
- Use browser-native Web Speech API as a fallback for immediate feedback.
- Pre-generate and store common alerts as static audio files.
- Log errors with timestamps and status codes for debugging.
Accessibility Considerations
Audio notifications enhance accessibility but require careful implementation to avoid disrupting screen reader workflows. Developers should ensure that TTS outputs do not interrupt critical UI announcements and provide clear controls for users to mute or adjust volume.
Screen Reader Alternatives
Always provide a text fallback for critical notifications. Relying solely on generated audio can confuse assistive technologies if the audio context is not properly announced to the user.
Audio Clarity
Use high-quality formats like WAV or OPUS to ensure voices are distinct and easy to understand. Clear audio reduces cognitive load for users with hearing impairments.
Watermark Transparency
Every generated file contains an inaudible watermark that marks it as synthetic speech. Disclose this in your privacy policy or UI to maintain trust, especially in professional or legal contexts.

Cost Optimization
Understanding character billing is critical for SaaS budgeting. Every character, including spaces and punctuation, counts toward the $0.01 per 1,000-character rate. Accurate pre-counting prevents unexpected charges from trailing whitespace or redundant notifications.
Implementing caching for identical notification texts reduces API calls significantly. If a user receives the same daily update, storing the generated audio file locally or on CDN avoids re-synthesis. This is especially effective for static UI prompts or recurring system alerts.
Character Counting
Ensure your client-side logic counts all characters, including spaces, before sending the request. This prevents over-spending on redundant API calls for identical content. Failed requests are free, so counting errors do not incur costs, but valid requests do.
Use the input field length as the primary metric. Since the limit is 4096 characters, splitting long texts into smaller chunks ensures predictable billing. Monitor your usage dashboard to track real-time consumption.
- Count spaces and punctuation as characters.
- Split texts at 4096 characters for consistent billing.
- Failed requests do not incur charges.
Caching Strategies
Store generated audio files for static content like welcome messages or error prompts. This eliminates repeated API calls for identical text strings, significantly reducing monthly costs. Use a CDN for global distribution of cached audio.
For dynamic content, cache the API response if the text variation is limited. This approach works well for templated notifications where only variable names change, allowing you to reuse existing audio files.
- Cache static UI audio files.
- Reuse responses for templated notifications.
- Use CDN for global audio distribution.
Trial Usage
New accounts signing in with Google receive $0.50 in trial credit, valid for 7 days. This provides approximately 50,000 characters for testing. Use this period to validate integration and measure character consumption accurately.
Accounts created with email and password start without trial credit. Plan your initial testing budget accordingly. Monitor your balance in the dashboard to avoid service interruption during peak usage periods.
- $0.50 trial for Google sign-ins.
- 50,000 characters valid for 7 days.
- No trial for email/password accounts.
Technical Implementation
SaaS notification systems require non-blocking UI interactions. Send text to POST https://api.net8.info/v1/audio/speech via asynchronous HTTP requests. This prevents the main thread from freezing while the server synthesizes audio, allowing the user interface to remain responsive during generation.
Async Requests
Use standard fetch or your preferred HTTP client. Pass your Authorization: Bearer key in the header. The API returns the audio file directly in the response body, eliminating the need for a secondary polling endpoint.
- Set a reasonable timeout (e.g., 30s) for slow generations.
- Handle 429 errors by implementing exponential backoff for rate limits.
Progress Indicators
Since responses are not streamed, show a loading spinner or progress bar while waiting for the response. Display a subtle message like "Generating audio..." to inform users that the request is processing.
Audio Playback
Once the response arrives, create a Blob from the binary data and pass it to the HTML5 <audio> element. This allows immediate playback without downloading a separate file to the client's storage.
Voice Variety
The API provides eight distinct voice presets to suit different SaaS notification contexts. Female voices include Aria for clear narration, Nova for upbeat alerts, Luna for storytelling, and Sage for instructional content. Male options feature Felix for energetic promos, Milo for conversational tones, Atlas for neutral news, and Orion for deep documentary styles.
Female Voices
Aria offers a warm, clear narrator style suitable for onboarding flows. Nova provides a bright, upbeat tone ideal for system notifications. Luna delivers soft storytelling for content updates, while Sage ensures calm, instructional clarity for help documentation.
Male Voices
Felix brings energetic emphasis to promotional messages. Milo creates a friendly, conversational experience for user updates. Atlas maintains a neutral, professional standard for news-style alerts. Orion adds depth for documentary or detailed explanatory content.
Tone Matching
Select voices based on the emotional context of the notification. Match upbeat alerts with Nova or Felix, and critical updates with Atlas or Sage. Ensure the voice aligns with your brand’s established auditory identity.
Data Privacy
Data handling is straightforward: input text is used solely for audio synthesis and is not retained for model training. Generated audio files are returned in the response and not stored on our servers. This ensures that your user’s specific notification content remains ephemeral and private.
Only request metadata—such as timestamp, character count, and status—is kept to support accurate billing. This minimal retention policy simplifies compliance for SaaS products without sacrificing transparency or auditability.
Text Usage
The text you send to the API is processed exclusively to generate the requested audio file. Once the synthesis is complete, the input text is not archived or linked to long-term storage. This means your users’ notification messages are not preserved after the audio is delivered, reducing data exposure.
This approach is designed for transient content like UI sounds or push notifications, where the text itself is not the primary asset being stored by your application.
- Input text is ephemeral
- No long-term text storage
No Training Data
We do not use your input text to train or improve our TTS models. Every synthesis request is treated as a standalone transaction. Your data remains yours, ensuring that proprietary notification copy or user-specific messages are not ingested into our training datasets.
This separation is critical for enterprise-grade privacy where even training data usage can be a compliance concern.
- Text is not used for training
- Standalone transactions
Metadata Retention
We retain request metadata including timestamp, character count, and status to facilitate accurate billing and debugging. This data is necessary to verify usage and process refunds for failed requests but does not include the actual text or audio content.
This metadata is kept solely for operational and billing purposes and is not used for any other analytical or training purposes.
- Metadata kept for billing
- No text/audio retention
Monitoring and Debugging
Monitoring your TTS integration requires tracking API usage and debugging request failures. The API provides usage metrics through the dashboard, allowing you to monitor character consumption and request status. This data helps you optimize costs and identify performance bottlenecks in your SaaS notifications.
Debugging involves analyzing response codes and rate limit headers. Since requests are processed sequentially, understanding queue delays is crucial for setting appropriate user expectations. Logging request IDs enables precise correlation between your application logs and the API's billing records.
API Logs
Every request generates a log entry containing the timestamp, character count, and status code. These logs are retained for billing reconciliation and can be reviewed to verify that failed requests were charged correctly.
Logs include the specific model used (tts-1 or tts-1-hd) and the voice preset, helping you audit which voices are most frequently used in your application.
- Retains request metadata for billing verification
- Includes model and voice details for auditing
Usage Dashboard
The dashboard on /get-api-key/ displays your current balance, characters remaining, and historical usage trends. This interface allows you to monitor your TRC-20 top-ups and ensure sufficient credit for production workloads.
You can view real-time character consumption against your 60 requests-per-minute limit, helping you adjust your application's request frequency to avoid throttling.
- Displays real-time balance and character usage
- Shows historical trends for capacity planning
Error Tracking
Common errors include rate limiting (429) and invalid input (400). Implementing retry logic with exponential backoff helps manage transient network issues or queue delays under load.
Failed requests are free, so you can safely retry without incurring extra costs. Log the error message and status code to distinguish between client-side issues (e.g., invalid voice ID) and server-side constraints.
- Handle 429 Rate Limit errors with backoff
- Retry failed requests without additional cost
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Clear audio reduces cognitive load for users with hearing impairments.
23 languages
Any voice speaks any of these languages.
