Frequently asked questions
What is text to speech technology?
Text-to-speech (TTS) is a cloud API that converts written text into audio files. You send a JSON request with your text and voice preference, and receive an MP3, WAV, or other format. It replaces static audio files with dynamic, on-demand speech generation for your transit announcements.
How does TTS work for buses?
Your application sends text to our API endpoint, which returns an audio file. You play this file via your bus’s audio system. Since requests are processed sequentially, longer texts may queue. You can split long announcements into 4096-character chunks and join the resulting audio files seamlessly.
Is synthetic speech acceptable for public announcements?
Yes, all generated files carry an inaudible watermark marking them as synthetic speech. This confirms the audio is AI-generated. Synthetic speech is reliable for public spaces, offering consistent delivery in 23 languages without the variability of human recording errors or fatigue during long shifts.
What languages are supported?
We support 23 languages: Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, and Turkish. Any voice can speak any of these languages. If you do not set the language, it defaults to English for Latin text.
How accurate is the pronunciation?
Voices are based on licensed recordings from LibriTTS-R and LibriVox. The system guesses the language from the script if not specified. For non-English Latin text, set the language parameter to ensure accuracy. The engine handles standard pronunciation well.
Can TTS handle emergency alerts?
Yes, you can send any text up to 4096 characters per request. For longer emergency messages, split the text into parts and join the audio files. The API processes requests sequentially, so ensure your system handles queueing if multiple announcements trigger simultaneously. Failed requests are free, ensuring no cost for errors.
What is the latency of TTS?
Typical speed is roughly real-time, generating about 25 characters of text per second of audio. Short phrases take a few seconds. Requests are processed one after another, so under load, a request may wait in a queue. Plan your buffer times accordingly for smooth transit announcements.
Do I need special hardware?
No special hardware is required beyond standard audio output devices. The API returns standard audio formats like MP3, WAV, Opus, FLAC, or PCM. Your existing bus or train audio system can play these files directly. No proprietary hardware or specific codecs are needed for integration.
How is the audio stored?
Generated audio is returned in the response and not stored by our API. Input text is used only to produce the audio and is not used for training. We keep request metadata (time, characters, status) for billing purposes only. You manage the storage of the audio files on your end.
Can I customize the voice?
You can choose from 8 preset voices: Aria, Nova, Luna, Sage, Felix, Milo, Atlas, or Orion. You can adjust the speed between 0.25 and 4.0. However, we do not offer custom voice cloning, emotion tags, or SSML. Each voice is a fixed preset based on licensed recordings.
What is the difference between tts-1 and tts-1-hd?
Both models use the same engine and have the same price. The only difference is the model name. You can switch between them by changing the model field in your request. Both support all 8 voices and 23 languages, with identical character limits and speed settings.
How do I test the API?
Sign up on our site to get an API key. Use the official OpenAI SDK by changing the base URL to https://api.play2739.com/v1. You can also use plain HTTP POST requests. The /get-api-key/ page provides a ready curl example to help you start testing immediately with your free trial credit.
What is a watermark?
Every generated audio file carries an inaudible watermark that marks it as synthetic speech. This watermark is embedded by our engine to identify the audio as AI-generated. It does not affect playback quality or compatibility with standard audio players and hardware used in transit systems.
Is the API secure?
We use Bearer token authentication with your unique API key. Input text is not used for training. We retain request metadata for billing. We do not offer an SLA or specific certifications like SOC 2. The API uses standard HTTPS connections for secure data transmission between your app and our servers.
Definition of TTS in transit context
VocalPath provides a cloud text-to-speech API that converts route text into audio files. This synthetic voice generation ensures consistent, high-quality announcements for buses, trains, and public spaces without requiring voice actors.
Synthetic voice generation for announcements
VocalPath uses licensed voice recordings to generate clear, natural-sounding speech. Our API supports eight distinct voices, including calm narrators and energetic presenters, suitable for various transit environments.
Automated text-to-audio conversion
Send text via a simple POST request to receive an audio file. The API handles the conversion instantly, supporting formats like MP3, WAV, and FLAC for easy integration with playback systems.
On-demand audio synthesis for routes
Generate audio files as needed rather than storing hundreds of pre-recorded clips. This approach allows for instant updates to schedule changes or disruptions, ensuring passengers always hear accurate information.
Benefits for public transport
Transit operators often face high production costs and logistical delays when updating voice actor recordings for schedule changes or route modifications. VocalPath’s cloud API eliminates the need for booking studio time or managing physical audio files, allowing teams to generate fresh audio from text in seconds.
This approach ensures that announcement systems remain current without operational downtime. By switching from pre-recorded files to on-demand synthesis, agencies can maintain accuracy across their fleet with minimal administrative overhead.
Reduced need for voice actor studios
Traditional transit audio systems require recording sessions, editing, and storage management for every route variation. VocalPath removes this infrastructure burden by generating audio directly from text inputs via a simple API call.
Operators no longer need to coordinate voice talent schedules or maintain large libraries of static audio files. This reduces both upfront production costs and ongoing maintenance efforts.
- Eliminate studio booking fees and engineer hours
- Store only text strings instead of large audio files
- Reduce administrative overhead for content management
Quick updates for schedule changes
When a bus route changes or a train is delayed, announcements must be updated immediately. VocalPath allows operators to inject new text into the system and receive synthesized audio almost instantly.
This capability ensures that passengers always hear accurate, up-to-date information without waiting for new recordings to be produced and distributed to vehicles.
- Generate audio from text in seconds
- Ideal for real-time delay announcements
- No re-recording or file distribution needed
Consistent audio across all vehicles
Using a single synthetic voice across an entire fleet ensures a uniform brand experience. Whether a passenger is on a bus in the city center or a train on the outskirts, the voice remains identical.
This consistency builds trust and recognition. All vehicles use the same voice presets, ensuring that audio quality and tone are uniform regardless of the hardware used for playback.
- Uniform voice across entire fleet
- No variation between recording sessions
- Reliable brand identity in audio
Technical requirements
To deploy VocalPath, your system needs a stable internet connection to send text to our API endpoint. Each request is processed independently, so latency depends on queue load, typically taking a few seconds for short phrases.
The core integration relies on a standard JSON POST request. You specify the model, input text, voice preset, and output format. Our API returns the audio file directly, requiring minimal code to handle the response.
Internet connection for API calls
A reliable internet link is essential for sending synthesis requests. Since requests are processed sequentially, heavy load may introduce slight delays, but the connection must remain active to receive the audio file.
- Stable broadband or 4G/5G connectivity
- Supports standard HTTP/2 connections
Basic JSON request structure
Send a POST request to /v1/audio/speech with your Bearer token. Include the text (up to 4096 characters), desired voice, and format like mp3 or wav. The API handles the synthesis and returns the binary audio data.
- Standard JSON body format
- Supports OpenAI SDK compatibility
- Max 4096 characters per request
Audio playback hardware integration
Integrate the returned audio files with your onboard sound systems. Since the API returns standard audio formats, they work with most vehicle PA systems, Raspberry Pi devices, or embedded Linux boards used in transit vehicles.
- Compatible with MP3/WAV/OPUS players
- Works with Raspberry Pi or embedded systems
- Standard audio protocol support
Language support importance
Transit systems serve diverse passenger populations, making language support critical for clarity and accessibility. Our API handles 23 languages, ensuring announcements are understood by both locals and tourists without needing multiple voice actors.
Multi-language announcement capabilities
Each of the eight voices can speak any of the 23 supported languages, from Arabic to Turkish. You specify the language parameter to ensure accurate output, especially when using Latin script for non-English texts like German or Dutch.
- Supports 23 languages including English, Spanish, Chinese, and Hindi.
- Single API call handles multilingual routes seamlessly.
Accurate pronunciation in local dialects
Consistency is key for passenger trust. The engine guesses the language from the script but allows explicit override via the language ISO code. This prevents mispronunciation when text contains mixed scripts or ambiguous loanwords.
- Explicit language setting overrides script-based guessing.
- Reduces errors in mixed-script announcements.
Mixed language support for tourists
Tourist-heavy routes often require switching between local language and English. The API processes each text segment independently, allowing you to chain announcements in different languages within a single trip sequence.
- Ideal for international airports and city transit.
- No need for separate audio files per language.
Audio quality standards
Transit environments are inherently loud. Our TTS engine produces clear, articulate speech that cuts through engine noise and crowd chatter. By optimizing phoneme clarity and pacing, announcements remain understandable even in busy stations or moving buses, ensuring passengers never miss critical information.
Consistency is key for reliability. Every voice preset delivers uniform volume and tone, preventing jarring shifts between stops or routes. This uniformity helps reduce passenger fatigue and builds trust in the system’s professionalism, regardless of which vehicle or station plays the audio.
Clear speech for noisy environments
We prioritize phoneme clarity for transit environments. This ensures that route names, transfer instructions, and safety warnings are distinct and easy to parse, even when background noise exceeds 70 decibels. The audio is optimized for playback through standard transit speakers without requiring complex equalization.
Consistent volume and tone
All eight voice presets maintain a steady amplitude and emotional tone. This prevents the audio from sounding too soft or overly aggressive across different announcements. Developers can rely on this consistency to create a predictable user experience for passengers using the audio system.
Watermark for synthetic identification
Every generated audio file contains an inaudible watermark verifying it as synthetic speech. This provides transparency for regulatory compliance and helps distinguish our automated announcements from human-recorded tracks. It is a simple, reliable method to audit audio sources without affecting playback quality.
Integration with existing systems
VocalPath’s API enables seamless integration into existing transit CMS and dispatch systems. By sending standard JSON payloads, operators can update announcement text dynamically without re-recording studio tracks.
API-based content management
Update departure boards and audio simultaneously. Change route text in real-time by calling the speech endpoint with new input text. The system handles the conversion to audio formats like MP3 or WAV, which your playback hardware plays directly.
- Standard JSON request body compatible with existing HTTP clients
- Support for multiple response formats (mp3, wav, opus, flac)
- Instant audio generation without manual file uploads
Scheduled announcement triggers
Integrate with your cron jobs or scheduling software. When a bus approaches a stop, your system sends a request to generate the specific announcement audio. This ensures consistent tone and volume across all vehicles without relying on pre-recorded clips that may degrade.
- Trigger audio generation via simple HTTP POST requests
- Supports speed adjustment (0.25–4.0) for tight schedules
- Generates audio on-demand, saving storage space
Emergency alert integration
For urgent updates, send high-priority text to the API. Send high-priority text to the API to generate clear, synthetic speech immediately. The watermark verifies the source as synthetic, ensuring transparency during critical announcements. Failed requests are free, so you can retry without cost.
- Immediate generation for time-sensitive alerts
- Inaudible watermark confirms synthetic origin
- No extra cost for failed retry attempts

Cost comparison vs traditional methods
Traditional transit announcements require hiring voice actors, booking studio time, and managing physical media distribution. VocalPath replaces this workflow with a simple API call, generating high-quality audio on demand. You pay only for what you use, eliminating large upfront production costs.
Lower production costs
You avoid the expense of professional recording sessions. With pricing at $10 per 1 million characters, generating thousands of announcements costs pennies. Failed requests are free, so you only pay for successful audio files.
- No upfront licensing fees
- Pay-per-character model
- Free failed requests
No studio booking fees
Traditional methods often involve scheduling studio time and coordinating talent availability. Our API works 24/7. You can generate updates instantly whenever schedules change, without waiting for a studio slot or additional booking costs.
- Instant generation
- 24/7 availability
- No scheduling conflicts
Scalable pricing model
Whether you manage one bus route or an entire city network, your costs scale linearly with usage. There are no monthly plans, seats, or minimum spends. Top-ups via USDT keep your balance active without expiration.
- Linear cost scaling
- No monthly subscriptions
- No minimum spend
Developer considerations
Transit systems demand consistent uptime, but our API processes requests sequentially, meaning heavy loads may queue slightly. Since we offer no SLA or uptime guarantee, your architecture should account for occasional latency during peak generation times.
API reliability and uptime
Requests are processed one after another, so under load a request may wait in a queue. Typical speed is roughly real time, but short phrases take a few seconds. Plan for this queue behavior in your cron jobs.
- No SLA or uptime guarantee provided
- Requests processed sequentially under load
- Approx. 25 characters generated per second
Error handling strategies
Failed requests are free; if synthesis fails, the charge is returned in full. Always check the HTTP status code before assuming audio generation is complete. Implement retry logic for transient network errors, but avoid retrying immediately after a rate limit hit.
- Failed requests are refunded automatically
- Implement exponential backoff for retries
- Check status codes before parsing audio
Caching strategies for routes
Since each request costs $0.01 per 1,000 characters, cache generated audio files for static announcements like station names. Split long texts into parts of up to 4096 characters and join them, but cache the final merged file if the route rarely changes. This reduces API calls and speeds up playback.
- Cache static announcements to save credits
- Split text into 4096 char chunks
- Re-cache when route data changes
Use cases in different vehicles
Transit environments demand clear, reliable audio that adapts to diverse passenger needs. VocalPath’s TTS API enables developers to generate precise, multi-language announcements for buses, trains, and airports without managing complex voice actor workflows or studio infrastructure.
By leveraging our API, indie developers can deploy consistent, watermark-verified synthetic speech across entire fleets. This ensures passengers receive accurate, timely information regardless of location or language, enhancing accessibility and operational efficiency.
Bus stop announcements
Generate dynamic stop announcements for bus routes using simple JSON requests. The API supports 23 languages, allowing clear instructions in local dialects and tourist languages. This ensures riders receive accurate arrival info without expensive studio recordings.
With a $0.01 per 1,000 characters pricing model, updating bus stop scripts is cost-effective. Developers can trigger announcements based on GPS data, ensuring real-time relevance for passengers waiting at stops.
- Support for 23 languages including English, Spanish, and Mandarin
- Real-time updates via API calls triggered by vehicle location
- Consistent audio quality across all bus units
Train platform updates
Deliver platform change notifications and delay updates instantly. Train platforms often have high ambient noise; our voices like Atlas (neutral, news) ensure clarity. The API’s robust handling of short phrases guarantees quick response times.
Integrate with existing train station systems via standard HTTP requests. No need for custom hardware or dedicated servers. The synthetic watermark verifies audio origin, aiding in quality control for public safety announcements.
- Clear, neutral voice options for high-noise environments
- Instant delivery of schedule changes and delays
- Easy integration with station broadcast systems
Airport terminal guidance
Guide passengers through terminal navigation with clear, multi-lingual announcements. Airport environments require precise pronunciation across many languages. VocalPath’s TTS handles mixed-language inputs seamlessly, supporting tourists and locals alike.
Scale announcements across large terminals without hiring multiple voice actors. Use the API to generate directional cues, gate changes, and security reminders. The 4096-character limit per request covers typical announcement lengths efficiently.
- Multi-lingual support for diverse international passengers
- Scalable pricing for large-scale deployments
- Reliable synthetic speech for critical travel information
Regulatory compliance
Synthetic transit announcements must meet accessibility guidelines, such as WCAG 2.1, by providing clear, consistent audio that replaces or supports visual signage. Our API generates standard, predictable speech patterns that comply with these digital accessibility norms.
Accessibility standards for TTS
Consistent voice output ensures reliable comprehension for passengers with hearing impairments or those relying on audio cues in noisy stations. Since our voices are stable and uniform, they integrate smoothly with screen readers and public address systems that expect predictable audio profiles.
Public announcement regulations
Transit authorities often require distinct audio branding or specific tone requirements for safety alerts. Our 8 voice presets allow operators to select tones suitable for emergency warnings (e.g., Atlas for news-like clarity) or routine updates, ensuring regulatory clarity without manual recording.
Data privacy for passenger data
Since input text is used only to produce audio and not for training, passenger-specific route data remains transient. Request metadata is kept for billing but does not store the audio content, minimizing privacy risks in compliance with general data protection principles.
Future trends in transit audio
While our API currently delivers static text-to-speech, the foundation for dynamic transit audio is already in place. By combining our rapid synthesis engine with external data feeds, operators can move beyond pre-recorded loops toward truly responsive announcement systems that adapt to live operational changes.
This section outlines how future transit audio can evolve by leveraging real-time data, without requiring us to build complex AI models. Our role remains providing the reliable, multi-language speech engine that powers these smarter announcements.
AI-driven dynamic announcements
Future systems will use our API to generate announcements on the fly. When a bus is delayed or a platform changes, the system sends the updated text to our endpoint. The API synthesizes the audio instantly, ensuring passengers hear the correct message without waiting for a new studio recording.
This approach eliminates the need for manual updates for every minor schedule change. The AI logic handles the text generation, while our engine ensures the voice remains consistent and clear, regardless of the complexity of the announcement.
- Generate custom text from live data feeds
- Synthesize audio in seconds via our API
- No manual studio recording required for updates
Personalized audio experiences
By passing specific voice presets or languages via the API, transit systems can offer tailored announcements. For example, a station could switch to a specific voice or language based on the time of day or detected passenger demographics, though this requires external logic to decide.
Our 8 voice presets and 23 language supports allow for varied auditory experiences. A system could route specific text to 'aria' for calm evening announcements or 'felix' for high-energy morning rush hours, all driven by the same API infrastructure.
- Select voices based on time or location
- Support 23 languages for tourist areas
- Use different tones for different vehicle types
Integration with real-time GPS
The most powerful trend is coupling GPS coordinates with our TTS API. When a vehicle crosses a geofence, a trigger sends the stop name and arrival time to our endpoint. The API returns the audio file, which is then played on the vehicle’s speakers.
This creates a seamless loop: GPS data -> Text -> API -> Audio. Since our API returns audio files quickly, this workflow works well for bus and train systems that need precise timing without complex on-board processing hardware.
- Trigger announcements via GPS geofences
- Combine location data with API calls
- Automate stop announcements for any route
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. Generate short phrases like "Next stop: Central Station" to check clarity.
23 languages
Any voice speaks any of these languages.
