Frequently asked questions
What is text-to-speech?
Text-to-speech (TTS) converts written text into audio files. Our cloud API accepts text and returns synthesized speech. You send a POST request with your text, voice, and format preferences. The service processes the input and returns an audio file you can play or embed in your transit application.
How do I choose a voice?
Select from eight presets like Aria for narration or Felix for energetic promos. All voices support any of our 23 languages. Each voice suits different tones, from calm instructions to upbeat announcements. You specify the voice in your API request. All voices support any of our 23 languages, allowing flexible choices for diverse transit environments.
Can I use any text?
You can use any text up to 4096 characters per request. The API supports 23 languages, including English, Spanish, and Chinese. If the language is not specified, it guesses from the script, defaulting to English for Latin text. Ensure you set the language code for non-English Latin scripts.
How long does generation take?
Generation takes roughly real time, about 25 characters per second of audio. Short phrases may take a few seconds. Under load, requests queue, so processing might take longer. Failed requests are free and return immediately, while successful synthesis takes time proportional to the audio length.
What formats can I use?
You can request audio in mp3, wav, opus, flac, or pcm formats. Choose the format that best fits your transit system’s playback hardware or software. The API returns the audio file in your specified format, ensuring compatibility with various playback environments and storage requirements.
Do I need a developer account?
Yes, you need an account to get an API key. Sign up on our /get-api-key/ page using Google or email. The account provides your key, balance, and usage stats. You use this key to authenticate your API requests for generating transit announcements.
Can I use this for commercial projects?
Yes, you can use the generated audio for commercial projects. The audio is synthetic and carries an inaudible watermark. You pay per character used, with no monthly plans or restrictions on usage. This makes it suitable for public transport, parking systems, and automated announcements.
Is the audio clear enough for announcements?
The audio is generated from licensed recordings and sounds natural. Voices like Sage offer calm, instructional tones ideal for announcements. The clarity is suitable for public transport and parking systems. However, it is synthetic speech, so it may not match human nuance perfectly.
How do I handle long texts?
Split texts into parts of up to 4096 characters. Generate audio for each part separately, then join the files. This ensures each request stays within limits. You can automate this process in your application to handle longer transit announcements seamlessly.
Can I change the speed?
Yes, you can adjust the speed between 0.25 and 4.0. This allows you to speed up or slow down the speech for better clarity or pacing. Set the speed parameter in your API request to customize the delivery of your transit announcements.
Does it work offline?
No, the API is cloud-based. You need an internet connection to send requests and receive audio files. The service processes requests on our servers, so offline playback depends on your device’s ability to store and play the returned audio files.
Can I use different languages?
Yes, we support 23 languages including Arabic, Chinese, English, and Spanish. Any voice can speak any supported language. Specify the language code in your request to ensure correct pronunciation. This flexibility is ideal for diverse transit environments with multilingual passengers.
What if the request fails?
If synthesis fails, the charge is returned in full. You receive an error response indicating the issue. Check your input format, voice availability, or API key. Failed requests do not consume your balance, allowing you to retry without cost.
How do I know if it worked?
A successful request returns an audio file in your specified format. Check the HTTP status code and response body. If you receive an error, the request failed. You can also monitor your usage and balance on your account dashboard to track successful generations.
Can I listen to samples?
You can listen to samples by generating audio for test text. Use the API with different voices and formats to hear the quality. You can create short clips to evaluate which voice suits your transit announcements best.
Is there a demo available?
A demo is not explicitly provided as a standalone app. However, you can test the API immediately after signing up. Use the free trial credit to generate audio and hear the results. The /docs/ page provides examples to help you start testing.
Do I need to install software?
No software installation is required. The API is accessed via HTTP requests. You can use any programming language or tool that supports HTTP, such as cURL or the OpenAI SDK. This makes integration easy for developers building transit or announcement features.
Can I use this on mobile?
Yes, you can use the API on mobile devices. Send requests from your mobile app to generate audio. The returned audio files can be played by standard mobile audio players. There is no dedicated mobile SDK, but HTTP requests work universally.
Is there a limit on files?
There is no limit on the number of files you can generate. You are limited by your character count balance and rate limits. You can generate as many files as your budget allows, making it scalable for high-volume transit announcements.
How do I play the audio?
Play the audio using any standard media player that supports your chosen format. MP3 and WAV are widely supported. You can embed the audio in web pages or mobile apps. The API returns the file directly, ready for playback or storage.
Can I edit the text later?
The generated audio is a static file. You cannot edit the text within the audio file. If you need changes, generate a new audio file with the updated text. Input text is not stored, so you must manage your text versions externally.
Does it support accents?
The voices do not have specific accent options; they speak in a standard accent for the selected language. They speak in a standard accent for the selected language. You can influence tone by choosing different voices, but specific regional accents are not a feature. This ensures consistent clarity for transit announcements.
Can I use it for videos?
Yes, you can use the generated audio in videos. Download the audio file and sync it with your video content. The API supports formats like MP3 and WAV, which are compatible with most video editing software. This is useful for automated announcement videos.
Is the API fast enough?
The API processes requests in roughly real time. Short phrases take a few seconds. Under load, requests may queue, increasing wait times. For most transit announcements, this speed is sufficient. Failed requests return quickly, ensuring efficient error handling.
How do I get started?
Sign up on /get-api-key/ using Google or email. You receive an API key and free trial credit. Use the key to make requests to the API endpoint. Follow the documentation for examples. Start generating audio for your transit announcements immediately.
Understanding TTS for transport
Text-to-speech (TTS) is a technology that converts written text into audible speech. For transit apps, it means your software can speak to passengers automatically, turning static stop lists or delay notices into clear audio announcements without needing human voice actors for every variation.
What is text-to-speech
At its core, our TTS API takes a string of text and returns an audio file. You send the message—like "The next stop is Central Station"—and receive an MP3 or WAV file ready for playback. It is a simple cloud service: input text, get speech.
Why use synthetic voice
Synthetic voice removes the logistical bottleneck of recording human voices for every possible route update. It ensures consistent audio quality across all your vehicles and allows you to update messages instantly. If a bus route changes, your app speaks the new route immediately without waiting for a studio session.
- Instant updates to route information
- Consistent audio quality across all devices
- No need for voice actor scheduling
Benefits for transit apps
For indie developers, TTS reduces development time and cost. You can build voice-enabled features for parking systems or automated announcements quickly. Our API handles the heavy lifting, letting you focus on the user experience and the integration logic rather than audio engineering.
- Faster time-to-market for voice features
- Lower operational costs compared to human recordings
- Scalable from one bus to a whole fleet
Preparing your text
To keep your transit announcements reliable, split any route or schedule text into chunks of 4,096 characters or less. Each API request handles one chunk, and you join the resulting audio files to play the full announcement. This ensures stable generation without hitting input limits, which is crucial for detailed stop lists or complex transfer instructions.
Keep text under 4096 chars
Long announcements, such as detailed route changes or station guides, often exceed the single-request limit. Break your text into logical segments, send each via POST, and concatenate the audio responses. This keeps each request lightweight and ensures consistent processing times, preventing timeouts during peak transit hours.
- Maximum 4,096 characters per request
- Split long texts into logical segments
- Concatenate audio files for playback
Use clear pronunciation
Use clear, standard words, as the API does not support custom pronunciation lexicons or SSML. Avoid ambiguous abbreviations like 'St' or 'ave' which might be misread. Write out 'Street' or 'Avenue' to ensure the voice renders the station name correctly. This avoids awkward pauses or mispronunciations in critical safety announcements.
- Write out 'Street' instead of 'St'
- Avoid ambiguous abbreviations
- Use standard spelling for clarity
Avoid special characters
Stick to standard punctuation and basic symbols. Exotic characters or complex formatting may confuse the synthesizer. Keep your text plain to ensure the voice engine processes it smoothly. This reduces the risk of unexpected pauses or errors in the generated audio, keeping the passenger experience seamless.
- Use standard punctuation
- Avoid complex formatting
- Keep text plain and simple
Choosing the right voice
Selecting the right voice ensures your transit announcements are clear, appropriate, and easy for passengers to understand. The API provides eight distinct presets, each tailored to specific communication styles. Choosing correctly depends on the context of the message, whether it is a formal update or a friendly reminder.
Atlas for news updates
Atlas offers a neutral, professional tone ideal for scheduled service updates, delays, or station changes. Its clear enunciation ensures critical information is heard without distraction, making it perfect for standard transit notifications where clarity is paramount.
Milo for conversational cues
Milo brings a friendly, conversational tone to your app. Use it for interactive prompts, such as asking users to confirm a destination or providing gentle reminders. This voice feels approachable, enhancing the user experience during direct interactions.
Sage for instructions
Sage delivers a calm, instructional voice suitable for step-by-step guidance. It works well for explaining how to use ticket machines, navigate transfers, or follow safety procedures. Its steady pace helps users process complex instructions without feeling rushed.
Making the API request
Generating transit announcements requires sending a POST request to the API endpoint with your synthetic speech parameters. You authenticate using a Bearer token and provide the text to be converted into audio.
The request body follows a standard JSON structure, allowing you to specify the model, voice preset, and output format. This simplicity lets you integrate voice features directly into your transport or parking systems without complex middleware.
Set up authentication
Include your API key in the Authorization header as Bearer <your-key>. Ensure your key is active and has sufficient balance to cover the character count of your announcement text.
- Use
Authorization: Bearer tts-...format - One key per account; new keys invalidate old ones instantly
- Check balance on /get-api-key/
Construct JSON body
Create a JSON object with the required fields. The input field holds your announcement text, capped at 4096 characters. Select a voice like atlas for news-style updates or milos for conversational cues. Specify the response_format (e.g., mp3, wav) and optional speed between 0.25 and 4.0. The language field is optional but recommended for non-English text.
If the announcement is in a specific language not guessed from the script, set the language field with the ISO code. This ensures accurate pronunciation for multi-lingual transit systems.
model: "tts-1" or "tts-1-hd"voice: e.g., "atlas", "milo", "sage"response_format: mp3, wav, opus, flac, or pcminput: max 4096 characters
Send POST request
Send the request to POST https://api.wz777app.com/v1/audio/speech. The API processes the text and returns the audio file directly in the response body. Failed requests are free, so you can retry safely if needed.
Note that requests are processed sequentially. Under load, you might experience slight delays, but typical generation speed is roughly real-time (25 characters per second).
Handling the response
The API returns the synthesized audio directly in the response body, allowing you to save the file immediately. Note that there is no streaming support; the full file is returned. You can choose formats like MP3, WAV, OPUS, FLAC, or PCM depending on your app’s playback requirements.
Receive audio file
Upon successful synthesis, the response contains the raw audio bytes. Ensure your client handles binary data correctly to avoid corruption during transfer.
- Supported formats: mp3, wav, opus, flac, pcm
- Audio matches the requested speed and voice settings
Play in your app
Integrate the audio file into your transit or parking system’s audio player. Since requests are processed sequentially, short phrases may take a few seconds to generate, so pre-generating common announcements is recommended.
Handle errors
If synthesis fails, the charge is returned in full. Check the response status code to determine if you need to retry the request or adjust parameters like text length or voice selection.
Optimizing for latency
Latency matters in transit systems where announcements must sync precisely with vehicle movement. By pre-generating common messages like "Next stop: Central" or "Mind the gap," you eliminate API call delays during peak hours. This ensures instant playback without waiting for synthesis.
Caching these audio files locally on your server reduces dependency on real-time generation. Store the generated MP3 or WAV files and serve them directly from your app’s assets. This strategy minimizes network overhead and keeps your system responsive even under heavy load.
Pre-generate common messages
Identify high-frequency announcements specific to your routes. Generate these audio files once using the API and store them. This approach removes the variable latency of synthesis from your critical path, ensuring consistent timing for passenger information.
Since synthesis takes a few seconds for short phrases, pre-generation guarantees that the audio is ready the moment it is needed. This is particularly useful for repetitive announcements that occur at every station or stop.
- Identify the 20 most frequent announcements.
- Generate them once during setup.
- Store locally for instant playback.
Use caching strategies
Cache generated audio files on your server or edge nodes. If the text and voice parameters remain identical, serve the cached file instead of making a new API request. This reduces costs and improves speed.
Implement a caching strategy using the input text and voice ID to avoid redundant API calls. This ensures that identical requests return the same cached file, maintaining consistency across all devices.
Minimize network calls
Batch requests where possible, though the API processes them sequentially. Pre-generating reduces the number of active connections needed during operation. Ensure your app does not trigger redundant synthesis for the same message.
Monitor your rate limits (60 requests per minute). By minimizing unnecessary calls, you stay within limits and avoid queuing delays. Use the free trial to test your caching logic and measure actual latency improvements.
Testing your integration
Testing ensures your transit announcements play correctly across devices and networks. Start with the free trial to validate your setup without spending credits, then verify behavior under load.
Use the provided dashboard to monitor usage and confirm that each request returns the expected audio file or error code before committing to production.
Use the free trial
Sign up with Google to receive $0.50 in credit, valid for 7 days. This covers about 50,000 characters, enough to test common station announcements and verify integration.
Email-based accounts start without trial credit, so consider Google sign-up for immediate testing capability.
- Validate API key authentication
- Confirm character counting logic
- Check rate limit handling
Test multiple voices
Try Atlas for neutral news updates, Milo for conversational cues, and Sage for instructional guidance. Each voice behaves differently with transit-specific phrasing, so compare outputs for clarity.
Ensure the chosen voice matches the tone of your specific use case, such as parking reminders versus schedule changes.
- Atlas: neutral, news-style
- Milo: friendly, conversational
- Sage: calm, instructional
Check audio quality
Download the generated MP3 or WAV files and play them on target devices. Listen for clarity, speed, and natural flow, especially with technical terms or station names.
Verify that the audio length matches expectations; long texts may take longer to generate but should remain clear and intelligible.
- Test MP3 and WAV formats
- Verify playback on mobile devices
- Check audio clarity and speed
Deployment considerations
As your transit announcement feature goes live, keeping an eye on your API usage is crucial. Since billing is based on character count, understanding your consumption helps avoid unexpected surprises. Our dashboard provides clear visibility into your balance and characters used, allowing you to stay within budget without manual invoices or VAT complications.
We do not offer SLAs or uptime guarantees, so building resilience into your app is your responsibility. By monitoring your key’s activity, you can ensure your announcements remain reliable even during peak travel hours or system updates.
Monitor usage limits
Each account comes with one active API key. You can issue a new key at any time, which immediately invalidates the old one. This simple rotation strategy helps you manage access without complex permission structures. Keep track of your USDT balance and character consumption to maintain smooth operations.
We do not send invoices or require subscriptions, so your balance never expires. Just ensure you top up via TRON (TRC-20) to keep your announcements running. Our dashboard shows exactly how many characters you have left, making it easy to plan for large-scale deployments.
- - One active key per account; rotate anytime
- - Balance does not expire
- - No monthly plans or minimum spend
- - Track usage directly in the dashboard
Handle rate limits
Your API key is limited to 60 requests per minute once funded. Before your first top-up, this limit is 10 requests per minute. If you exceed this, requests will queue or fail. Implement exponential backoff in your code to handle these pauses gracefully without disrupting the user experience.
Failed requests are free, so if a timeout occurs, you won’t be charged. However, repeated failures can indicate a need for better error handling. Use the GET /v1/voices endpoint to verify available voices and formats before sending large batches of announcement text.
- - 60 requests/minute after top-up
- - 10 requests/minute before top-up
- - Failed requests are free
- - Implement exponential backoff
Scale your app
For high-volume announcements, split texts longer than 4096 characters into smaller parts and join the audio files. This ensures consistent quality and prevents request failures. Since requests are processed sequentially, under heavy load, a request may wait in a queue, so plan for slight delays in real-time scenarios.
You can generate audio for common messages (e.g., "Next stop: Central") in advance and cache them locally. This reduces API calls and latency. Since we don’t store generated audio, you must manage your own caching strategy to optimize performance and reduce costs.
- - Split text >4096 chars
- - Requests are sequential
- - Pre-generate common messages
- - Cache audio locally
Language support
ScribeCast supports 23 languages, allowing you to serve diverse transit networks without managing multiple voice models. You can explicitly set the language field or rely on automatic detection, though explicit codes are recommended for Latin-script texts outside English to ensure accurate pronunciation.
This flexibility ensures your announcements sound natural whether you are broadcasting in Tokyo, Berlin, or São Paulo, keeping integration simple for indie developers building global transit features.
Set language code
Always provide the ISO 639-1 language code in your request to guarantee consistent output. This prevents the model from guessing incorrectly, especially for languages that share similar scripts.
For example, setting language: 'zh' ensures Chinese characters are pronounced correctly, even if the surrounding context might otherwise suggest a different language.
- Supported codes include: zh, ja, ko, ar, hi, ru, and 18 others listed in our docs.
- Explicit codes reduce ambiguity for polyglot text or mixed-script announcements.
Guess from script
If you omit the language field, the API infers it from the text’s script. Latin text defaults to English, so non-English Latin text requires explicit setting.
Cyrillic or Arabic scripts trigger their respective languages automatically, but explicit codes remain the most reliable method for production transit apps.
Multi-language support
Any of our 8 voices can speak all 23 supported languages, allowing consistent branding across different regions. You do not need to swap voices when crossing language borders.
Note that Vietnamese, Indonesian, Thai, Ukrainian, Romanian, Czech, and Bengali are not yet supported, so verify your target markets against our list before deploying.
Common mistakes
Developers often overlook the 4,096 character limit per request, causing silent failures or truncated audio when generating long station announcements. Each request is processed sequentially, so exceeding limits wastes your quota without delivering usable audio.
Errors during synthesis are free, but ignoring them can lead to incomplete message sets in your transit app. Always check the response status to ensure the audio was generated correctly before playing it to passengers.
Ignoring character limits
Split long texts into chunks of 4,096 characters and join the resulting audio files. This ensures every part of your announcement is delivered without hitting the hard API limit.
Not handling errors
Failed requests are free, but you must detect them to avoid playing empty audio. Implement retry logic for transient issues, but remember that requests are processed one after another, so under load you may experience delays.
Using wrong format
Ensure your app expects the correct response_format (mp3, wav, opus, flac, or pcm). Sending a request for WAV but expecting MP3 will cause playback failures in your transit interface.
Next steps
You now have the core workflow for generating transit announcements. The next phase is moving from concept to a live, voice-enabled experience for your users.
Read full docs
Dive into the full API documentation to understand every parameter, from voice selection to audio formats. The docs provide detailed reference material for the endpoints and request structures you will use daily.
Try the API
Sign up for a free trial to generate your first audio files without financial risk. Use the provided curl examples to verify your setup and test different voices like Atlas or Milo.
- Test with common transit phrases
- Verify audio quality in your environment
- Check character count limits
Build your feature
Integrate the TTS API into your transport app or parking system. Start with a single announcement type and gradually expand to cover all your routes and vehicle types.
Support and resources
We handle all inquiries via email. There is no phone line or live chat waiting room, so your request goes directly to our support team for a prompt, written response.
Email support
Our support team is available via email only. Since we do not maintain phone lines or live chat widgets, your messages are routed directly to our engineers. This ensures you receive accurate, written answers without the noise of a call queue. We aim to respond quickly to help you unblock your transit announcement integration.
Community forums
There are no official community forums for this API. Instead, you can share your transit announcement use cases and integration tips directly via email or on social media. We encourage you to post your solutions so other indie developers building parking systems or bus apps can learn from your experience.
Example code
Start with our ready-to-use curl example on the dashboard. It demonstrates the exact JSON structure for sending text to the TTS endpoint. You can adapt this snippet for your transit app’s announcement feature. For more detailed reference, including rate limits and voice options, visit our full documentation page.
- Use the dashboard’s built-in curl example
- Check /docs/ for full parameter details
- Refer to the /get-api-key/ page for your key
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Her clear enunciation works well for general information, reducing listener fatigue during long commutes.
23 languages
Any voice speaks any of these languages.
