How Does AI Text-to-Speech Work for Audioguides?

By AudioPath editorial team · Updated 2026-11-18

This guide explains how our text-to-speech API powers audioguides, travel videos, and digital exhibits for tourism and museum product teams. We break down the technical realities of generating synthetic speech, from voice selection to language handling, so you can make informed decisions about your audio content strategy.

You will learn how to integrate the API into visitor apps, manage character limits, and understand pricing for long narratives. We cover practical details like audio formats, rate limits, and data privacy, ensuring your team has the specific facts needed to evaluate this solution for real-world deployment.

How Does AI Text-to-Speech Work for Audioguides?

Frequently asked questions

What is AI text-to-speech?

FAQ 1: Q: What is AI text-to-speech? A: It is a cloud API where you send text and receive an audio file. The endpoint accepts JSON bodies similar to the OpenAI speech endpoint, allowing you to use standard SDKs by adjusting the base URL.

How do I select a voice for my audioguide?

Choose from eight presets like Aria, Nova, Luna, or Felix. Each voice has a distinct tone, from warm narrators to energetic promo styles. You specify the voice by name in the request body. All voices support any of the 23 available languages, ensuring consistent quality across your museum exhibits.

Can the API detect the language automatically?

Yes, but with a caveat. If you omit the language field, the system guesses based on the script, defaulting to English for Latin text. For non-English Latin-script content, you must explicitly set the language parameter to ensure accurate pronunciation and avoid misinterpretation of the generated audio.

What is the maximum text length per request?

Each request supports up to 4096 characters. Spaces and punctuation count toward this limit. If your script exceeds this length, you must split it into parts. The API processes these parts sequentially, so you will need to join the resulting audio files to create a continuous audioguide track.

Does the API support SSML for emphasis?

No, the API does not support SSML. You cannot add emphasis, pause, or adjust pronunciation using markup tags. You must rely on the natural intonation of the eight available voice presets for delivery.

How long does it take to generate audio?

Generation is roughly real-time, processing about 25 characters per second. Short phrases take a few seconds, while longer texts take longer proportional to their length. Requests are processed sequentially, so under load, your request may wait in a queue before synthesis begins, affecting total delivery time.

Can I use the API for live tours?

Yes, but consider the latency. Since requests are processed sequentially and may queue under load, real-time streaming is not available. For live tours, pre-generate audio files for each segment. This ensures smooth playback without waiting for API synthesis during the tour.

Is the audio watermarked?

Yes, every generated file carries an inaudible watermark marking it as synthetic speech. This helps identify the content as AI-generated without affecting the listening experience. The watermark is embedded directly into the audio file returned by the API, regardless of the format you choose, such as MP3 or WAV.

How do I handle long scripts?

Split your text into chunks of up to 4096 characters. Send each chunk as a separate request to the API. Then, join the resulting audio files to create a continuous track. This approach ensures you stay within the character limit while maintaining the flow of your audioguide narrative.

What happens if the API fails?

If synthesis fails, the charge is returned in full. You are not billed for failed requests. This ensures you only pay for successfully generated audio. You can retry the request or adjust parameters like speed or voice if the failure was due to specific input constraints or temporary issues.

Can I clone a specific narrator's voice?

No, custom voice cloning is not offered. You cannot upload your own voice or design a new one. The API uses eight fixed presets based on licensed recordings from LibriTTS-R and LibriVox. You must choose from the available options for your project.

Does the API support streaming?

No, there is no WebSocket or real-time partial audio streaming. The API returns the complete audio file in the response. You must wait for the full synthesis to complete before receiving the data. This makes it suitable for on-demand audioguide generation rather than live, interactive voice conversations.

How is the API secured?

Authentication uses a Bearer token sent in the Authorization header. Each account has one active key, which can be replaced instantly if needed. The API base URL is https://api.ddeecasino.com/v1. Ensure you keep your key secure, as it controls your usage and billing for the text-to-speech service.

Can I download the audio files?

Yes, the API returns the generated audio file directly in the response. You can save this file to your local storage or server. Supported formats include MP3, WAV, OPUS, FLAC, and PCM.

The Text-to-Speech Process

Sound wave illustration for: The Text-to-Speech Process

AI text-to-speech for audioguides begins with submitting your script to the API. You send a POST request with the text, up to 4,096 characters, specifying the voice and language. The system processes the input to create audio, ensuring accurate pronunciation and natural pacing for museum narratives.

Inputting script text

Send your exhibit description via a JSON body to the speech endpoint. Include the text in the input field and specify the desired voice preset. If the language is not explicitly set, the system guesses it from the script, defaulting to English for Latin text.

  • Text limit: 4,096 characters per request
  • Include input, voice, and model fields
  • Optional language ISO code for accuracy

Selecting a voice preset

Choose from eight presets like Aria for warm narration or Atlas for neutral news-style updates. Each voice offers a distinct tone suitable for different exhibit types, from historical documentaries to interactive children’s tours. The voices are based on licensed recordings, ensuring consistent quality.

  • 8 presets available (e.g., Aria, Atlas, Luna)
  • Supports 23 languages
  • Consistent tone across all outputs

Generating audio files

The API returns an audio file in formats like MP3, WAV, or Opus. Requests are processed sequentially, so longer texts may queue. Failed requests incur no charge, and the generated audio is not stored by the API, ensuring privacy for your content.

  • Formats: MP3, WAV, Opus, FLAC, PCM
  • No storage of generated audio
  • Free refunds on failed requests

Voice Selection for Tourism

Sound wave illustration for: Voice Selection for Tourism

Tourism and museum audio requires a specific tonal balance to keep visitors engaged without overwhelming them. Our eight voice presets range from warm narrators to neutral news readers, allowing product teams to select a voice that aligns with their exhibit’s narrative style.

Choosing the right tone

Select a voice that matches the content’s energy. Use 'luna' for soft, storytelling exhibits or 'aria' for clear, warm narration. For high-energy promotional content, 'felix' provides an energetic tone, while 'atlas' offers a neutral, professional voice suitable for news-style updates.

  • 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

Matching brand identity

Consistency in voice helps establish a recognizable brand identity across different locations. By selecting a specific preset for all your content, you create a cohesive auditory experience that reinforces trust and professionalism in your digital exhibits.

Consistency across exhibits

Maintaining a single voice across multiple exhibits ensures a seamless visitor journey. Whether a user moves from a history gallery to a science center, the consistent tone prevents jarring transitions and keeps the audience immersed in your narrative.

Language Handling and Detection

Sound wave illustration for: Language Handling and Detection

For audioguide teams, language precision prevents mispronunciation errors that break immersion. The API handles 23 languages, including Arabic, Chinese, and Swahili, ensuring accurate phonetics across diverse tourist demographics. You can enforce the target language explicitly or rely on script detection for Latin text, which defaults to English.

This flexibility allows museums to deploy consistent audio content without manual tagging for every script. However, explicit codes are recommended for non-English Latin scripts to guarantee accuracy, as the system guesses the language based on visible characters rather than semantic context.

Explicit language codes

Pass the language parameter with an ISO code (e.g., fr for French or ja for Japanese) to override automatic detection. This is critical when the input text uses Latin characters but requires a non-English voice, such as German or Dutch. Without this flag, the system defaults to English, leading to incorrect accents.

  • Set language to enforce specific pronunciation rules.
  • Prevents English defaulting for Latin-script non-English text.
  • Ensures correct phonetics for mixed-language scripts.

Script-based detection

If the language field is omitted, the API infers the language from the character set. Latin script inputs default to English, while Cyrillic or Asian scripts trigger the appropriate voice model. This simplifies integration for single-language tours but requires caution for multilingual exhibits where adjacent segments might confuse the detector.

  • Automatic inference based on visible characters.
  • Latin text defaults to English without explicit codes.
  • Supports Cyrillic, Arabic, and Asian scripts natively.

Multi-language support

The platform supports 23 languages, including Spanish, Italian, Russian, and Turkish. Any voice preset can speak any supported language, allowing you to maintain a consistent brand voice across different regional exhibits. Note that Vietnamese, Thai, and Ukrainian are not supported, so check your target regions against the available list.

  • Supports 23 languages including Arabic, Chinese, and Hindi.
  • All 8 voices can speak all supported languages.
  • Excludes Vietnamese, Indonesian, Thai, Ukrainian, and Romanian.

Audio Format Considerations

Sound wave illustration for: Audio Format Considerations

Selecting the correct audio format is critical for museum audioguides and travel apps, balancing compatibility with file efficiency. The API supports MP3, WAV, OPUS, FLAC, and PCM, allowing teams to tailor delivery to their specific infrastructure needs.

MP3 for web compatibility

MP3 remains the standard for web-based audioguides due to its universal playback support and small file size. It is ideal for playback over cellular networks in tourist locations, ensuring smooth playback on both iOS and Android devices without requiring specialized codecs.

  • Universal browser and app support
  • Optimal balance of quality and size
  • Ideal for HTTP-based delivery

WAV for quality needs

WAV files provide uncompressed, high-fidelity audio, suitable for local kiosk installations or high-end digital exhibits where network bandwidth is not a constraint. This format preserves the full dynamic range of the voice presets, such as the deep tones of Orion or the clarity of Aria.

  • Uncompressed audio quality
  • Ideal for local kiosk playback
  • Higher bandwidth requirements

File size optimization

Optimizing file sizes ensures faster loading times for visitors using mobile data. By choosing OPUS or FLAC, teams can achieve significant compression while maintaining audio integrity, reducing data costs for users and storage requirements for the museum's content delivery network.

  • Reduced data usage for visitors
  • Lower storage costs
  • Faster initial load times

Integration with Visitor Apps

Sound wave illustration for: Integration with Visitor Apps

Visitor applications consume audio by sending text to the API and receiving generated files. This workflow supports both on-demand generation for dynamic content and pre-produced libraries for standard exhibits, ensuring your app delivers audio without complex backend infrastructure.

API endpoints explained

Send synthesis requests to POST https://api.ddeecasino.com/v1/audio/speech with your JSON payload. Use GET /v1/voices to retrieve available presets and GET /v1/models to verify available models like tts-1 or tts-1-hd. Authenticate every request with your Bearer token.

  • Use the standard OpenAI SDK structure by pointing base_url to https://api.ddeecasino.com/v1.

Caching audio files

Since audio files are returned in the response and not stored by the API, your application must cache them locally. Store generated MP3s or WAVs in your app’s asset bundle or cloud storage to avoid redundant API calls for static exhibit scripts.

Batch generation

For large museum collections, generate audio files during off-peak hours in batches. Split long narratives into 4096-character segments, process them sequentially, and join the resulting files before uploading them to your visitor app’s media library.

Character Limits and Splitting

Sound wave illustration for: Character Limits and Splitting

Each API request accepts a maximum of 4,096 characters, including spaces and punctuation. This constraint applies to every individual synthesis call, meaning longer audioguide scripts must be divided into manageable segments before submission.

Long narratives are split into chunks of up to 4,096 characters. Since requests are processed sequentially, splitting ensures that even extensive museum tours or travel guides can be generated without hitting input boundaries.

4096 character limit

The character cap is strict. Spaces and punctuation count toward the total. If your script exceeds this limit, the API will reject the request. You must divide the text into smaller parts to stay within the boundary for each individual call.

Splitting long narratives

Divide your script into segments of up to 4,096 characters. Each segment becomes a separate API request. This approach allows you to handle extensive content, such as full museum tours or detailed travel guides, by breaking them into manageable audio pieces.

Joining audio segments

After generating each segment, you receive individual audio files. Your application must concatenate these files in order to create the final continuous audio track. This ensures a seamless listening experience for visitors, even when the source text was processed in multiple requests.

Pricing for Audioguide Content

Sound wave illustration for: Pricing for Audioguide Content

Generating audioguide content with our API is straightforward: you pay only for the characters in your scripts. At $0.01 per 1,000 characters, even a detailed museum exhibit description costs just pennies. Failed requests are free, ensuring you never pay for empty audio files.

For museums with seasonal updates, this pay-as-you-go model eliminates waste. You can refine scripts repeatedly without financial penalty, paying only for the final, polished version that goes live. This flexibility is ideal for iterative content development.

Cost per script length

Every character counts toward your balance. Spaces, punctuation, and non-Latin scripts are included in the count. For a typical 500-word audioguide script (approx. 3,000 characters), the cost is roughly $0.03. This linear pricing means your budget scales directly with your content volume.

Bulk generation is efficient. If you have 100 exhibits, each with 4,000 characters, you generate 400,000 characters for $4.00. The API handles the processing, and you receive the audio files ready for integration into your visitor app or web platform.

  • $0.01 per 1,000 characters including spaces
  • Failed requests are free
  • No minimum spend or monthly fees

Budgeting for updates

Tourism content changes frequently. Seasonal promotions, holiday exhibits, or corrected historical facts require script updates. With our API, you regenerate only the changed segments. Since audio files are not stored by the API, you manage storage locally, keeping costs predictable.

Use the free trial credit of $0.50 (approx. 50,000 characters) to test your workflow. This allows product teams to validate voice selection, language handling, and audio quality before committing to larger batches. The trial is valid for 7 days after sign-in.

  • Top up via USDT (TRC-20) when needed
  • Balance does not expire
  • No subscriptions or seats

Free trial benefits

Sign in with Google to receive $0.50 in credit. This is sufficient to generate about 50,000 characters of audio, allowing you to test multiple voices and formats. Email/password accounts start without trial credit.

Use this period to evaluate the 8 voice presets. For example, test 'atlas' for neutral news-style exhibits or 'luna' for soft storytelling. Verify that the audio quality meets your standards before scaling up with a top-up.

  • $0.50 credit for Google sign-ins
  • Valid for 7 days
  • Enough for ~50,000 characters
Pricing for Audioguide Content

Quality and Watermarking

Sound wave illustration for: Quality and Watermarking

AudioPath generates synthetic speech using licensed recordings from LibriTTS-R and LibriVox, ensuring a consistent baseline quality across all tourism content. Each generated audio file carries an inaudible watermark that marks it as synthetic speech, providing a clear distinction from human-recorded audioguides without affecting the listener experience.

Synthetic speech watermarks

The inaudible watermark is embedded directly into the audio file during synthesis. This allows platforms to identify AI-generated narration automatically, which is useful for transparency in digital exhibits or travel videos where synthetic voices are used.

Consistent audio quality

Because the voices are presets based on licensed recordings, the audio output remains uniform across all generated tracks. Whether you are creating a museum guide or a travel video, the tone and clarity stay consistent, reducing the need for post-production leveling or EQ adjustments.

No custom voice cloning

Rate Limits and Performance

Sound wave illustration for: Rate Limits and Performance

Understanding throughput is critical for museum teams generating content in batches. Our API enforces a strict limit of 60 requests per minute per key, which aligns with typical content creation workflows without requiring complex rate-management logic.

If your batch exceeds this threshold, requests are queued and processed sequentially. Under heavy load, your synthesis job may wait in a queue until capacity opens, ensuring stable service without sudden failures.

60 requests per minute

Each API key allows up to 60 synthesis requests per minute. This limit applies uniformly, ensuring predictable performance for tourism product teams generating audioguide scripts.

Before your first top-up, the limit is lower at 10 requests per minute, allowing you to test the system without impacting production capacity.

  • 60 requests/minute after top-up
  • 10 requests/minute for new accounts

Queueing under load

Requests are processed one after another. If you send multiple requests simultaneously, they are queued and handled in order. This means longer texts or high-volume batches may take additional time.

This sequential processing ensures consistent quality and prevents server overload, though it requires planning for large-scale content generation.

Response times

Generation speed is roughly real-time, processing about 25 characters of text per second. Short phrases may take a few seconds, while longer narratives scale linearly.

For a standard 1-minute audioguide segment, expect generation to complete within that timeframe, plus minor queueing delays if the service is busy.

Error Handling in Production

Sound wave illustration for: Error Handling in Production

In production environments, API failures do not result in lost funds. If a synthesis request fails, the charge is returned in full.

Failed request refunds

Unlike many providers that retain fees for failed attempts, our system automatically credits your account when a request does not complete successfully. This eliminates the risk of paying for unusable audio files during critical deployment phases.

Status code handling

Standard HTTP status codes indicate the state of your request. A 200 OK confirms audio generation, while 4xx or 5xx errors signal issues ranging from invalid parameters to server errors. Always check the response body for specific error messages to debug quickly.

  • 200: Success, audio file included in response.

Retry strategies

Implement exponential backoff for transient errors. Since requests are processed sequentially, short waits between retries prevent overwhelming the queue during high traffic. For failed requests, simply re-submitting the same payload is sufficient since no charge was applied.

Data Privacy and Usage

Sound wave illustration for: Data Privacy and Usage

When integrating AI voiceovers into museum exhibits or travel apps, understanding data handling is critical. Our API processes your input text solely to generate the requested audio file, ensuring that the script content itself is not used to train the underlying models. This means your unique exhibit narratives or tour scripts remain private and are not repurposed for model improvement.

Once the audio is generated and delivered, the actual audio file is not stored on our servers. This minimizes storage liabilities and ensures that your content is ephemeral, existing only in the hands of your application or your visitors' devices.

Text not used for training

The text you submit via the API is used exclusively for the synthesis task. It is not ingested into our training datasets, preserving the integrity of your proprietary content.

Audio not stored by API

Generated audio files are returned in the response but are not persistently stored by the API service. This ensures that your audio assets are controlled entirely by your infrastructure.

Metadata for billing

We retain request metadata, including timestamp, character count, and status, strictly for billing and usage verification. This data does not include the content of your text or audio.

Common Questions

Sound wave illustration for: Common Questions

For tourism teams, AI text-to-speech converts written scripts into synthesized audio files via a simple API call, replacing expensive studio sessions with on-demand generation. It supports 23 languages and eight distinct voice presets, allowing product teams to maintain consistent branding across museum exhibits and travel content without managing complex infrastructure.

What is AI text-to-speech?

AI text-to-speech (TTS) is a cloud API that accepts text input and returns synthesized audio files. Instead of hiring voice actors for every update, tourism teams send JSON payloads to receive MP3, WAV, or FLAC files instantly.

How do I select a voice?

Choose from eight presets like Aria (warm narrator) or Felix (energetic promo). Each voice speaks all 23 supported languages, allowing you to match specific exhibit tones without needing separate language-specific recordings.

Can the API detect language automatically?

The API guesses the language from the script’s character set, defaulting to English for Latin text. For non-English Latin-script content, explicitly set the language parameter to ensure accurate pronunciation.

What is the maximum text length?

Each API request accepts up to 4,096 characters. For longer narratives, split the text into chunks, generate each segment, and join the audio files on your end.

Does the API support SSML?

No. The API processes plain text only. It does not support SSML markup, phoneme dictionaries, or custom pronunciation lexicons, keeping the integration simple for standard script formats.

How long does generation take?

Generation is roughly real-time, processing about 25 characters per second. Short phrases may take a few seconds, while longer texts take longer. Under load, requests may queue.

Can I use the API for live tours?

Live tours are possible but not real-time streaming. Since requests are processed sequentially and have a 4,096-character limit, pre-generating audio segments is more reliable than on-the-fly generation during a live event.

Is the audio watermarked?

Yes. Every generated file contains an inaudible watermark marking it as synthetic speech. This helps identify AI-generated content in digital exhibits without affecting the listener experience.

How do I handle long scripts?

Split scripts into parts of 4,096 characters or less. Generate each part separately via the API, then concatenate the resulting audio files using standard media tools or your app logic.

What happens if the API fails?

If synthesis fails, the charge is returned in full. Failed requests are free. Implement retry logic for temporary network issues, but failed synthesis does not cost your balance.

Can I clone a narrator's voice?

No custom voice cloning is offered. You cannot upload your own voice or clone specific individuals. You must choose from the eight provided presets, which are based on licensed recordings.

Does the API support streaming?

No. The API returns complete audio files, not partial streams. There is no WebSocket support or real-time partial audio, so you must download the full file before playing it.

How is the API secured?

Authentication uses a Bearer token (Authorization: Bearer tts-...). One active key per account ensures controlled access. You can issue a new key anytime, instantly invalidating the old one.

Can I download the audio files?

Yes. The API returns the audio file directly in the response. Generated audio is not stored by the API, so you must save or cache the files for future use.

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. If your museum targets visitors from these regions, you will need a separate solution or human recording for those specific audio tracks.

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. Creative Commons Attribution 4.0
  3. Python documentation
  4. LibriTTS-R paper (arXiv 2305.18802)
  5. FFmpeg documentation
  6. curl documentation
  7. openai-python on GitHub
  8. ISO 639 language codes
  9. openai-node on GitHub
  10. MDN: Web Speech API
  11. IETF RFC 7845: Ogg Opus
  12. Tether (USDT)

More on this site