Frequently asked questions
What is the API endpoint?
The endpoint is POST https://api.ric79.info/v1/audio/speech. It accepts JSON bodies with model, input, voice, response_format, and speed parameters. This structure matches the OpenAI speech endpoint, allowing standard integration patterns without custom parsing logic for your application layer.
How do I generate an API key?
Visit /get-api-key/ to sign up via Google or email. Each account receives one active Bearer key. You can issue a new key at any time, which immediately invalidates the previous one, ensuring secure access control for your corporate training workflows.
Can I use the OpenAI Python SDK?
Yes. The request shape matches the OpenAI speech endpoint. Configure your SDK’s base_url to https://api.ric79.info/v1 and use your VoceFlow key. This allows immediate integration using existing OpenAI client libraries without rewriting your audio generation logic.
What is the character limit per request?
Each request supports up to 4096 characters in the input field. Spaces and punctuation count toward this limit. For longer texts, split the content into chunks of this size and join the resulting audio files to create a complete module.
How do I split long texts?
Divide your text into segments of 4096 characters or fewer. Send each segment as a separate POST request. The API returns individual audio files for each chunk. You must programmatically join these files to reconstruct the full training module audio.
What audio formats are supported?
Supported formats are mp3, wav, opus, flac, and pcm. Select the format via the response_format field. MP3 is recommended for general e-learning due to balance between quality and file size, while WAV suits uncompressed archival needs.
How do I handle rate limits?
The limit is 60 requests per minute per key. New accounts start with 10 requests per minute until the first top-up. Implement exponential backoff in your integration to handle queue delays during high-volume generation of training materials.
What happens if I exceed the limit?
Requests are processed sequentially. If you exceed capacity, your request waits in a queue. This may increase latency, especially for long texts. Failed requests are free and do not count against your character balance.
Is the API RESTful?
Yes. It uses standard HTTP methods. POST /v1/audio/speech generates audio. GET /v1/voices lists available options. GET /v1/models lists engine details. All endpoints return standard JSON responses, fitting easily into existing RESTful architectures used by corporate IT teams.
Do I need a developer?
A developer is helpful for integrating the API into your LMS or automation tools. However, the straightforward JSON structure and OpenAI SDK compatibility allow integration via no-code platforms. You only need basic configuration of the base URL and key.
Can I use this in a no-code tool?
Yes. Use HTTP request modules in tools like Zapier or Make. Configure the POST request to https://api.ric79.info/v1/audio/speech with your JSON body. Pass your Bearer token in the headers. This enables automated audio generation for HR workflows.
How do I test the API?
Use the curl example provided on /get-api-key/. Send a small text payload with a known voice like 'aria'. Verify the response contains an audio file. Check the status code and ensure the audio plays correctly in your media player.
What is the base URL?
The base URL is https://api.ric79.info/v1. Use this for all SDK configurations and direct HTTP requests. Ensure your Authorization header includes your Bearer token. This domain serves both the API endpoints and the documentation for your integration.
Are there SDKs for other languages?
No official SDK of our own is provided. However, since the endpoint matches the OpenAI format, you can use any OpenAI SDK for languages like Node.js, Java, or Go. Simply point the SDK to our base URL. This ensures broad language support.
First request
curl
curl https://api.ric79.info/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.mp3Python (openai)
from openai import OpenAI
client = OpenAI(base_url="https://api.ric79.info/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.ric79.info/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 | |
|---|---|
aria | female |
nova | female |
luna | female |
sage | female |
felix | male |
milo | male |
atlas | male |
orion | male |
| language | |
|---|---|
ar | العربية |
zh | 中文 |
da | Dansk |
nl | Nederlands |
en | English |
fi | Suomi |
fr | Français |
de | Deutsch |
el | Ελληνικά |
he | עברית |
hi | हिन्दी |
it | Italiano |
ja | 日本語 |
ko | 한국어 |
ms | Bahasa Melayu |
no | Norsk |
pl | Polski |
pt | Português |
ru | Русский |
es | Español |
sw | Kiswahili |
sv | Svenska |
tr | Türkçe |
Authentication
Authentication is handled via a Bearer token sent in the Authorization header. This single key grants access to all API endpoints and is tied to your account's billing balance.
You can generate a new key at any time via the dashboard. The previous key becomes invalid immediately upon creation, ensuring precise control over access.
Bearer token authorization
Include Authorization: Bearer tts-... in every request. The token validates your identity and deducts credits from your balance for successful synthesis.
- Format:
Authorization: Bearer tts-<your-key> - Case-sensitive string starting with
tts-
Single key per account
Each account maintains one active API key. This simplifies integration for HR teams managing multiple training modules, as you do not need to rotate credentials per project.
Instant key rotation
Issuing a new key immediately invalidates the old one. Use this feature if a key is exposed or if you need to reset access for a specific training batch without affecting other users.
Endpoint structure
The API provides three primary endpoints for text-to-speech generation and metadata retrieval. The core synthesis endpoint accepts text and voice parameters to return audio files, while the metadata endpoints allow you to query available voices and model configurations.
These endpoints follow a standard RESTful structure, enabling straightforward integration into corporate training workflows without requiring complex infrastructure or custom middleware.
POST /v1/audio/speech
This endpoint processes text input and returns an audio file. Send a JSON body containing the text, voice selection, and format preferences. The service returns the synthesized audio directly in the response body.
Text is limited to 4,096 characters per request. For longer training modules, split the text into segments and concatenate the resulting audio files.
- Accepts JSON body with model, input, voice, and response_format fields
- Returns audio data in the requested format (mp3, wav, opus, flac, pcm)
GET /v1/voices
Retrieve a list of all available voice presets, their associated languages, and supported output formats. This allows your application to dynamically present voice options to non-technical HR users.
Any voice can speak any of the 23 supported languages, though you may optionally specify a language code to ensure correct pronunciation for non-English text.
- Returns voice ID, name, gender, and supported languages
- Includes format capabilities for each voice preset
GET /v1/models
Query the available TTS models. Currently, both 'tts-1' and 'tts-1-hd' utilize the same engine and pricing structure.
This endpoint confirms the available model identifiers for use in the POST /v1/audio/speech request body.
- Returns model identifiers and associated metadata
- Confirms engine parity between tts-1 and tts-1-hd
Request parameters
Configure the synthesis parameters to define voice characteristics and audio fidelity. Select between standard or high-definition models and specify the input text, ensuring it does not exceed the character limit per request.
Model selection (tts-1, tts-1-hd)
Both models use the same engine and price. Both models use the same engine and price.
Input text limit (4096 chars)
Each request accepts a maximum of 4096 characters. Longer texts must be split into parts and joined later. Spaces and punctuation count toward the limit.
Voice ID and speed settings
Select one of eight preset voices and set a speed between 0.25 and 4.0. Optional ISO language codes ensure correct pronunciation for non-English texts.
- Voice: aria, nova, luna, sage, felix, milo, atlas, orion
- Speed: 0.25–4.0
- Language: optional ISO code
Response formats
The API returns audio data in the format specified by the response_format field. Supported outputs include MP3, WAV, FLAC, OPUS, and PCM, allowing HR teams to select the appropriate codec for their e-learning infrastructure or local processing needs.
MP3 for web delivery
MP3 is the standard format for embedding audio into web-based training modules. It provides a balanced trade-off between file size and quality, ensuring efficient loading times for corporate LMS platforms.
WAV for local processing
WAV offers uncompressed, high-quality audio suitable for local editing or voice-over integration. Use this format when precise audio manipulation is required before publishing to your training portal.
PCM for raw audio streams
PCM provides raw, uncompressed linear audio data. This format is ideal for downstream processing pipelines or systems that require direct access to the audio waveform without decoding overhead.
OpenAI SDK integration
The API request shape mirrors the OpenAI Speech endpoint, allowing existing infrastructure to adapt with minimal code changes. By pointing the client to our base URL, teams can leverage familiar libraries for HR and corporate training audio generation without learning a new SDK.
Set base_url to api endpoint
Configure your client to use https://api.ric79.info/v1 as the base URL. This directs all requests to the correct routing layer while maintaining standard JSON structures for model selection and voice parameters.
Use standard SpeechClient
Initialize the standard SpeechClient instance using your API key. The client handles the JSON serialization for input, voice, and response_format fields, ensuring consistent delivery to the synthesis engine.
Compatible with official SDKs
The official OpenAI SDKs work directly when the base URL is overridden. This compatibility allows non-technical HR teams to integrate audio generation into existing e-learning workflows without custom network handling.
- Use standard
tts-1ortts-1-hdmodel identifiers - Supports all standard response formats (mp3, wav, opus, flac, pcm)
- No custom authentication logic required beyond Bearer token

Curl example
The following example demonstrates a standard text-to-speech request using the cURL command-line tool. This command sends a POST request to the API endpoint with the required authentication header and JSON payload.
This example uses the 'nova' voice to generate a short instructional phrase. Adjust the input and voice parameters to match your specific corporate training content needs.
Basic POST request
Send a POST request to https://api.ric79.info/v1/audio/speech with the JSON body defined below. The API returns the audio file directly in the response body, which can be saved to disk.
Ensure your cURL version supports JSON headers. Replace YOUR_API_KEY with the key issued to your account.
- Use
curl -X POSTfor the request method. - Target the
/v1/audio/speechendpoint. - Set
Content-Type: application/json.
JSON body structure
The request body must contain the model, input, voice, and response_format fields. The model field accepts either tts-1 or tts-1-hd, which use the same engine and pricing.
The input field accepts plain text up to 4096 characters. Characters include spaces and punctuation. The voice field selects one of the eight preset voices, such as nova for bright, upbeat narration.
model: "tts-1" or "tts-1-hd".input: Your text string (max 4096 chars).voice: One of the 8 available voice IDs.response_format: e.g., "mp3", "wav", "opus".
Header authentication
Include the Authorization header with the Bearer prefix followed by your API key. This header authenticates the request and associates the usage with your account balance.
If the key is invalid or expired, the API returns a 401 Unauthorized error. Ensure the key matches the account used for billing and top-ups.
- Header name:
Authorization. - Format:
Bearer tts-.... - Key format:
tts-prefix followed by alphanumeric characters.
Error handling
The API returns standard HTTP status codes to indicate request outcomes. A 200 OK response confirms successful synthesis, while 4xx errors indicate client-side issues such as invalid parameters or authentication failures. Server errors return 5xx codes if processing fails unexpectedly.
HTTP status codes
Use these codes to determine if a request succeeded. A 200 response includes the audio file. A 401 Unauthorized error means the Bearer token is missing or invalid. Check your account dashboard at /get-api-key/ to verify your key.
Rate limit errors
Requests are limited to 60 per minute per key. New accounts start with a limit of 10 requests per minute. If you exceed this limit, the API returns a 429 Too Many Requests error. Failed synthesis requests do not count toward your character limit or rate limit.
- Limit: 60 requests/minute after top-up
- Initial limit: 10 requests/minute
- Returns 429 status code
Invalid voice IDs
If you provide a voice ID not in the supported list, the API returns a 400 Bad Request error. Use the GET /v1/voices endpoint to retrieve the current list of available voices, such as aria, nova, or atlas, before sending speech requests.
Rate limits
Rate limits ensure stable service for corporate training workflows. Your API key allows 60 requests per minute under normal conditions, with each request processing text up to 4096 characters. Failed requests do not consume this quota or incur charges.
60 requests per minute
Each API key supports a steady throughput of 60 requests per minute. This limit applies to all endpoints. If you exceed this threshold, the API returns a 429 error. You must wait for the window to reset before sending more requests.
10 requests before top-up
New accounts without a top-up are limited to 10 requests per minute. This restriction applies until you add funds via USTRC20. Once you have made your first top-up, the limit increases to 60 requests per minute.
Queued processing under load
Requests are processed sequentially. During high traffic, your request may wait in a queue. This ensures fair resource distribution but increases latency. Expect longer generation times for bulk e-learning module creation during peak hours.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. This balance allows you to create diverse audio content without relying on third-party voice actors or custom cloning services.
23 languages
Any voice speaks any of these languages.
Sources and further reading
- Wikipedia
- Creative Commons Attribution 4.0
- W3C WAI: making audio and video accessible
- Node.js documentation
- TRON developer hub: TRC-20
- LibriTTS-R paper (arXiv 2305.18802)
- ISO 639 language codes
- OpenAI API reference: create speech
- FFmpeg documentation
- LibriVox public-domain audiobooks
- IETF RFC 7845: Ogg Opus
- openai-python on GitHub
