Frequently asked questions
What is text-to-speech conversion?
Text-to-speech (TTS) is a cloud API that converts written text into audio files. You send a JSON request with your script, and the service returns synthesized speech. It allows fitness and meditation apps to turn scripts into audio without managing complex infrastructure or recording studios.
How does a TTS API work?
Send a POST request to the /v1/audio/speech endpoint with your text, voice selection, and format. The API processes the input and returns an audio file. You can use standard OpenAI SDKs by adjusting the base URL, making integration straightforward for developer teams building meditation applications.
Which voice is best for meditation?
Luna and Sage are well-suited for meditation. Luna offers a soft, storytelling tone, while Sage provides a calm, instructional voice. Since any voice can speak any supported language, you might also try Atlas for neutral guidance or Orion for a deeper, documentary-style narration. Choose the preset that best matches your app’s specific atmosphere and user experience goals.
Can I control the speed of the speech?
Yes, you can adjust the speech speed between 0.25 and 4.0. This allows you to slow down instructions for clarity or speed up content for quick reminders. Adjusting speed helps tailor the audio experience to different meditation styles or user preferences within your application.
How long does it take to generate audio?
Generation takes roughly real time, about 25 characters per second. Short phrases may take a few seconds, while longer scripts process sequentially. Requests are queued under load, so generation time scales with text length. This predictable timing helps you manage user expectations in your app.
What formats can I download the audio in?
You can receive audio in mp3, wav, opus, flac, or pcm formats. Choose the format that best fits your app’s performance needs and storage constraints. All formats are generated directly from the same engine, ensuring consistent quality regardless of the file type you select.
Do I need to pay for every character?
Yes, billing is based on character count, including spaces and punctuation. The rate is $10 per 1 million characters. Failed requests are free, so you only pay for successful audio generation. This transparent model helps you budget accurately for your meditation app’s audio content.
Is there a limit to how long a script can be?
Each API request supports up to 4,096 characters. For longer meditation scripts, split the text into parts and join the resulting audio files. This approach allows you to create extended sessions without hitting the per-request limit, ensuring your app can handle any script length.
Can I use this for commercial apps?
Yes, the API is designed for developers building applications, including commercial fitness and meditation products. Generated audio is returned in the response and not stored, keeping your data private. Use the API to power your app’s audio features without worrying about complex licensing or infrastructure management.
Do I need technical skills to use the API?
Basic technical skills are helpful but not extensive. You send a JSON POST request with text and parameters. Standard OpenAI SDKs work by changing the base URL. If you can write a simple HTTP request, you can integrate the TTS API into your meditation app quickly.
How do I handle long meditation scripts?
Split scripts into chunks of 4,096 characters or less. Send each chunk as a separate request and join the audio files. This method ensures efficient processing and avoids hitting the character limit. It allows you to create seamless, long-form meditation sessions for your users.
What happens if the API is slow?
Requests are processed sequentially, so high load may cause queuing delays. Generation speed remains roughly real-time, but wait times increase under heavy usage. You can monitor status and retry failed requests, which are free, ensuring you only pay for successfully generated audio files.
Is the audio quality consistent?
Yes, the engine delivers consistent synthetic speech with an inaudible watermark. Quality depends on the chosen voice preset, such as Luna for soft tones. All outputs use the same high-standard engine, ensuring reliable audio quality across your meditation app’s different sessions and features.
Can I change the voice after generating audio?
No, you must regenerate the audio with the new voice. The API returns a fixed audio file based on the initial request parameters. To change the voice, send a new request with the desired voice preset. This ensures each audio file matches your specific design needs.
Understanding text-to-speech conversion
Text-to-speech (TTS) technology converts written text into audible audio files, allowing meditation apps to deliver scripted content without recording studio sessions. Instead of relying on static audio files, APIs generate unique audio on demand, enabling dynamic content updates and personalized user experiences.
What is TTS technology?
TTS synthesizes speech from text input, producing audio files like MP3 or WAV. It eliminates the need for human voice actors for every script variation, making it ideal for fitness and meditation products that require frequent content updates.
- Converts text to audio instantly
- Supports multiple languages and voices
- Generates unique audio per request
How synthetic speech is generated
The API processes text through neural models trained on licensed recordings, such as LibriTTS-R. It generates audio in real-time, with synthesis taking roughly 25 characters per second for long texts. Short phrases may take a few seconds due to queueing.
- Neural network-based synthesis
- Real-time generation
- Inaudible watermarking for synthetic detection
Why APIs are better than static files
APIs allow dynamic content generation, ensuring scripts can be updated without re-downloading entire audio libraries. They also handle character limits automatically by splitting long texts, ensuring consistent quality and reducing storage overhead in your app.
- Dynamic content updates
- Automatic text splitting
- Reduced storage costs
Choosing the right voice for meditation
Selecting the right voice sets the tone for your meditation app. AuraSpeak offers distinct presets to match different content styles, ensuring your audio feels intentional rather than generic. Each voice is built from licensed recordings, providing a consistent, high-quality baseline for your users' experience.
Why Luna is ideal for storytelling
Luna’s soft, storytelling delivery is perfect for guided meditations and narrative-driven sessions. Her gentle cadence helps listeners relax without distraction, making her the default choice for deep breathing exercises or visualisation tracks where a calm, immersive presence is key.
Sage for instructional fitness content
When clarity matters more than ambiance, Sage provides a calm, instructional tone. She excels in fitness routines or yoga instructions where precise cues need to be understood quickly. Her delivery is clear and unhurried, ensuring users never miss a step during a workout.
Aria for warm, clear narration
Aria offers a warm, clear narrator voice that strikes a balance between friendliness and professionalism. She is well-suited for daily affirmations or mindfulness tips where a slightly more engaging tone keeps users connected. Her versatility makes her a reliable option for varied content types.
Technical requirements for product teams
Product teams need a straightforward way to integrate the AuraSpeak API into their meditation and fitness apps. By using standard HTTP requests or the OpenAI SDK, you can send text and receive audio files without managing complex infrastructure.
The API accepts JSON bodies with specific fields like model, input, and voice. This simplicity allows developers to focus on user experience rather than audio encoding details.
API integration basics
Start by sending a POST request to the https://api.good888ok.com/v1/audio/speech endpoint. Include your Authorization: Bearer key and the text you want converted. The API returns the audio file directly in the response.
You can use the official OpenAI SDKs by changing the base_url to https://api.good888ok.com/v1. This makes integration familiar for teams already using OpenAI-style clients.
- Endpoint:
POST https://api.good888ok.com/v1/audio/speech - Auth:
Bearer tts-...key - SDK: Compatible with OpenAI Python/JS clients
Handling audio playback in apps
Once you receive the audio file, store it locally or play it directly in your app’s audio player. Supported formats include MP3, WAV, OPUS, FLAC, and PCM.
For meditation apps, MP3 is often sufficient for balance between quality and file size. WAV offers uncompressed quality for short phrases.
- Formats: MP3, WAV, OPUS, FLAC, PCM
- Streaming: Direct response or stored file
- Player: Standard HTML5 or native audio components
Managing character limits in scripts
Each request can handle up to 4096 characters. For longer meditation scripts, split the text into smaller chunks and join the resulting audio files.
This approach ensures consistent quality and prevents request timeouts. Monitor your character usage to stay within rate limits of 60 requests per minute.
- Max characters: 4096 per request
- Split long texts into parts
- Join audio files programmatically
Workflow for generating meditation audio
Generating meditation audio with AuraSpeak follows a straightforward three-step workflow designed for fitness and meditation product teams. By leveraging our cloud API, you can convert scripts into calming or energizing audio files without managing complex infrastructure.
This process ensures consistent voice quality and allows you to focus on content strategy rather than technical audio engineering.
Write your script text
Begin by drafting your meditation script, keeping in mind the 4096 character limit per request. For longer sessions, split the text into manageable parts. Remember that spaces and punctuation count toward this limit, so concise writing helps optimize costs.
- Keep individual requests under 4096 characters
- Count spaces and punctuation as characters
- Split long scripts into sequential parts
Send request to the API endpoint
Send your text via a POST request to https://api.good888ok.com/v1/audio/speech. Use the tts-1 or tts-1-hd model with your chosen voice, such as Luna for storytelling or Sage for instructional content. Include your Bearer token for authentication.
- Use POST method on the speech endpoint
- Specify model as tts-1 or tts-1-hd
- Include Authorization Bearer token
Receive and store the audio file
The API returns the audio file in your chosen format (mp3, wav, opus, flac, or pcm). Generated audio is not stored on our servers, so ensure your application handles immediate playback or secure storage. Failed requests incur no charge.
- Choose format like mp3 or wav
- Handle immediate playback or storage
- No charge for failed synthesis
Optimizing for user experience
Optimizing audio delivery ensures your meditation app feels responsive, even when processing longer scripts. Since requests are processed sequentially, longer texts may experience slight delays as they wait in queue. Users should perceive this as a brief loading state rather than a frozen interface.
Choosing the right audio format balances quality and bandwidth. MP3 offers smaller file sizes ideal for mobile data, while WAV provides uncompressed clarity for high-end speakers. Consider background playback constraints to ensure audio continues seamlessly when users switch apps or lock their screens.
Loading times for long meditations
Long meditation scripts exceed the 4096-character limit per request. Your app must split the text into chunks, send them sequentially, and join the resulting audio files. This process takes time, roughly real-time speed (25 characters per second), so implement a progress indicator to keep users informed during generation.
Under load, requests may queue, adding a few seconds of delay. Display a
bullets
Audio format selection (MP3 vs WAV)
MP3 files are significantly smaller, reducing download times and data usage for users on cellular networks. WAV files are larger but offer pristine audio quality, suitable for premium tiers or users with stable Wi-Fi. Test both formats on target devices to ensure compatibility with your media player.
The API supports MP3, WAV, OPUS, FLAC, and PCM. For most meditation apps, MP3 strikes a balance between quality and efficiency. Use OPUS for efficient playback if your app supports it.
- MP3: Best for general mobile use
- WAV: Highest quality, larger files
- OPUS: Efficient for streaming
Background playback considerations
Ensure your app handles audio interruptions gracefully. When users switch apps or receive calls, pause and resume playback without losing sync. Test background playback on both iOS and Android to verify that audio continues correctly and respects system volume controls.
Implement audio focus management to prevent overlapping audio tracks if users navigate quickly between meditation sessions. This ensures a calm, uninterrupted experience essential for meditation and fitness routines.
Cost management for scaling
Audio generation is billed per character, so understanding script length helps you predict expenses accurately. Each request costs $0.01 per 1,000 characters, including spaces and punctuation. Since synthesis typically takes about 25 characters per second, longer guided meditations will accumulate usage quickly but remain predictable.
Estimating costs per session
Calculate your average script length to estimate cost per meditation session. For example, a 5,000-character script costs $0.05. This linear pricing model allows you to budget precisely without hidden fees or tiered complexities.
- Cost: $0.01 per 1,000 characters
- Scales linearly with script length
- No minimum spend or monthly fees
Using the free trial effectively
Start with the $0.50 free trial available when signing in with Google. This provides approximately 50,000 characters valid for 7 days, allowing you to test multiple voices like Luna or Sage without immediate commitment.
- Credit: $0.50 (50,000 characters)
- Valid for 7 days
- Available with Google sign-in
Monitoring usage with the dashboard
Track your balance and character consumption directly on the dashboard. You can see remaining trial credits, current balance, and historical usage to ensure you stay within budget before scaling your app to more users.
- Real-time balance updates
- Character count tracking
- Easy top-up via USDT
Common challenges and solutions
Meditation scripts often contain special symbols, punctuation, or non-standard characters that might confuse the synthesis engine if not handled correctly. Ensure your text input is clean and within the 4096-character limit per request to avoid truncation or errors.
Voice quality remains consistent across all generations since the same engine powers every request. However, long meditations may require splitting text into chunks, which can introduce slight pauses between segments if not managed carefully.
Handling special characters in text
Special characters like em dashes or ellipses are generally handled well, but unusual symbols may cause silent failures or unexpected pauses. Strip non-essential markup before sending the text to the API.
- Remove HTML tags before sending text
- Replace ellipses with standard periods for cleaner pauses
- Avoid complex unicode symbols unless necessary
Ensuring consistent voice quality
Since all requests use the same engine, voice tone is uniform. For long scripts, split text into 4096-character chunks and join the audio files. This ensures no part of your meditation script is truncated or rushed.
Managing rate limits during peak times
You are limited to 60 requests per minute per key. During peak usage, requests may queue, causing slight delays. Plan your audio generation batches during off-peak hours or split large scripts into smaller batches to stay within limits.

Integration with OpenAI SDK
AuraSpeak’s API mirrors the OpenAI speech endpoint structure, allowing you to reuse familiar client libraries with minimal code changes. By simply updating the base_url to https://api.good888ok.com/v1 and providing your tts-... key, you can generate meditation audio using the same SDKs you already trust.
This approach simplifies integration for product teams, letting you focus on script content rather than learning a new proprietary client. Standard HTTP requests or Python/JS clients handle the heavy lifting, ensuring your meditation app’s audio pipeline remains stable and predictable.
Setting the base URL
Update your SDK configuration to point to our endpoint: https://api.good888ok.com/v1. This single change directs all requests to our inference engine while maintaining standard OpenAI-compatible request shapes for model, voice, and input parameters.
Using standard Python/JS clients
Use any standard OpenAI SDK by passing your API key via the Authorization: Bearer header. The SDK handles serialization and retries automatically. Ensure your key starts with tts- and remains valid for uninterrupted generation.
- Supports Python, JavaScript, and other OpenAI-compatible languages.
- No custom library installation required for basic integration.
Error handling best practices
Handle HTTP errors gracefully, especially rate limits (60 req/min). Failed synthesis requests are free, so you can retry safely without incurring extra charges. Always validate character counts under 4096 before sending requests to ensure consistent delivery.
Data privacy and compliance
Your input text is used solely to generate the audio file and is never used for training our models. This ensures that your unique meditation scripts are not used for training. Generated audio is returned directly in the response and is not stored on our servers, giving you full control over your content archives.
We retain minimal request metadata—such as timestamp, character count, and status—strictly for billing and usage verification. This data helps us accurately charge your account and resolve any discrepancies without keeping your actual audio content.
Input text usage policy
Input text is used only to produce the audio and is not used for training.
No storage of generated audio
Generated audio is returned in the response and not stored.
Metadata retention for billing
Request metadata (time, characters, status) is kept for billing.
Supporting multiple languages
AuraSpeak supports 23 languages, from Arabic to Turkish, allowing your meditation app to reach a global audience without needing separate voice models for each market.
Since every voice can speak any supported language, you can maintain a consistent brand identity across different regions by simply switching the language parameter in your API request.
Setting explicit language codes
Always set the language field to an ISO code (e.g., de for German) when using Latin-script text that isn't English. Without this, the API guesses the language, defaulting to English for Latin scripts, which may result in incorrect pronunciation for non-English content.
Automatic detection limitations
The system guesses the language based on the script if you omit the language field. This works well for clear English but fails for other Latin-script languages, so explicit codes ensure accuracy for your users.
Voice versatility across languages
You can use the same voice presets, like Luna for storytelling or Sage for instructions, across all 23 supported languages. This consistency helps users recognize your brand’s audio style regardless of their location.
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.
Testing your integration
Before launching, verify that your integration handles both success and failure cases correctly. The dashboard provides real-time visibility into your usage, character counts, and status, allowing you to catch issues early without guessing.
Using the demo page
Start by using the dashboard’s ready-made curl example. This confirms your API key works and helps you visualize the exact request structure needed for your meditation app’s backend.
Validating audio quality
Listen to generated files to ensure the voice matches your meditation vibe. Check that the output contains the expected inaudible watermark and that the audio format (MP3, WAV, etc.) plays correctly in your target environment.
Checking response times
Monitor how long synthesis takes. Short phrases take a few seconds, while longer texts process at roughly real-time speed. Under load, requests may queue, so plan your playback logic accordingly.
Next steps for product teams
Take the next step by visiting /get-api-key/ to create your account. You can sign in with Google for an immediate $0.50 free trial, or use your email. This gives you access to the dashboard where you can view your balance and usage.
Once registered, generate your first API key to start sending requests. With a single key and standard HTTP calls, you can begin converting your meditation scripts into high-quality audio files immediately, integrating seamlessly with your existing product workflow.
Signing up for an account
Visit /get-api-key/ to register. Choose Google Sign-In for instant trial credit, or use email and password for a standard account.
Accounts are tied to your site, ensuring secure access to your specific API credentials and billing details without cross-site interference.
- Google Sign-In grants $0.50 trial credit
- Email registration starts with zero balance
- Instant access to usage dashboard
Generating your first API key
Navigate to the dashboard to generate your unique Bearer token. This key authenticates your requests to the API endpoint.
You can issue a new key at any time; the previous one stops immediately, ensuring tight security for your production environment.
- One active key per account
- Revoke old keys instantly
- Use standard Bearer token auth
Planning your audio content strategy
Map your script lengths to the 4096-character limit per request. For longer meditations, plan to split text and join audio files.
Select voices like Luna for storytelling or Sage for instructional content, ensuring consistent tone across your entire meditation library.
- Split texts over 4096 chars
- Use Luna for storytelling
- Use Sage for instruction
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Our wellness platform helps teams find calm and strength through guided fitness and meditation practices.
23 languages
Any voice speaks any of these languages.
Sources and further reading
- Wikipedia
- openai-node on GitHub
- IETF RFC 7845: Ogg Opus
- LibriTTS-R paper (arXiv 2305.18802)
- W3C WAI: making audio and video accessible
- Creative Commons Attribution 4.0
- Node.js documentation
- LibriVox public-domain audiobooks
- OpenAI API reference: create speech
- openai-python on GitHub
- LibriTTS-R corpus (OpenSLR 141)
- FFmpeg documentation
