API Documentation for Wellness Audio Generation

By Mindful Voice editorial team · Updated 2026-11-18

This documentation explains how to integrate the Mindful Voice TTS API into your fitness or meditation workflow. You will learn to send text and receive high-quality audio files using standard HTTP requests or the OpenAI SDK. The guide covers authentication, parameter configuration, and error handling, ensuring you can generate calm narration efficiently.

Designed for content creators who need professional audio without hiring voice actors, this page provides concrete examples for long-form calm narration. You will find specific details on voice selection, speed adjustment, and rate limits, helping you build reliable audio pipelines for your coaching programs or guided sessions.

API Documentation for Wellness Audio Generation

Frequently asked questions

What is the base URL for the API?

The API base URL is https://api.fr555np.com/v1. You can use the OpenAI SDKs by changing the base_url to this address and providing your site-specific key. All requests, including speech synthesis and voice listings, are directed to this endpoint for seamless integration into your fitness or meditation workflow.

Does the API support streaming audio?

No, the API does not support streaming, WebSocket connections, or real-time partial audio. You send a POST request with your text and receive the complete audio file in the response. This synchronous approach ensures you get a finished audio file ready for your meditation or fitness content.

Can I use SSML tags in my input text?

No, the API does not support SSML (Speech Synthesis Markup Language). You provide plain text input, and the system processes it directly. There are no phoneme dictionaries or custom pronunciation lexicons available either. Keep your meditation scripts as simple text to ensure consistent and predictable audio generation.

How do I handle long meditation scripts?

Split your script into parts of up to 4096 characters each. Send each part as a separate request and then join the resulting audio files. This method allows you to create long-form narration without hitting the input limit. The API processes requests sequentially, so queueing may occur under load.

What is the maximum input length?

The maximum input length is 4096 characters per request. Spaces and punctuation count toward this limit. If your meditation script exceeds this length, you must split it into multiple requests. Each chunk is processed independently, and you can concatenate the resulting audio files to create the final narration.

Does the API return a watermark?

Yes, every generated audio file carries an inaudible watermark that marks it as synthetic speech. This watermark is embedded in the audio data itself and is not audible to the listener. It serves to identify the audio as generated by the Mindful Voice API for transparency and verification purposes.

Can I change the voice mid-sentence?

No, you cannot change the voice mid-sentence within a single request. Each request specifies one voice from the eight presets. To switch voices, you must split the text at the point where you want the change and send a new request with the desired voice parameter.

Is the response format customizable?

Yes, you can choose from mp3, wav, opus, flac, or pcm formats. Specify your preferred format in the response_format field of your request. This flexibility allows you to optimize audio quality and file size for your specific meditation or fitness app needs without additional conversion steps.

How do I detect errors in the response?

Check the HTTP status code and the response body for error details. Failed requests are free, and any charge is returned in full if synthesis fails. Monitor the response for standard HTTP error codes to determine if the request was successful or if you need to retry with adjusted parameters.

What happens if the server is down?

The API does not offer an SLA or uptime guarantee. If the server is down, your request may fail or queue. Requests are processed one after another, so under load, a request may wait. Failed requests are free, ensuring you are not charged for unsuccessful synthesis attempts.

Can I use the same key on multiple devices?

Yes, you can use the same API key on multiple devices. Each account has one active key, which can be issued at any time. If you issue a new key, the old one stops immediately. This allows you to manage access across different devices or applications easily.

Do I need to specify the language?

It is recommended to specify the language using the ISO code. If not set, the language is guessed from the script, with Latin text defaulting to English. For non-English Latin-script text, always set the language parameter to ensure accurate pronunciation and tone for your meditation or fitness content.

Is the speed parameter applied globally?

Yes, the speed parameter applies to the entire request. You can set the speed between 0.25 and 4.0. This allows you to adjust the narration pace for your meditation guides or fitness coaches. The speed is applied uniformly across the entire input text for that specific request.

Can I mix different voices in one file?

No, you cannot mix different voices in a single audio file. Each request generates audio with one voice. To create a file with multiple voices, you must generate separate audio files for each voice and then concatenate them. This ensures clean audio transitions between different narrators in your content.

First request

curl

curl https://api.fr555np.com/v1/audio/speech \
  -H "Authorization: Bearer $TTS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"tts-1","voice":"aria","input":"Hello from the API.","response_format":"mp3"}' \
  --output hello.mp3

Python (openai)

from openai import OpenAI

client = OpenAI(base_url="https://api.fr555np.com/v1", api_key="tts-...")

with client.audio.speech.with_streaming_response.create(
    model="tts-1", voice="nova", input="Hello from Python.", response_format="mp3"
) as response:
    response.stream_to_file("hello.mp3")

Node.js (openai)

import OpenAI from "openai";
import fs from "node:fs";

const client = new OpenAI({ baseURL: "https://api.fr555np.com/v1", apiKey: process.env.TTS_API_KEY });
const res = await client.audio.speech.create({ model: "tts-1", voice: "milo", input: "Hello from Node.js." });
fs.writeFileSync("hello.mp3", Buffer.from(await res.arrayBuffer()));
voice
ariafemale
novafemale
lunafemale
sagefemale
felixmale
milomale
atlasmale
orionmale
language
arالعربية
zh中文
daDansk
nlNederlands
enEnglish
fiSuomi
frFrançais
deDeutsch
elΕλληνικά
heעברית
hiहिन्दी
itItaliano
ja日本語
ko한국어
msBahasa Melayu
noNorsk
plPolski
ptPortuguês
ruРусский
esEspañol
swKiswahili
svSvenska
trTürkçe

Authentication and Keys

Sound wave illustration for: Authentication and Keys

Secure access to the Mindful Voice API begins with a unique API key. This key authenticates your requests and tracks usage against your account balance. You can generate this key directly from the /get-api-key/ dashboard after signing in with Google or creating an email account.

Generate Your API Key

Generate Your API Key

Navigate to the dashboard to view your current key. Each account holds one active key at a time. If you suspect a leak or want a fresh start, you can issue a new key at any time. The previous key stops working immediately upon issuance.

  • One active key per account
  • Instant invalidation of old keys
  • View key on /get-api-key/

Bearer Token Format

Bearer Token Format

Include your key in the HTTP header for every request. Use the format Authorization: Bearer tts-.... Ensure no extra spaces or quotes surround the token string. Incorrect formatting will result in a 401 Unauthorized error.

Key Rotation Policy

Rotate your key whenever you suspect compromise. The switch is immediate; there is no delay. You do not need to update billing or settings, only your application configuration. This ensures your meditation audio generation remains secure without downtime.

Quickstart with Curl

Sound wave illustration for: Quickstart with Curl

Generate wellness audio files directly from your terminal. This section demonstrates the most straightforward method to send text and receive speech using standard command-line tools.

Install Curl

Curl is a standard utility pre-installed on most macOS and Linux systems. Windows users can download the binary from the official website or use WSL. Ensure your version supports modern JSON encoding.

Construct the Request

Send a POST request to https://api.fr555np.com/v1/audio/speech. Include your Bearer token in the header. The JSON body requires model, input, voice, and response_format. Use tts-1 or tts-1-hd; both models use the same engine and have the same price.

  • - Header: Authorization: Bearer YOUR_API_KEY
  • - Body: `{"model": "tts-1", "input": "Breathe in calmness.", "voice": "aria", "response_format": "mp3"}`

Execute the Command

Run the command to receive the audio file. Redirect the output to a file to save it locally. Verify the file plays correctly in your meditation app or fitness player.

Using the OpenAI SDK

Sound wave illustration for: Using the OpenAI SDK

To generate wellness audio efficiently, use the OpenAI SDK. Install the latest package via your preferred language manager. This approach simplifies header management and response parsing for your meditation or fitness application.

Install OpenAI Package

Install the OpenAI library for your programming language. For Python, run pip install openai. For Node.js, use npm install openai. Ensure you are using a recent version that supports the base_url configuration for custom API endpoints.

Set Base URL

Configure the SDK to point to our infrastructure. Set the base_url parameter to https://api.fr555np.com/v1. This directs all requests to our TTS engine while maintaining compatibility with standard OpenAI request structures.

Call the Speech Endpoint

Invoke the audio.speech.create method. Pass your API key, the desired model (tts-1 or tts-1-hd), and the input text. The SDK handles the JSON payload and returns the audio file directly to your application.

  • Use model: "tts-1" or "tts-1-hd".
  • Set voice to a calm preset like nova or sage.
  • Specify response_format as mp3 for web playback.

Request Parameters

Sound wave illustration for: Request Parameters

The API accepts plain text inputs up to 4,096 characters per request, counting spaces and punctuation. For longer meditation scripts or fitness routines, split the text into chunks and concatenate the resulting audio files seamlessly.

Input Text Limits

Each request is limited to 4,096 characters. If your content exceeds this, divide the text into smaller segments and join the audio outputs to maintain continuity.

Voice Selection

Choose from eight preset voices optimized for calm narration. Select female voices like Aria for warm storytelling or Luna for soft guidance. Male options include Felix for energetic promos or Atlas for neutral, instructional clarity.

  • Aria: Warm, clear narrator
  • Luna: Soft, storytelling
  • Atlas: Neutral, news-style
  • Felix: Energetic, promo

Speed Adjustment

Adjust playback speed between 0.25 and 4.0 to match your pacing needs. Slower speeds enhance relaxation for guided meditations, while faster rates suit quick fitness cues or high-energy workout instructions.

Response Formats

Sound wave illustration for: Response Formats

Select your preferred audio format based on your playback environment. Our API supports MP3, WAV, FLAC, OPUS, and PCM, allowing you to balance file size and fidelity without extra cost.

Each format is delivered directly in the response body, ready to save or stream. Choose the format that best fits your player’s capabilities and your bandwidth constraints.

MP3 for Web Players

MP3 is a common choice for web applications and mobile apps. It offers small file sizes while maintaining clear audio quality, making it ideal for streaming meditation tracks or fitness routines over standard connections.

  • Universal compatibility with all major browsers and players
  • Optimal balance between file size and audio clarity
  • Ideal for on-demand playback in web and mobile apps

WAV for High Quality

WAV provides uncompressed, high-fidelity audio. Use this format when you need lossless quality for professional editing, archival, or playback on high-end audio systems. Note that WAV files are significantly larger than MP3s.

  • Lossless audio quality for professional-grade output
  • Best for post-production editing or archiving
  • Higher bandwidth usage compared to compressed formats

PCM for Raw Data

PCM delivers raw, uncompressed digital audio data. This format is suitable for low-level audio processing, custom hardware integration, or when you need to handle the bitstream directly in your application.

  • Raw audio stream without container metadata
  • Ideal for custom audio processing pipelines
  • Raw audio data
Response Formats

Error Handling

Sound wave illustration for: Error Handling

API errors return standard HTTP status codes with a JSON body explaining the cause. This allows your integration to handle failures gracefully without crashing the user experience.

Rate Limit Errors

If you exceed 60 requests per minute, the API returns a 429 status code. Requests are processed in queue order, so brief pauses may resolve the limit automatically.

  • Status 429 Too Many Requests
  • Retry after the specified delay
  • Monitor your key usage in the dashboard

Invalid Input Errors

Errors occur if the input text exceeds 4096 characters or the voice ID is unknown. Ensure you split long texts into smaller chunks before sending them to maintain consistent audio quality.

  • Status 400 Bad Request
  • Check character count limits
  • Verify voice IDs from /v1/voices

Network Timeout Errors

During high load, synthesis may take longer than expected. If synthesis fails, the request is not charged. Retry the request to generate the audio again.

  • Status 504 Gateway Timeout
  • No charge for failed synthesis
  • Implement exponential backoff for retries

Rate Limits and Quotas

Sound wave illustration for: Rate Limits and Quotas

Mindful Voice ensures fair usage by limiting each API key to 60 requests per minute. New accounts start with a lower limit of 10 requests per minute until the first top-up is processed.

60 Requests Per Minute

Your key allows 60 synthesis requests within a sliding 60-second window. If you exceed this, the API returns a rate limit error. New accounts begin with a 10 requests per minute limit, which increases to 60 after your first top-up.

Queue Processing Order

Requests are processed sequentially. Under load, your request may wait in a queue before synthesis begins. This ensures stable performance for long-form meditation tracks without dropping audio quality.

Long Text Splitting

Each request accepts up to 4096 characters of input. For longer scripts, split your text into parts, generate audio for each segment, and join the files. This method maintains natural pacing for extended fitness routines.

Model Options

Sound wave illustration for: Model Options

The API offers two model configurations that share identical synthesis engines and pricing structures. You can select between "tts-1" and "tts-1-hd" by setting the model field in your request. This simplicity ensures consistent audio quality whether you choose the standard or high-definition option.

tts-1 Standard Model

The tts-1 model provides reliable, clear narration suitable for most fitness and meditation content. It handles the full range of 8 voices and 23 languages efficiently, making it ideal for standard long-form audio generation where speed is prioritized over nuanced acoustic detail.

tts-1-hd Model

The tts-1-hd model is available for higher fidelity. This is beneficial for high-quality meditation guides or premium fitness programs where crisp voice reproduction enhances the listener's experience. The processing time remains comparable to the standard model.

Same Price for Both

Both models charge the same rate: $10 per 1 million characters. You can switch between them without any cost difference. This allows you to test the hd model for critical content while using the standard model for bulk generation without worrying about budget changes.

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. His deep voice is ideal for guided meditations, yoga philosophy explanations, or wellness documentaries where calm authority aids comprehension.

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. Python documentation
  3. Creative Commons Attribution 4.0
  4. openai-node on GitHub
  5. OpenAI API reference: create speech
  6. LibriTTS-R corpus (OpenSLR 141)
  7. Node.js documentation
  8. MDN: Web Speech API
  9. curl documentation
  10. W3C WAI: making audio and video accessible
  11. IETF RFC 7845: Ogg Opus
  12. TRON developer hub: TRC-20

More on this site