Frequently asked questions
How do I get an API key?
Sign up on the /get-api-key/ page using Google or email. You receive one active key per account. You can issue a new key anytime, which immediately invalidates the old one. The dashboard displays your key, balance, and usage statistics for easy access during integration.
What is the base URL for the API?
The API base URL is https://api.playtime1.info/v1. You send POST requests to /v1/audio/speech. Other endpoints include GET /v1/voices and GET /v1/models. This structure matches the OpenAI speech endpoint, allowing you to use standard HTTP clients or compatible SDKs for your transport app.
Can I use the OpenAI SDK?
Yes, the official OpenAI SDKs work by changing the base_url to https://api.playtime1.info/v1 and using your AudiPath key. The request shape is identical to the OpenAI speech endpoint. This allows you to integrate TTS into your transport app using familiar code structures without learning a new library.
What audio formats are supported?
You can choose from mp3, wav, opus, flac, or pcm formats via the response_format field. These options allow you to balance file size and quality for your transport announcements. Select the format that best fits your app’s playback requirements and network constraints for efficient audio delivery.
How many voices are available?
There are 8 voice presets available: aria, nova, luna, sage, felix, milo, atlas, and orion. These include female and male options suitable for various announcement styles. Each voice is based on licensed recordings, ensuring clear and professional audio output for your transport application’s user interface.
Which languages are supported?
We support 23 languages, including English, Spanish, German, French, Chinese, Japanese, and Arabic. Any voice can speak any supported language. If you do not set the language parameter, it is guessed from the script, but you should explicitly set it for non-English Latin-script text to ensure accuracy.
What are the rate limits?
You are limited to 60 requests per minute per key. Before your first top-up, the limit is 10 requests per minute. If you exceed this, requests may queue. Longer texts are split into parts of up to 4096 characters and joined, so plan your request volume accordingly for smooth transport announcements.
How do I handle errors?
Failed requests are free, with charges returned in full if synthesis fails. Monitor your response status codes to detect errors. You can retry failed requests without incurring additional costs. Ensure your text input is within the 4096 character limit and uses supported formats to minimize synthesis errors during integration.
First request
curl
curl https://api.playtime1.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.playtime1.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.playtime1.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 |
Get Your API Key
Start by visiting the /get-api-key/ page on playtime1.info. You can sign up using your Google account for an instant start, or create a standard account with an email and password. This step registers your independent storefront account, which is separate from other sites in the network.
Once registered, your dashboard displays your unique API key, current balance, and usage statistics. This key is the single credential required for all your transport app’s audio requests.
Retrieve Your Key
After signing up, navigate to the dashboard to view your active API key. The interface shows your remaining characters and current balance, helping you track usage as you integrate the TTS engine into your bus or train announcement system.
- View key directly on the dashboard
- Check real-time balance and character usage
- Generate a new key instantly if needed (old one stops immediately)
Secure Authentication
Include your key in the HTTP header as Authorization: Bearer tts-... for every request. Each account maintains one active key at a time, ensuring simple security management for indie developers without complex token rotation.
Sign Up on the Site
Make Your First Request
To generate audio for your transport app, send a POST request to the speech endpoint. The API returns an audio file directly in the response, which you can save or play to your users.
cURL Example
Use this cURL command to test the integration. Replace YOUR_API_KEY with your key from the dashboard.
```bash curl -X POST "https://api.playtime1.info/v1/audio/speech" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model": "tts-1", "input": "Next stop: Central Station", "voice": "aria"}' ```
JSON Body Structure
The request body is a standard JSON object. Required fields are model, input, and voice. Optional fields include response_format, speed, and language.
Ensure input does not exceed 4096 characters. For longer announcements, split the text into parts of up to 4096 characters and join the resulting audio files.
- model: "tts-1" or "tts-1-hd"
- input: The text to convert (max 4096 chars)
- voice: One of 8 preset voices (e.g., "aria", "atlas")
- response_format: mp3, wav, opus, flac, or pcm
Endpoint URL
All speech requests go to the same endpoint: POST https://api.playtime1.info/v1/audio/speech.
This URL works with the official OpenAI SDKs by setting the base_url parameter. Simply point the SDK to this domain and use your API key.
Using the OpenAI SDK
Since our API mirrors the OpenAI speech endpoint structure, you can leverage existing OpenAI SDKs with minimal configuration. This allows indie developers to reuse familiar code patterns without learning a new library.
The only required adjustment is pointing the SDK to our base URL. This ensures seamless integration for bus and train announcement systems without extra dependencies.
Change base_url
Configure your SDK client by setting the base URL to https://api.playtime1.info/v1. This redirects all standard speech requests to our infrastructure while maintaining the same request shape.
Use Official SDKs
You can use any official OpenAI SDK (Python, Node.js, etc.). Authentication works by passing your tts-... key as a Bearer token in the Authorization header.
Simple Integration
Pass your text, voice preset, and desired format directly to the speech endpoint. The SDK handles the JSON serialization and HTTP POST, returning audio data for immediate playback in your transport app.
Available Audio Formats
Choosing the right audio format ensures your transport announcements play smoothly across different devices and network conditions. You can select from MP3, WAV, OPUS, FLAC, or PCM via the response_format field in your request.
MP3
MP3 is a widely compatible format for web and mobile transport apps. It offers a good balance between file size and audio quality, making it ideal for standard bus or train stop announcements.
WAV
WAV provides uncompressed, high-quality audio. Use this format when you need pristine sound quality for local playback systems or when network bandwidth is not a constraint.
OPUS, FLAC, PCM
OPUS offers excellent compression for low-bandwidth environments, while FLAC provides lossless compression for archival quality. PCM is raw, uncompressed audio data, useful for direct hardware integration or immediate processing.
Voice Selection
Selecting the right voice ensures your transport announcements are clear, engaging, and appropriate for the context. Our API provides eight distinct presets, each crafted for specific use cases, from calm narration to energetic prompts.
8 Preset Voices
Our library includes eight high-quality voices, all supporting 23 languages. Each voice is based on licensed recordings from LibriVox, ensuring a natural and reliable sound for your applications.
- 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
Gender Options
We offer a balanced mix of female and male voices to suit diverse audience preferences. Female options include Aria, Nova, Luna, and Sage, while male options include Felix, Milo, Atlas, and Orion.
Use Cases for Each Voice
Use Sage for calm, instructional announcements on buses or trains. Choose Atlas for neutral, news-style updates. For more engaging content, Felix offers energetic promo-style voices, while Luna provides soft storytelling for navigation hints.

Language Support
Our TTS engine supports 23 languages, covering major global transit hubs. You can generate clear, natural-sounding announcements in Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, and Turkish. This wide coverage ensures your transport app reaches diverse passenger bases without needing multiple voice providers.
Each voice preset can speak any of these languages, giving you consistency across your entire fleet of announcements. Whether you are building a system for London buses or Tokyo trains, the same API endpoint handles all supported languages with uniform quality and pricing.
23 Languages
The API supports 23 specific languages. We do not support Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, Bengali, or other languages outside this list. Knowing the exact supported languages helps you avoid unexpected errors when deploying your app in new regions.
All 8 voice presets are capable of speaking any of the 23 supported languages. This means you can maintain a consistent brand voice across different linguistic markets without switching models or voices. The audio quality remains uniform regardless of the language spoken.
- 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 you do not specify a language, the API guesses it from the text script. For text in Latin script, it defaults to English. For other scripts like Cyrillic or Hanzi, it attempts to identify the language automatically. This works well for simple, single-language announcements.
Manual Language Setting
For non-English Latin-script text, you should explicitly set the language field. For example, if your app generates announcements in Dutch but defaults to English, the audio will sound incorrect without this setting. Providing the ISO code ensures accurate pronunciation and intonation for your specific use case.
This is crucial for transport apps operating in multilingual regions. By manually setting the language, you avoid ambiguity and ensure the voice speaks the intended language correctly, even if the text contains mixed scripts or common loan words.
Rate Limits and Quotas
Transport announcements often require rapid, sequential calls for stop names or route changes. Our API handles this smoothly, but understanding the limits helps you avoid interruptions during peak hours.
60 Requests Per Minute
After your initial balance is topped up, your key supports 60 requests per minute. This allows you to generate multiple announcements quickly without waiting for long queues.
- Suitable for most bus or train line announcements.
- Ensures consistent audio generation during active service hours.
10 Requests Per Minute Initially
New keys start with a limit of 10 requests per minute. This prevents accidental spikes in usage before you verify your integration. Once you add funds via USDT (TRC-20), the limit increases to 60 RPM automatically.
- Protects your free trial credit.
- Simple verification of your setup before scaling.
Handling High Volume
Requests are processed sequentially. If you send many long texts simultaneously, they may queue. For transport apps, splitting texts into chunks under 4096 characters ensures reliable delivery. Monitor your usage dashboard to stay within limits.
- Split long announcements into smaller segments.
- Use the dashboard to track real-time usage.
Error Handling and Responses
Transport announcements often run under strict timing constraints. Understanding how the API signals success or failure helps you build robust fallbacks for bus stops and train stations without disrupting the passenger experience. You can react to specific error states to retry or adjust playback timing.
The API returns standard HTTP status codes alongside a JSON body. Failed synthesis requests are free, so a billing error won’t impact your balance, but you still need to handle the audio gap in your app’s queue.
Common Error Codes
400 Bad Request: Invalid JSON, missing input, or voice not found. 429 Too Many Requests: You exceeded 60 requests per minute. 500 Internal Server Error: Temporary processing failure; retry with exponential backoff.
- Check
inputlength (max 4096 chars). - Verify your API key format.
- Retry 500s after a short delay.
Response Format
Success returns HTTP 200 with the audio file in the response body. Errors return a JSON object with error containing message and type. Failed requests incur no charge.
Debugging Tips
Log the request details if provided in headers. If a voice sounds wrong, verify the language code matches your text script. Use the /v1/voices endpoint to confirm available voices before making requests.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Balances do not expire, giving you flexibility for seasonal transport updates.
23 languages
Any voice speaks any of these languages.
