Frequently asked questions
What is the maximum input length for a single request?
Each request accepts up to 4096 characters of text. This limit includes spaces and punctuation. For longer content, you must split the text into smaller segments and join the resulting audio files. This ensures consistent processing and avoids payload size issues during synthesis.
Which voices are best for elderly users with hearing impairments?
We recommend aria, luna, or sage for clarity. Aria offers a warm, clear narrator tone. Luna provides a soft, storytelling voice. Sage delivers a calm, instructional style. These presets prioritize distinct articulation. Users can adjust the speed parameter between 0.25 and 4.0 to enhance audibility.
How does the API handle long texts for assistive devices?
You must split long texts into parts of up to 4096 characters. Send each part via a separate POST request. Then, join the returned audio files. Requests are processed sequentially, so under load, a request may wait in a queue before synthesis begins.
Is the synthetic watermark audible to end-users?
No. Every generated audio file carries an inaudible watermark. This marks the file as synthetic speech without affecting the listening experience. End-users will not hear the watermark during playback on their assistive devices or standard audio players.
Can I use the OpenAI Python SDK with this API?
Yes. The API uses the same request shape as the OpenAI speech endpoint. You can use the official OpenAI SDKs by changing the base_url to https://api.okbajje.cc/v1. Use your site-specific API key for authentication via the Authorization header.
What happens if a synthesis request fails?
Failed requests are free. If synthesis fails, the charge is returned in full. You are only billed for successful audio generation. This ensures that temporary processing errors do not impact your billing balance or character allowance.
Does the API support real-time streaming audio?
No. The API does not support streaming, WebSocket connections, or real-time partial audio. You receive the complete audio file after the request is processed. For assistive devices requiring immediate feedback, you must manage buffering or wait for the full file delivery.
Are there monthly minimums for assistive device deployments?
No. There are no monthly plans, seats, or minimum spend requirements. You pay only for the characters you use. Your balance does not expire. This structure supports variable usage patterns common in assistive device deployments without fixed contractual obligations.
How are language codes specified in the request?
You can specify the language using an optional ISO code in the request body. If omitted, the system guesses the language from the script. Latin script defaults to English. For non-English Latin text, you must explicitly set the language parameter.
Is the input text stored after audio generation?
No. Input text is used only to produce the audio and is not used for training. Generated audio is returned in the response and not stored. We retain request metadata, such as time and status, solely for billing purposes.
Can I clone a custom voice for a specific user?
No. We do not offer custom voice cloning or uploading of your own voice. You must choose from the eight available presets. Each voice is based on licensed recordings from LibriTTS-R or LibriVox public-domain audiobook readings.
What is the typical generation speed for long texts?
Generation is roughly real time, producing about 25 characters of text per second of audio. Short phrases may take a few seconds. Requests are processed sequentially, so under load, a request may wait in a queue before synthesis begins.
Do I need an enterprise contract for volume usage?
No. There are no enterprise contracts, SLAs, or uptime guarantees. We do not offer on-premise installs or data-center choices. Volume usage is handled through standard API requests with no minimum spend or dedicated support tiers required.
Is phone support available for technical issues?
No. We do not provide a phone number or live chat. Support is available by email only. For technical issues, please contact our support team via email. Response times are not guaranteed as we do not offer an SLA.
First request
curl
curl https://api.okbajje.cc/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.mp3API Architecture for Assistive Hardware
Okbajje Systems delivers a standardized JSON API designed for assistive hardware integration. The endpoint accepts POST requests with a consistent structure, ensuring reliable parsing by embedded devices and care management software without custom parsing logic.
Standardized JSON Request Format
Requests mirror the OpenAI speech endpoint schema. Send text, select a voice, and specify the response format via a simple JSON body. This uniformity allows existing SDKs to function by adjusting the base URL to https://api.okbajje.cc/v1.
- Endpoint: POST /v1/audio/speech
- Body: JSON with model, input, voice, and format fields
- Authentication: Bearer token in HTTP header
Deterministic Audio Generation
Each request generates a discrete audio file. The system does not stream partial audio; it returns the complete file upon synthesis completion. This ensures that assistive devices receive a whole, playable unit, avoiding playback artifacts common in real-time streaming protocols.
Low-Latency Processing Pipeline
Requests are processed sequentially. Long texts are split into 4096-character segments and reassembled. Generation speed averages real-time (25 characters per second). Under load, requests queue naturally, providing predictable timing for device audio buffers.
Voice Selection for Elderly Users
Voice selection directly impacts user comprehension and engagement in assistive contexts. Our API provides distinct voice presets optimized for clarity and tone, ensuring that synthesized speech meets the specific needs of elderly users and assistive device interfaces.
Choosing the right voice reduces cognitive load. Whether delivering instructions or reading stories, the available presets offer consistent, predictable audio output suitable for critical communication tasks.
Clear Narrator and Storytelling Voices
Aria offers a warm, clear narrator style ideal for reading books or providing instructions. Luna provides a soft, storytelling tone suitable for comfort and engagement.
These voices prioritize articulation and pacing, ensuring that text is rendered with high intelligibility even for users with mild hearing or cognitive impairments.
- Aria: Warm, clear narrator
- Luna: Soft, storytelling
Neutral News and Documentary Tones
Atlas delivers a neutral, news-style delivery for factual updates and alerts. Orion offers a deep, documentary tone suitable for longer-form content.
These voices minimize emotional inflection, providing a stable auditory baseline that reduces distraction and ensures the focus remains on the information being conveyed.
- Atlas: Neutral, news
- Orion: Deep, documentary
Warm and Friendly Conversational Styles
Nova provides a bright, upbeat tone for general assistance. Milo offers a friendly, conversational style for interactive dialogues.
These voices create a more natural interaction feel, suitable for devices that require a personal touch while maintaining clarity and ease of understanding.
- Nova: Bright, upbeat
- Milo: Friendly, conversational
Language Support for Global Deployment
The API supports 23 languages, including English, Spanish, German, Japanese, and Arabic. This range covers major markets for assistive devices and elderly care systems deployed globally.
23 Supported Languages
We support 23 languages: 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, ensuring consistent audio output regardless of the user's regional setting.
Automatic Language Detection
If the language field is omitted, the system guesses the language from the script. Latin script text defaults to English. This reduces configuration overhead for devices where the primary language is fixed.
Explicit Language Code Configuration
For non-English Latin-script text, set the language parameter explicitly to avoid incorrect defaulting. This ensures accurate pronunciation for multilingual care environments where text may not match the default English expectation.
Audio Format Compatibility
The API supports four audio formats—mp3, wav, opus, and flac—allowing device manufacturers to balance bandwidth constraints against playback fidelity. Selecting the appropriate container ensures compatibility with existing assistive hardware and care station software without requiring complex transcoding pipelines.
MP3 Compression for Bandwidth Efficiency
MP3 is one of the supported formats, optimized for low-bandwidth environments common in elderly care facilities. It reduces data transfer requirements while maintaining sufficient clarity for voice instructions and medication reminders. This compression is ideal for devices relying on cellular or Wi-Fi connections with limited throughput.
- Optimized for low-bandwidth network conditions.
- Reduces data transfer costs for device fleets.
- Maintains clear intelligibility for spoken instructions.
WAV for High-Fidelity Playback
WAV provides uncompressed audio, ensuring that voice characteristics remain intact for high-end assistive speakers. This format is suitable for local playback.
- Uncompressed audio for maximum clarity.
- Ideal for local high-fidelity speakers.
- Preserves voice nuances without distortion.
FLAC and PCM for Lossless Requirements
FLAC offers lossless compression. PCM provides raw, uncompressed data for specialized hardware that requires direct sample processing.
- FLAC: Lossless compression for storage efficiency.
- PCM: Raw data for specialized hardware.
- Preserves audio integrity for archival needs.
Integration with Python Ecosystem
Integrating our TTS API into assistive device firmware or care management software is straightforward. Because the request structure mirrors the OpenAI speech endpoint, teams can leverage existing Python libraries without custom parsers. This reduces development time for product teams building voice-enabled elderly care systems.
The API accepts standard JSON bodies, allowing seamless interaction with both the official OpenAI Python SDK and basic requests library.
OpenAI SDK Compatibility
The endpoint follows the same JSON schema as the OpenAI speech API. By adjusting the base_url to https://api.okbajje.cc/v1, developers can use the standard OpenAI Python SDK. This allows direct use of existing voice integration code with minimal modification.
Authentication remains consistent with the Bearer token pattern. The SDK handles serialization automatically, ensuring that model, input, voice, and response_format fields are transmitted correctly to the synthesis engine.
- Use
openaiPython package with modified base URL - Supports standard
Speechendpoint methods - Minimal code changes for existing OpenAI integrations
Standard HTTP Library Support
For environments where the OpenAI SDK is too heavy, standard HTTP libraries like requests or httpx work effectively. Send a POST request to the /v1/audio/speech endpoint with the JSON payload. The response contains the audio file directly in the body.
This approach is ideal for resource-constrained assistive devices or backend services that prefer lightweight dependencies. It allows precise control over headers and connection timeouts, which is critical for maintaining stable communication in elderly care networks.
- Compatible with
requests,httpx, orurllib - Direct JSON payload transmission
- Raw binary audio response handling
Simple Authentication Headers
Authentication requires a single Bearer token in the Authorization header. Obtain your key from the /get-api-key/ dashboard. Each account holds one active key, which can be rotated instantly if compromised.
Include Authorization: Bearer tts-<your-key> in every request. The system validates the key against the rate limits (60 requests/minute) and deducts characters from the balance upon successful synthesis. Failed requests do not consume credits.
- Header:
Authorization: Bearer tts-<key> - Single active key per account
- Instant key rotation invalidates old key

Reliability in Assistive Environments
Our API ensures consistent voice output for critical communication tasks where latency and accuracy are paramount. Each request generates a discrete audio file.
Consistent Voice Output
The engine produces uniform audio characteristics for each voice preset, ensuring that elderly users receive familiar, recognizable speech patterns every time.
Synthetic Speech Watermarking
Every generated audio file contains an inaudible watermark marking it as synthetic speech. This allows care systems to reliably distinguish AI-generated instructions from human-recorded messages, ensuring transparency in communication workflows without requiring user awareness.
Predictable Request Queuing
Requests are processed sequentially, so under load, a request may wait in a queue. With a limit of 60 requests per minute per key, device farms can calculate exact wait times for synthesis, preventing unexpected delays in time-sensitive care alerts.
Scalability for Device Farms
Scale your assistive device deployment. The API supports concurrent processing across many units, with requests handled sequentially to ensure deterministic output. Each API key enforces a strict limit of 60 requests per minute, allowing you to partition device fleets by key to avoid contention. Under load, requests queue predictably, maintaining consistent latency profiles for critical communication tasks.
Per-Key Rate Limiting
Assign a unique API key to each device or sub-group. This ensures that high-frequency polling from one unit does not throttle another. The 60 requests-per-minute limit per key provides a clear ceiling for throughput calculations during peak usage hours.
- 60 requests per minute per key
- 10 requests per minute before first top-up
- Deterministic queuing under load
Character-Based Billing
Costs are calculated strictly per character, including spaces and punctuation, at $0.01 per 1,000 characters. This model scales linearly with usage, eliminating overage fees. Failed requests incur no charge, ensuring you only pay for successful audio generation.
- $0.01 per 1,000 characters
- Sites and punctuation count as characters
- Failed requests are free
No Monthly Plan Lock-Ins
There are no monthly subscriptions, seats, or minimum spend requirements. You top up via USDT (TRC-20) with a $5 minimum, and credits do not expire. This allows precise budget control for device farms with variable usage patterns.
Data Privacy and Usage
Input text is processed exclusively for audio synthesis and is not retained for model training. Generated audio is returned in the response stream and is not stored on our servers, ensuring that user content remains transient and secure within the assistive device workflow.
Input Text Usage Policy
Your input text is used solely to produce the requested audio file. We do not repurpose or analyze the semantic content of your texts for any other purpose, ensuring that the integrity of the spoken output remains strictly tied to the immediate generation task.
No Training Data Retention
Unlike some commercial TTS providers, we do not use your input data to train or improve our voice models. The audio files generated are not stored in our long-term archives, meaning your specific voice outputs remain private and are not part of our training datasets.
Metadata for Billing Only
We retain request metadata, including timestamp, character count, and status, strictly for billing accuracy and usage tracking. This data supports transparent invoicing and rate limit management without revealing the content of the speech or the context in which it was generated.
Technical Specifications
The API accepts text inputs up to 4096 characters per request. Longer texts must be split into parts and the resulting audio files joined by the client application. This limit applies to all models, including tts-1 and tts-1-hd.
Speed adjustment ranges from 0.25x to 4.0x, allowing precise control over audio duration for assistive devices. The default speed is 1.0x. Requests are processed sequentially, so under load, a request may wait in a queue before generation begins.
4096 Character Input Limit
Each POST request to the speech endpoint accepts a maximum of 4096 characters in the input field. Spaces, punctuation, and special characters count toward this limit. For texts exceeding this length, the client must split the input, submit multiple requests, and concatenate the returned audio files.
Speed Adjustment Range
The speed parameter accepts values between 0.25 and 4.0. This allows device firmware to adjust playback duration without requiring client-side audio processing. The default speed is 1.0x. Note that requests are processed one after another, so generation time may increase under load.
Endpoint URL Structure
The primary endpoint is POST https://api.okbajje.cc/v1/audio/speech. The request body is JSON and matches the OpenAI speech endpoint schema. Other endpoints include GET /v1/voices for voice metadata and GET /v1/models for model details. Use the official OpenAI SDK by setting base_url to https://api.okbajje.cc/v1.
- POST https://api.okbajje.cc/v1/audio/speech
- GET https://api.okbajje.cc/v1/voices
- GET https://api.okbajje.cc/v1/models
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Input text is not stored or used for training, ensuring that no long-term data drift affects voice consistency.
23 languages
Any voice speaks any of these languages.
