Frequently asked questions
How do I generate an API key?
Navigate to /get-api-key/ and sign in using Google or an email and password combination. The dashboard displays your active API key, current balance, and usage. You may issue a new key at any time, which immediately invalidates the previous one.
What is the base URL for the API?
The API base URL is https://api.playvty05.cc/v1. All requests, including speech synthesis and voice listing, originate from this endpoint. Ensure your client configuration points to this domain to correctly route your text-to-speech requests and authentication headers.
How do I use the OpenAI SDK with this API?
Configure your OpenAI SDK client by setting the base_url to https://api.playvty05.cc/v1. Use your Vty Speech API key for authentication. The request shape matches the OpenAI speech endpoint, allowing you to utilize existing SDK implementations with minimal configuration changes.
What is the maximum text length?
Each API request accepts a maximum of 4096 characters in the input field. For texts exceeding this limit, split the content into chunks of 4096 characters or fewer. Generate audio for each chunk separately and join the resulting audio files.
How do I specify the voice?
Include the voice parameter in your JSON body with one of the eight presets: aria, nova, luna, sage, felix, milo, atlas, or orion. These voices cover various tones from warm narrators to energetic promos. Refer to the /docs/ page for full details.
Can I adjust the speech speed?
Yes, use the speed parameter with a value between 0.25 and 4.0. This allows you to slow down or accelerate the speech rate. Adjusting speed affects the duration of the generated audio file, which is useful for accessibility and pacing.
How do I set the language?
Provide the language parameter as an optional ISO code. If omitted, the system guesses the language from the script, defaulting to English for Latin text. Explicitly setting the language ensures accurate synthesis for non-English Latin-script texts or specific dialects.
What audio formats are supported?
The API supports mp3, wav, opus, flac, and pcm formats. Specify your preferred format in the response_format field. These options cover standard web playback, high-quality archival, and raw data processing needs for your gaming or publishing applications.
How do I handle rate limits?
Each API key is limited to 60 requests per minute. New accounts start with a 10 requests per minute limit until the first top-up. Monitor your usage via the dashboard and implement retry logic with exponential backoff to handle limit breaches.
What happens if the server is busy?
Requests are processed sequentially, so high load may cause queuing delays. Longer texts take roughly real-time to generate, while short phrases take a few seconds. Failed requests are free, but busy periods may increase latency for synthesis completion.
How do I verify the audio format?
Check the response headers and the actual file content returned by the API. The response_format parameter dictates the output type, such as mp3 or wav. Ensure your client handles the binary data correctly according to the specified format.
Is SSML supported?
No, the API does not support SSML. It accepts plain text input up to 4096 characters. You cannot use SSML tags for pronunciation or prosody control. For custom pronunciation, you must manage text formatting externally.
Can I stream the audio?
No, the API does not support streaming or WebSocket connections. Audio is generated and returned as a complete file in the response. You must wait for the full synthesis process to complete before receiving the audio data.
How do I rotate my API key?
Issue a new key from your account dashboard at /get-api-key/. The new key becomes active immediately, and the previous key is invalidated at once. This ensures secure access management without downtime, as only one key is active per account.
First request
curl
curl https://api.playvty05.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.mp3Python (openai)
from openai import OpenAI
client = OpenAI(base_url="https://api.playvty05.cc/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.playvty05.cc/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 requires a Bearer token sent via the Authorization header. Each account holds one active key; invalid or expired keys return 401 errors.
Bearer Token
Include Authorization: Bearer tts-your_api_key_here in every request. The key format begins with tts-. Ensure no extra whitespace surrounds the token value.
Key Generation
Keys are issued upon account creation via /get-api-key/. The dashboard displays the current key and usage metrics. Keys are tied to the specific site domain.
- Generate via the /get-api-key/ dashboard
- Only one active key per account
- Keys are domain-specific
Key Rotation
Issue a new key via the dashboard at any time. The previous key becomes invalid immediately upon generation of the new one. Ensure your integration updates before the old key expires to avoid service interruption.
Endpoint Structure
The API exposes three primary endpoints for interaction. The speech endpoint handles synthesis requests, while the voices and models endpoints provide metadata for configuration and pricing.
Speech Endpoint
Send text to POST https://api.playvty05.cc/v1/audio/speech to receive an audio file. The request body uses JSON with fields for model, input, voice, response_format, and speed.
Voices Endpoint
Retrieve available voices, languages, formats, and price tiers via GET https://api.playvty05.cc/v1/voices. This endpoint confirms the eight preset voices and supported audio formats.
Models Endpoint
Access model details using GET https://api.playvty05.cc/v1/models. This returns information about the tts-1 and tts-1-hd engines used for synthesis.
Request Parameters
The API accepts plain text input with a strict maximum of 4096 characters per request. Spaces, punctuation, and special symbols are counted toward this limit. For longer content, clients must split the text into sequential chunks and join the resulting audio files.
Input Text
Send the text via the input field in the JSON body. The engine processes up to 4096 characters per call. Characters beyond this threshold require client-side splitting.
Voice Selection
Select one of eight licensed presets using the voice parameter. Options include female voices (aria, nova, luna, sage) and male voices (felix, milo, atlas, orion). Each voice is a preset with a specific tone, such as warm narration or energetic promo.
- aria: warm, clear narrator
- nova: bright, upbeat
- luna: soft, storytelling
- sage: calm, instructional
- felix: energetic, promo
- milo: friendly, conversational
- atlas: neutral, news
- orion: deep, documentary
Response Format
Specify the output format using the response_format field. Supported formats include mp3, wav, opus, flac, and pcm. The default response format is mp3. Audio files are returned directly in the response body.
Speed and Language
The API supports a speed multiplier between 0.25 and 4.0, allowing publishers to adjust pacing for accessibility standards or specific character traits. While short phrases may take a few seconds to generate, longer texts typically process at roughly real-time speed, consuming approximately 25 characters of text per second of audio.
Speed Range
Adjust the speed parameter to control generation pace. Values outside the 0.25–4.0 range will return a 400 Bad Request error. This feature is useful for creating consistent voice lines or optimizing playback speed for users with specific reading needs.
Language Codes
We support 23 specific languages, including Arabic, Chinese, English, French, German, Hindi, Japanese, Korean, and Spanish. Use the language field with the appropriate ISO code to ensure accurate synthesis, particularly for non-English Latin-script texts where the engine might otherwise default to English.
- Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, Turkish.
Auto-Detection
If the language field is omitted, the system guesses the language based on the input script. Latin script defaults to English. For mixed-language content or non-English Latin text, explicitly setting the language parameter prevents misidentification and ensures correct pronunciation.
Code Examples
Integrate Vty Speech into your accessibility pipelines using standard HTTP methods or the OpenAI SDK. The API accepts JSON payloads to synthesize character voice lines and narrated content, returning audio files directly for immediate playback or storage.
Curl Command
Use this command to test synthesis immediately. Replace the placeholder with your Bearer token and the target text.
- POST https://api.playvty05.cc/v1/audio/speech
- Authorization: Bearer tts-your-api-key
- Content-Type: application/json
OpenAI SDK
Configure the OpenAI SDK by setting the base URL to https://api.playvty05.cc/v1. Use the standard speech endpoint method, passing your API key for authentication.
- base_url: https://api.playvty05.cc/v1
- api_key: tts-your-api-key
- model: tts-1 or tts-1-hd
Python Example
Import the OpenAI library or use standard HTTP to send the JSON payload. Set the headers with your Bearer token and include the model, voice, input text, and response format.

Error Handling
The API returns specific HTTP status codes to indicate the state of your synthesis request. Understanding these responses allows your application to handle failures gracefully without unnecessary retries or wasted credits.
Each error code corresponds to a distinct issue, ranging from invalid input parameters to temporary server congestion. Proper error handling ensures your billing remains accurate and your audio generation pipeline stays stable.
400 Bad Request
A 400 status indicates the request body is malformed or missing required fields. Common causes include an invalid model name, a voice ID that does not exist, or input text exceeding the 4096-character limit. Check your JSON structure and character counts before retrying.
- Verify
modelistts-1ortts-1-hd - Ensure
inputis under 4096 characters - Confirm
voiceexists in/v1/voices
429 Rate Limit
This error occurs when you exceed 60 requests per minute per key. If you are on a free trial or have not yet topped up, the limit is stricter at 10 requests per minute. Implement exponential backoff in your client to handle these delays automatically.
- Standard limit: 60 req/min
- Pre-top-up limit: 10 req/min
- Retry with increasing delays
500 Server Error
A 500 error signifies an internal server issue. These are rare but may occur during high load. Failed requests are free, so no credit is deducted. Wait briefly and retry the request; the audio will be generated successfully.
- No charge for failed requests
- Retry after a short delay
Rate Limits
Rate limits govern request throughput per API key. New accounts begin with a strict limit of 10 requests per minute. Upon the first top-up, this limit increases to 60 requests per minute, ensuring stable processing for game audio pipelines.
Requests per Minute
Each API key allows a maximum of 60 requests per minute after the initial top-up. This capacity supports consistent batch processing for character voice lines or accessibility narration without requiring complex client-side logic.
Queue Behavior
Requests are processed sequentially. If the limit is reached, subsequent requests wait in a queue rather than failing immediately. This ensures that all submitted text is synthesized, though generation may take longer during high load.
Burst Limits
Burst capacity is limited by the per-minute cap. Requests exceeding the 60-per-minute threshold will queue until the window resets. Failed requests do not consume quota.
Audio Formats
The API supports multiple audio formats to suit different playback environments and storage constraints. Selecting the appropriate format ensures compatibility with your target devices while managing file size and quality requirements for distributed gaming content.
Each format balances compression efficiency with fidelity. Choose based on whether you prioritize universal player support, lossless archival quality, or bandwidth efficiency for mobile streaming scenarios.
MP3
MP3 is the standard for broad compatibility across web players, mobile apps, and legacy gaming platforms. It offers a good balance between file size and acceptable audio quality for most voice line applications.
- Widely supported by all major audio players and game engines
- Optimized for smaller file sizes to reduce bandwidth costs
- Suitable for standard voice-over and narration tasks
WAV
WAV provides lossless audio quality. This format is ideal for high-fidelity archival storage or when your game engine requires raw PCM data for further processing without decoding artifacts.
- Lossless quality preserves the full fidelity of the synthetic voice
- Ideal for post-production and archival storage
- Larger file sizes compared to compressed formats
Opus
Opus delivers high-quality audio at lower bitrates. It is particularly effective for real-time streaming or bandwidth-constrained environments, ensuring clear speech synthesis without excessive data transfer.
- Superior quality at low bitrates compared to MP3
- Ideal for bandwidth-constrained mobile or web playback
- Efficient for real-time playback scenarios
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. This consistency ensures that instructional text remains comprehensible even under stress or fast-paced action.
23 languages
Any voice speaks any of these languages.
