API Documentation for Transport Text to Speech

By Audionet editorial team · Updated 2026-11-18

This guide helps transport product teams integrate clear, synthesized audio into route updates, safety alerts, and station announcements. You will find concrete examples for generating speech via HTTP or the OpenAI SDK, covering models, voices, and formats that fit your digital displays and PA systems.

We provide everything needed to start quickly: sign up for a key, make your first request, and handle errors. The documentation focuses on reliable, straightforward integration without enterprise complexity. Use this page to understand rate limits, pricing, and voice selection for your specific use case.

API Documentation for Transport Text to Speech

Frequently asked questions

What is the API endpoint?

Send a POST request to https://api.t883casino.com/v1/audio/speech with a JSON body containing your text, voice, and model parameters. The endpoint accepts standard fields like input, voice, and response_format, allowing you to generate audio files directly for your transport announcements or digital displays.

How do I get an API key?

Sign up on our /get-api-key/ page using Google or an email and password. Your dashboard displays your active API key, current balance, and usage statistics. Each account is tied to a single key, which you can manage directly from this page. Note that accounts are per site, so ensure you are registering on the correct domain for your Audionet access.

Which SDK should I use?

We don’t offer a proprietary SDK. Our API mirrors the OpenAI speech endpoint, so you can use official OpenAI SDKs by setting the base_url to https://api.t883casino.com/v1. Simply provide your API key, and your existing code will work seamlessly. This approach lets you integrate quickly without learning a new library, leveraging familiar tools for your transport audio workflows.

Can I use Python with this API?

Yes. Our API matches the OpenAI speech endpoint, so you can use the official OpenAI Python library by setting the base_url to https://api.t883casino.com/v1. Alternatively, send standard HTTP POST requests using libraries like requests. This flexibility ensures easy integration into your existing transport product workflows without custom wrappers.

How do I set the language?

Include the optional 'language' field in your request body with an ISO code, such as 'en' or 'de'. If omitted, the system guesses the language from the script, defaulting to English for Latin text. Explicitly setting the language ensures accurate pronunciation for non-English Latin-script announcements.

What is the max text length?

Each request supports up to 4096 characters of input text. For longer announcements, split your text into chunks of this size and join the resulting audio files. This approach ensures consistent audio quality and manageable request sizes for your station announcements or safety alerts.

How do I handle errors?

Failed requests are free; if synthesis fails, the charge is returned in full. Monitor your response status codes to detect issues. Because requests are processed one after another, high load may cause delays as your request waits in a queue. Your balance remains accurate regardless of these processing delays. Check the /docs/ page for specific error codes.

Is the API rate-limited?

Yes. You get 60 requests per minute per key, or 10 per minute before your first top-up. Requests are processed sequentially, so under load, a request may wait in a queue. This ensures fair usage for all transport teams generating audio for digital displays and PA systems.

Can I use the same key everywhere?

Yes. Your single active API key works across multiple applications or environments. If you need to revoke access, you can issue a new key at any time via the dashboard. The old key stops working immediately, ensuring secure access control for your transport team's various endpoints.

How do I regenerate my key?

Visit the /get-api-key/ page to issue a new key. When you generate a new key, the previous one becomes invalid immediately. This allows you to rotate credentials securely. Since accounts are per site, ensure you are on the correct domain. Your transport applications will authenticate using the new key without downtime.

What happens if I exceed limits?

Requests process sequentially, so high volume causes queuing delays. If you exceed the 60 requests per minute limit, subsequent requests may queue or return an error. Failed requests are free, but successful ones consume your balance. You can top up using USDT on the TRON network (TRC-20) to continue generating audio for your announcements.

Do I need to install extra libraries?

No specific library is required. Our API follows the OpenAI format, so the official OpenAI SDK works by changing the base URL. However, we do not offer a dedicated Audionet SDK. You can also use standard HTTP libraries like Python’s requests or simple curl commands to send JSON payloads and receive audio files.

First request

curl

curl https://api.t883casino.com/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.mp3

Python (openai)

from openai import OpenAI

client = OpenAI(base_url="https://api.t883casino.com/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.t883casino.com/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
ariafemale
novafemale
lunafemale
sagefemale
felixmale
milomale
atlasmale
orionmale
language
arالعربية
zh中文
daDansk
nlNederlands
enEnglish
fiSuomi
frFrançais
deDeutsch
elΕλληνικά
heעברית
hiहिन्दी
itItaliano
ja日本語
ko한국어
msBahasa Melayu
noNorsk
plPolski
ptPortuguês
ruРусский
esEspañol
swKiswahili
svSvenska
trTürkçe

Get your API key

Sound wave illustration for: Get your API key

To start using the TTS API for your transport announcements, create an account on our get-api-key page. You can sign up using your Google account or by providing an email and password. This creates your unique workspace where you can manage usage, view your balance, and access your credentials.

Sign up on get-api-key page

Visit the /get-api-key/ section of this site to begin. Once registered, you will see your API key, current balance, and a ready-to-use cURL example. This dashboard helps you monitor character usage and manage your account settings efficiently.

Google or email authentication

You may choose either Google authentication or traditional email and password registration. Please note that accounts created with email and password start without the free trial credit, whereas Google sign-ups include an initial $0.50 credit valid for seven days.

One key per account

Each account is issued one active API key at a time. You can generate a new key at any moment; when you do, the previous key stops working immediately. This ensures secure access control for your transport product team’s integration.

First request with curl

Sound wave illustration for: First request with curl

Send a POST request to the speech endpoint to receive synthesized audio. The API accepts text and returns an audio file in the specified format. This direct HTTP method works for any integration that can handle standard JSON payloads.

Ensure you include the required parameters in the request body. The model determines the engine, input is your text, and voice selects the preset. You can also specify response_format and speed to tailor the output.

Basic POST request example

Use curl to test the endpoint quickly. Replace YOUR_API_KEY with your actual key from the dashboard.

  • curl -X POST https://api.t883casino.com/v1/audio/speech \
  • -H "Authorization: Bearer YOUR_API_KEY" \
  • -H "Content-Type: application/json" \
  • -d '{"model": "tts-1", "input": "Attention passengers, the next stop is Central Station.", "voice": "atlas"}'

Required fields: model, input, voice

The request must include the model name, such as tts-1 or tts-1-hd. The input field contains the text to synthesize, up to 4096 characters. The voice field selects one of the eight presets.

  • model: tts-1 or tts-1-hd
  • input: string up to 4096 characters
  • voice: one of the 8 presets

Response format options

Specify the response_format to control the audio file type. Options include mp3, wav, opus, flac, and pcm. MP3 is recommended for general use due to its balance of quality and file size.

  • mp3: compressed audio
  • wav: uncompressed audio
  • opus, flac, pcm: other available formats
First request with curl

Using the OpenAI SDK

Sound wave illustration for: Using the OpenAI SDK

The API mirrors the OpenAI speech endpoint structure, allowing you to reuse existing OpenAI SDKs by simply updating the base URL to https://api.t883casino.com/v1. This means you can integrate transport audio generation into your product team’s workflow without learning a new client library or managing custom authentication logic.

Change base_url to our domain

Configure your OpenAI SDK client to point at our API base URL. All other configuration remains standard, ensuring your existing code handles our transport TTS engine seamlessly.

Use official OpenAI libraries

Leverage the official OpenAI libraries for Python, JavaScript, and other supported languages. No custom client library is required, reducing integration overhead for your development team.

Standard parameters work

Pass standard parameters like model, input, and voice directly. The SDK handles serialization, so you can focus on delivering clear audio for station announcements and safety alerts.

Available models

Sound wave illustration for: Available models

Our API offers two model options that share the same underlying engine, ensuring consistent audio quality regardless of your choice. You can select between standard processing or high-definition synthesis based on your specific infrastructure preferences, though both deliver the same core voice characteristics and language support.

tts-1 standard engine

The tts-1 model provides reliable text-to-speech synthesis optimized for general transport announcements and station updates. It handles the full range of 23 supported languages and eight voice presets effectively, making it suitable for most digital display and PA system integrations where standard clarity is sufficient.

  • Supports all 8 voice presets
  • Handles 23 languages
  • Standard processing speed

tts-1-hd high quality engine

The tts-1-hd model utilizes the same core engine but is configured for high-definition output. This option is ideal for applications requiring premium audio fidelity, such as high-quality mobile apps or premium station announcements, without any compromise on the voice characteristics or language support.

  • High-definition audio output
  • Same core engine
  • Premium audio fidelity

Same price for both

Both models are priced identically at $10 per 1 million characters. You can switch between tts-1 and tts-1-hd in your requests without any cost difference, allowing you to optimize for audio quality or processing needs as your transport network scales.

  • $0.01 per 1,000 characters
  • No price difference between models
  • Easy switching in API calls

Response formats

Sound wave illustration for: Response formats

Select the output format that best fits your transport system’s infrastructure. MP3 offers efficient compression for standard digital displays and web apps, while WAV provides uncompressed audio for legacy PA systems that require raw PCM data.

MP3 compressed audio

MP3 is the default format, balancing file size and quality. It works well for most modern audio players and mobile applications. Use this format to minimize bandwidth usage when broadcasting route updates or station announcements.

WAV uncompressed audio

Choose WAV for high-fidelity playback where compression artifacts are undesirable. This format is ideal for direct integration with hardware sound boards or legacy public address systems that do not support compressed audio decoding. It ensures consistent sound quality across different devices.

OPUS, FLAC, PCM options

OPUS provides excellent compression for low-bandwidth environments, though it is not tied to real-time streaming in this API. FLAC offers lossless compression, preserving original audio quality while reducing file size. PCM returns raw uncompressed audio data, suitable for immediate hardware processing without decoding overhead.

  • OPUS: Efficient compression for constrained networks
  • FLAC: Lossless compression for archival quality
  • PCM: Raw audio data for hardware integration
Response formats

Rate limits and errors

Sound wave illustration for: Rate limits and errors

Each API key allows 60 requests per minute once your balance is active. Before the first top-up, you are limited to 10 requests per minute. This ensures fair usage while you test the service or await your USDT transfer on the TRON network (TRC-20) to be credited.

60 requests per minute

Your key supports up to 60 requests per minute. This limit resets every 60 seconds. Use this capacity for batch processing station announcements or generating multiple safety alerts efficiently.

10 requests before top-up

New accounts start with a 10 requests per minute limit. This applies until you complete your first top-up. The limit increases to 60 requests per minute once your balance is active, allowing you to scale your transport audio generation immediately.

Handle 429 and 500 errors

Monitor response codes to maintain smooth operations. A 429 error indicates you have exceeded the rate limit; pause and retry after a short delay. A 500 error suggests a server-side issue; retry with exponential backoff. Log these events to identify patterns in your transport audio generation pipeline.

  • Implement exponential backoff for 500 errors
  • Pause on 429 to avoid queuing delays
  • Log all errors for troubleshooting

Voice selection guide

Sound wave illustration for: Voice selection guide

Choosing the right voice ensures your transport announcements are understood clearly by passengers and staff. Each voice preset is optimized for specific tones, from neutral news delivery to warm storytelling, allowing you to match the audio to the context of your digital displays or PA systems.

Atlas for news-style alerts

Atlas provides a neutral, clear voice ideal for station announcements and safety updates. Its steady delivery ensures critical information is heard without distraction, making it perfect for time-sensitive route changes or emergency instructions where clarity matters most.

  • Best for: Station announcements, safety alerts, route updates

Felix for energetic promos

Felix brings an energetic, upbeat tone suitable for promotional messages or advertising on board. Use this voice for engaging content that encourages passenger interaction or highlights new services, adding a lively character to your digital signage.

  • Best for: Promotional messages, advertising, engaging content

Luna for soft storytelling

Luna offers a soft, warm voice perfect for storytelling or background audio. It works well for longer informational content or ambient announcements where a gentle, non-intrusive tone is preferred over sharp, direct commands.

  • Best for: Storytelling, background audio, gentle announcements
Voice selection guide

Error handling best practices

Sound wave illustration for: Error handling best practices

Handling API responses correctly ensures your transport announcements play without interruption. While the documentation focuses on request parameters, understanding how the service responds to issues is key for reliable integration. You should always inspect the HTTP status code returned by the server to determine if the synthesis succeeded or failed.

Successful requests return the audio file in the specified format. If the server encounters an issue, it returns an error code. Checking these codes allows your application to distinguish between client errors, such as invalid parameters, and server-side problems that might require a retry.

Check status codes

Always verify the HTTP status code returned by the API. A 200 OK response indicates the audio was generated successfully. Other codes signal specific issues that require different handling strategies in your transport announcement system.

  • 200: Success, audio data returned.
  • 4xx: Client errors, check your key or parameters.
  • 5xx: Server errors, may require a retry.

Retry on server errors

If you receive a 5xx server error, the synthesis failed temporarily. Implement a retry logic to resend the request. This ensures that transient issues do not cause missing announcements in your digital displays or PA systems.

  • Retry on 5xx errors.
  • Use exponential backoff.
  • Limit retry attempts.

Log failed requests

Log all failed requests with their associated status codes and timestamps. This helps you diagnose issues later, such as rate limits or invalid inputs. Since failed requests are free, logging them helps you track usage without incurring extra costs.

  • Log status codes.
  • Log request timestamps.
  • Track failed characters.

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. Please secure all cargo and remain seated until the vehicle reaches its final destination safely.

Avatar of the voice aria
ariafemale
Avatar of the voice nova
novafemale
Avatar of the voice luna
lunafemale
Avatar of the voice sage
sagefemale
Avatar of the voice felix
felixmale
Avatar of the voice milo
milomale
Avatar of the voice atlas
atlasmale
Avatar of the voice orion
orionmale

23 languages

Any voice speaks any of these languages.

Sources and further reading

  1. Wikipedia
  2. TRON developer hub: TRC-20
  3. OpenAI API reference: create speech
  4. LibriVox public-domain audiobooks
  5. Node.js documentation
  6. Tether (USDT)
  7. LibriTTS-R paper (arXiv 2305.18802)
  8. ISO 639 language codes
  9. LibriTTS-R corpus (OpenSLR 141)
  10. Creative Commons Attribution 4.0
  11. MDN: Web Speech API
  12. W3C WAI: making audio and video accessible

More on this site