Frequently asked questions
How do I get my API key?
Sign up on https://ctg77.info/get-api-key/ using Google or email and password. The dashboard displays your active API key, balance, and usage statistics. You can issue a new key at any time; the previous one stops immediately. Each account is tied to this specific site.
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 to the speech endpoint and receive the complete audio file in the response. This applies to all supported response formats, including mp3, wav, opus, flac, and pcm.
Can I use the OpenAI SDK with this API?
Yes, the request shape matches the OpenAI speech endpoint. You can use official OpenAI SDKs by changing the base_url to https://api.ctg77.info/v1 and providing your VerdictVoice API key. This allows you to leverage familiar client libraries without learning a new SDK structure.
What is the base URL for requests?
The API base URL is https://api.ctg77.info/v1. You send POST requests to https://api.ctg77.info/v1/audio/speech for synthesis. Other endpoints like voices and models are accessible via GET requests to https://api.ctg77.info/v1/voices and https://api.ctg77.info/v1/models respectively.
How do I handle text longer than 4096 characters?
Split your input text into chunks of up to 4096 characters each. Send each chunk as a separate request to the speech endpoint. Then, join the resulting audio files sequentially. This ensures each request stays within the character limit while preserving the full narrative.
Does the API support SSML tags?
No, the API does not support SSML (Speech Synthesis Markup Language). It accepts plain text input only. There are no emotion tags, phoneme dictionaries, or custom pronunciation lexicons available. You must rely on the natural pacing and intonation of the selected voice presets.
What happens if the API rate limit is exceeded?
Requests are processed sequentially, so exceeding the limit may cause your request to wait in a queue. The standard limit is 60 requests per minute per key, or 10 per minute before the first top-up. Failed requests are free, but successful ones consume your character balance.
Is the audio returned in the response body?
Yes, the generated audio file is returned directly in the response body. The audio is not stored on our servers after delivery. Input text is used only for synthesis and is not used for training. You receive the file immediately upon successful completion of the request.
Can I request a specific language code?
Yes, you can specify an optional ISO language code in the request body. If omitted, the system guesses the language from the script, defaulting to English for Latin text. For non-English Latin-script text, explicitly setting the language code ensures accurate pronunciation and delivery.
Are there SDKs for mobile platforms?
No, there is no mobile SDK. You can use the official OpenAI SDKs or plain HTTP requests by adjusting the base URL. Since the API follows standard REST conventions, you can integrate it into any mobile app using standard networking libraries.
Does the API support custom pronunciation?
No, the API does not support custom pronunciation dictionaries or phoneme inputs. Pronunciation is determined by the selected voice preset and the specified language code. You cannot upload custom lexicons or fine-tune specific word pronunciations for legal documents or case files.
How do I revoke an API key?
You can revoke your current API key by issuing a new one from your dashboard. When a new key is generated, the old one stops working immediately. This provides instant revocation without needing to contact support or wait for a processing delay.
Is the API key single-use or multi-use?
The API key is multi-use. You can use the same key for multiple requests until you choose to issue a new one. Each account has one active key at a time. Issuing a new key invalidates the previous one instantly.
What is the default voice if none is specified?
You must provide a voice from the eight available presets (aria, nova, luna, sage, felix, milo, atlas, orion) in the request body.
First request
curl
curl https://api.ctg77.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.ctg77.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.ctg77.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 and API Keys
Access the VerdictVoice API by generating a key on the /get-api-key/ dashboard. Each account holds one active key, which is displayed alongside your balance and usage statistics.
Generate Key on /get-api-key/
Sign up via Google or email to receive your initial API key. The dashboard displays your key, current balance, and a ready-to-use cURL example for immediate testing.
Use Bearer Token Authorization
Include your key in the HTTP header as Authorization: Bearer tts-.... This single active key authenticates all requests to the API endpoint.
Revoke Key Instantly on New Issue
Issue a new key at any time from the dashboard. The previous key stops working immediately, ensuring secure access control without manual expiration delays.
Endpoint: POST /v1/audio/speech
Send text to POST https://api.ctg77.info/v1/audio/speech to receive synthesized audio. The request uses a JSON body with standard fields compatible with OpenAI SDKs, allowing legal tech startups to integrate quickly without custom client libraries.
JSON Body Structure
The API expects a JSON object containing the model, input text, voice selection, and optional parameters like speed and format. Each request processes up to 4096 characters, returning the audio file directly in the response.
model: "tts-1" or "tts-1-hd"input: Text string (max 4096 chars)voice: One of 8 preset voicesresponse_format: mp3, wav, opus, flac, or pcm
Required Input and Voice Fields
You must specify the text to be converted and the voice preset. The input field carries your legal text, while voice selects from options like atlas for neutral news-style narration or sage for calm instructional tones.
- Ensure text does not exceed 4096 characters per request
- Select a voice that matches your document’s tone
Optional Language Parameter
Include the language field with an ISO code if the text is not English. If omitted, the system guesses the language from the script, defaulting to English for Latin script, which may cause errors for non-English texts.
Request Parameters Explained
Configure the core synthesis parameters to match your legal document’s delivery requirements. Selecting the correct model, speed, and output format ensures the generated audio meets your specific playback and quality standards.
Model: tts-1 or tts-1-hd
Both tts-1 and tts-1-hd use the same underlying engine and pricing tier. Both tts-1 and tts-1-hd use the same engine and price. Choose tts-1 for standard generation or tts-1-hd for higher fidelity.
Speed Range: 0.25 to 4.0
Adjust the speed parameter between 0.25 and 4.0 to control narration pace. Slower speeds (e.g., 0.5) improve clarity for dense contract clauses, while faster speeds (e.g., 2.0) are suitable for quick case file reviews.
Response Format Options
Specify the response_format as mp3, wav, opus, flac, or pcm. Use mp3 for web compatibility, wav or flac for high-quality archival, or pcm for raw audio processing in your legal tech stack.
Supported Audio Formats
The API returns audio files in formats compatible with standard legal document viewers and case management systems. MP3 provides optimal compression for web delivery, while WAV is an uncompressed format suitable for archival requirements.
MP3 for Web Compatibility
MP3 is the default choice for embedding narrated contracts into web-based dashboards. It balances file size and quality, ensuring quick loading times for attorneys reviewing lengthy case files on standard browsers.
WAV for High Quality Needs
Use WAV when you need uncompressed audio for high-fidelity playback or internal archival. This format preserves the full spectrum of the synthetic voice, suitable for detailed audio evidence or premium client deliverables.
OPUS, FLAC, and PCM Options
OPUS offers superior compression for low-bandwidth environments. FLAC provides lossless compression for storage efficiency. PCM returns raw uncompressed audio data, ideal for direct integration with specialized audio processing pipelines.
- OPUS: Efficient for low-bandwidth web delivery.
- FLAC: Lossless compression for storage.
- PCM: Raw data for custom pipelines.
Rate Limits for Legal Apps
Rate limits are enforced per API key to ensure stable generation for legal workflows. Each key allows 60 requests per minute once funded. This limit applies to all voice synthesis calls regardless of text length.
The system processes requests sequentially. Under heavy load, your synthesis jobs may wait in a queue before processing begins. This ensures fair resource allocation but may increase latency for bulk contract narration.
60 Requests Per Minute Per Key
After your first top-up, you can send 60 synthesis requests per minute. This supports steady narration of case files without exceeding system capacity.
The limit resets every 60 seconds. Exceeding this cap returns a 429 Too Many Requests error, and no characters are consumed for failed or rejected calls.
- Limit is per key, not per IP or application instance.
- Failed requests are free, but the rate limit applies to requests sent.
10 Requests Before First Top-Up
New accounts start with a 10 requests-per-minute limit until the first USDT top-up is confirmed.
This allows testing the API with legal text samples before committing to bulk generation.
- Limit applies immediately upon key generation.
- Top-up confirmation typically takes minutes via TRON network.
Queue Behavior Under Load
Requests are processed one after another. If the system is busy, your request waits in a queue.
Longer texts may take more time to generate, but the rate limit remains consistent once processing begins.
- No priority queue for enterprise clients.
- Queued requests still count toward your per-minute limit if submitted within the window.

Handling Long Legal Texts
Legal documents often exceed the 4096-character input limit enforced by the API. To process a full contract or case file, you must divide the text into smaller segments that fit within this constraint before sending them to the endpoint.
4096 Character Limit Per Request
Each API call accepts a maximum of 4096 characters, including spaces and punctuation. If your legal text is longer, you must split it manually or via your application logic into chunks that do not exceed this limit.
Split Text into Chunks
Divide your source text into logical segments, such as individual clauses or paragraphs, ensuring each part stays under 4096 characters. Maintain consistent voice and speed settings across all chunks to ensure a uniform listening experience for the final output.
Send each chunk as a separate POST request to /v1/audio/speech. Track the sequence of these requests to reconstruct the audio order later.
- Calculate character counts including spaces and punctuation
- Split at natural breaks like periods or commas
- Ensure no single chunk exceeds 4096 characters
Join Audio Files Client-Side
The API returns individual audio files for each request. You must concatenate these files in the correct order on the client side to produce the complete narrated document. This ensures the final audio flows continuously without gaps or out-of-order speech.
Use standard audio libraries to merge the files. Requests are processed one after another, so under load a request may wait in a queue.
Error Handling and Status Codes
The API returns standard HTTP status codes to indicate request outcomes. Client errors (4xx) typically signal issues like invalid API keys, malformed JSON, or exceeding the 4096-character limit per request. Ensure your payload structure matches the required JSON format before submission.
HTTP 4xx for Client Errors
Common 4xx responses include 400 (Bad Request) for syntax errors and 401 (Unauthorized) for invalid or expired tokens. Review the error message body for specific details on what went wrong, such as an unsupported voice ID or an invalid speed value outside the 0.25–4.0 range.
HTTP 5xx for Server Issues
Server-side errors (5xx) are rare but may occur during high-load periods when the queue is full. These indicate a temporary processing failure. Failed requests are free: if synthesis fails, the charge is returned in full.
Failed Request Refund Policy
If a request fails due to server issues or other non-client causes, the character count is not deducted from your balance. You are only charged for successfully generated audio files. Failed requests are refunded immediately, ensuring you pay only for usable output.
Code Examples: cURL and SDK
This section provides concrete code snippets for generating audio from legal texts. You can use simple command-line requests or integrate directly into your application using the OpenAI-compatible SDK.
All examples assume you have already obtained your API key from the dashboard.
Basic cURL Command
Generate speech with a single command. Replace YOUR_KEY with your actual token.
curl -X POST 'https://api.ctg77.info/v1/audio/speech' \
-H 'Authorization: Bearer YOUR_KEY' \
-H 'Content-Type: application/json' \
-d '{"model": "tts-1", "input": "The contract is valid.", "voice": "sage", "response_format": "mp3"}'
OpenAI SDK with Base URL
Use the official OpenAI SDK by pointing it to our base URL. This works with any language SDK that supports the OpenAI format.
import openai
client = openai.OpenAI(base_url="https://api.ctg77.info/v1", api_key="YOUR_KEY")
audio = client.audio.speech.create(
model="tts-1", voice="sage", input="Summary of case file 402.")
Python Integration Example
For production apps, handle the audio bytes directly. The SDK returns the audio file in memory, allowing you to save it to your client.
audio = client.audio.speech.create(
model="tts-1", voice="atlas", input="Defendant denies liability.")
with open("output.mp3", "wb") as f:
f.write(audio.content)
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. For longer legal texts, split the input into parts and join the resulting audio files.
23 languages
Any voice speaks any of these languages.
