Frequently asked questions
What is the ideal script length for a 30-second radio spot?
A 30-second spot typically requires about 25 characters per second, totaling roughly 750 characters. This fits well within the 4,096 character limit per request. Use the speed parameter (0.25–4.0) to adjust pacing if your script is slightly longer or shorter, ensuring precise timing for your broadcast slot.
Can I change the voice after generating the audio?
No, the generated audio file is final. You must regenerate the audio using a different voice preset by sending a new request with the desired voice parameter. Each regeneration counts as a separate request and incurs the standard character-based charge unless it fails.
Do I need to pay for each variation of the same script?
Yes, each generation is a separate API request. If you generate five variations of the same 1,000-character script, you are charged for 5,000 characters. Failed requests are free, but successful generations incur the standard rate of $0.01 per 1,000 characters.
How do I ensure the voice sounds natural for radio?
Select a voice preset that matches your tone, such as Felix for energetic promos or Milo for conversational spots. Adjust the speed parameter to fine-tune delivery. The voices are based on licensed recordings, providing a consistent, professional synthetic sound without human casting lag.
Is there a limit to how many radio spots I can generate?
You are limited by your API key’s rate limit of 60 requests per minute. Your balance determines how many you can afford. There is no monthly plan or minimum spend, so you can generate as many spots as your budget and rate limits allow.
Can I use the API to generate voiceovers for TV ads too?
Yes, the API generates audio files compatible with any video editing workflow. You can use the same endpoints and voices for TV spots as you do for radio. Just sync the returned audio file with your video timeline using your preferred editing software.
How do I handle pauses in the script?
Include ellipses (...) or punctuation in your input text to create natural pauses. The API respects these cues in the generated audio. For precise control, you can adjust the speed parameter globally, though specific pause timing is driven by the text structure.
Does the API support background music in the output?
No, the API returns only the synthetic speech audio. It does not mix background music or sound effects. You must add music and effects in your post-production workflow after downloading the generated speech file from the API response.
Can I use the generated audio in a podcast ad?
Yes, the generated audio files are ready for use in podcast ads. Each file contains an inaudible watermark marking it as synthetic speech. There are no restrictions on usage, and you can generate as many episodes as needed, paying only for characters used.
What is the difference between tts-1 and tts-1-hd?
Both models use the same engine and have the same price. Both models use the same engine and price; the tts-1-hd model offers slightly higher audio quality. Choose based on your production needs, as both support all 8 voices and 23 languages.
How long does it take to generate a 60-second ad?
Generation takes roughly real-time, so a 60-second audio file takes about 60 seconds to process. Short phrases may take a few seconds. Requests are processed sequentially, so under heavy load, you may experience queue delays before synthesis begins.
Can I download the audio directly from the dashboard?
The dashboard shows usage, balance, and a curl example. Generated audio is returned directly in the API response. You can save the response body to a file. The dashboard does not store generated audio files; they are not retained after the request completes.
Do I need to credit the voice actor in the ad?
No, the voices are based on licensed recordings from LibriTTS-R and LibriVox. You do not need to credit specific voice actors, but each file carries an inaudible watermark indicating it is synthetic speech. Each file carries an inaudible watermark indicating it is synthetic speech,
Can I use the API for live radio announcements?
No, the API does not support streaming or WebSocket connections. You must generate the audio file first, then play it. With a typical speed of real-time generation, you can pre-generate announcements, but you cannot stream them live directly from the API.
Understanding Radio Spot Requirements
Radio spots are time-bound. You typically create 15, 30, or 60-second ads. Every character matters. You must fit your script into these strict limits. The API handles up to 4096 characters per request, but real-world spots are much shorter.
Voice clarity is critical. Listeners decide in seconds. Your tone must match the brand. Warm narration works for stories. Energetic tones drive sales. Consistent quality saves studio booking time.
Standard ad lengths (15s, 30s, 60s)
Ad lengths define your script structure. A 30-second spot usually requires 60–75 words. The API generates audio at roughly real-time speed. This means 15 seconds of audio takes about 15 seconds to generate. Plan your script word count accordingly.
Longer scripts may exceed single request limits. You must split text into parts of up to 4096 characters. The system joins the audio files automatically. This ensures your 60-second spot plays seamlessly without gaps.
- 15s spots: ~30–40 words
- 30s spots: ~60–75 words
- 60s spots: ~120–150 words
Voice clarity and tone importance
Clarity drives conversion. Listeners need to hear the call to action clearly. Voices like Aria provide a warm, clear narration style ideal for brand stories. Felix offers an energetic tone perfect for promotional spots. Choose based on your campaign goal.
Tone consistency builds brand recognition. Using the same voice across multiple ads reinforces your message. The API supports 8 distinct presets. Each voice is based on licensed recordings, ensuring professional quality without human casting delays.
Broadcast audio standards
Audio standards vary by platform. Digital ads often use MP3 for efficiency. FM radio broadcasts may require WAV for lossless quality. The API supports MP3, WAV, Opus, FLAC, and PCM formats. Select the format that matches your broadcaster’s requirements.
Speed settings range from 0.25 to 4.0. Adjust speed to fit the exact ad length. If a script is too long, reduce the speed slightly. If it is too short, increase it. This fine-tuning ensures precise timing for every spot.
- MP3: Digital ads
- WAV: FM radio
- FLAC: Archiving
Choosing the Right Voice
Selecting the right voice is critical for radio spots. Each preset delivers a distinct tone that matches specific advertising needs without requiring studio booking lag.
Our eight voices cover warm narration, energetic promos, and neutral news styles, ensuring consistent quality across campaigns.
Aria for warm narration
Aria offers a warm, clear narrator voice ideal for storytelling or emotional appeals. Her tone engages listeners effectively.
Use Aria for brand stories or lifestyle ads where connection matters most.
- Warm, clear tone
- Ideal for storytelling
- Emotional appeal
Felix for energetic promos
Felix brings high energy perfect for promotional spots. His dynamic voice grabs attention quickly.
Best for sales announcements or time-sensitive offers requiring urgency.
- Energetic, promo-focused
- High engagement
- Urgent tone
Atlas for neutral news style
Atlas provides a neutral, news-style delivery. His voice is authoritative and clear.
Suitable for factual announcements or straightforward product descriptions.
- Neutral, news style
- Authoritative delivery
- Clear articulation
Preparing Your Script
Radio spots have strict time limits, typically 15, 30, or 60 seconds. To fit these slots, you must control your script length precisely. Since generation takes roughly 25 characters per second of audio, knowing your character count is the first step to ensuring your spot doesn’t run over or under time.
Check character count limits
The API accepts up to 4,096 characters per request. For a standard 30-second spot, aim for approximately 750 characters. Keep your script concise to avoid lengthy queuing times during peak usage, as requests are processed sequentially.
- 15s spot: ~375 characters
- 30s spot: ~750 characters
- 60s spot: ~1,500 characters
- Max limit: 4,096 characters per request
Remove special characters
Strip out complex punctuation, emojis, or non-standard symbols that might confuse the synthesizer. Stick to standard Latin characters and basic punctuation. This ensures the TTS engine interprets your text correctly without unexpected pauses or pronunciation errors.
Test read for pacing
Read your script aloud before sending it to the API. Adjust sentence structure to match the chosen voice’s natural rhythm. For energetic promos like Felix, use shorter, punchier sentences. For warm narration like Aria, allow for smoother, flowing phrases.
Making the API Request
Generate radio spots starts with a single API call. Authenticate using your unique tts-... key and send the script to the speech endpoint. The process is straightforward: define the model, voice, and text, then receive the audio file ready for broadcast.
You do not need custom libraries or complex integrations. The endpoint accepts standard JSON bodies, making it easy to plug into existing ad production workflows or scripts.
Set up your API key
Retrieve your key from the /get-api-key/ dashboard. Include it in the request header as Authorization: Bearer tts-.... Ensure your account has sufficient balance or trial credit before sending requests.
- Use the key displayed on your dashboard
- Header format:
Authorization: Bearer tts-... - One active key per account
Define the JSON body
Construct a JSON object with the required fields. Set model to tts-1 or tts-1-hd. Select a voice like aria for narration or felix for energetic promos. Provide your text in the input field (max 4096 characters).
Optionally specify response_format (e.g., mp3, wav), speed (0.25–4.0), and language if needed. The API guesses language by default, but setting it explicitly ensures accuracy for non-English scripts.
model: "tts-1" or "tts-1-hd"voice: one of 8 presetsinput: your script textresponse_format: mp3, wav, opus, flac, or pcm
Send POST request
POST your JSON to https://api.xgoal808casino.com/v1/audio/speech. The API processes the request and returns the audio file directly in the response body. If synthesis fails, the charge is returned in full, so you can retry without cost penalty.
- Endpoint:
POST /v1/audio/speech - Returns audio file directly
- Failed requests are free
Handling the Audio Response
Once your synthesis request succeeds, the API returns the audio file directly in the response body. You do not need to poll for status or wait for a separate download link; the file is ready immediately upon completion of the request.
This direct delivery streamlines your workflow, allowing ad agencies to instantly integrate the generated voiceover into their editing timelines without intermediate storage steps.
Download the audio file
The API response contains the audio binary data. Ensure your HTTP client is configured to handle binary responses correctly, preventing any text-based decoding errors that might corrupt the file.
Since generated audio is not stored on our servers, you must save the file locally or to your cloud storage immediately upon receipt.
- Response body contains raw audio data
- No separate download endpoint required
- Files are not stored server-side after delivery
Select MP3 or WAV format
Choose MP3 for efficient digital distribution and radio streaming, or WAV for high-fidelity FM broadcast production. Both formats are supported via the response_format parameter.
Selecting the appropriate format ensures compatibility with your digital asset management system and broadcast requirements without unnecessary file size bloat.
- MP3: Optimized for digital ads
- WAV: High quality for FM radio
- Opus, FLAC, PCM also available
Verify audio quality
Listen to the generated clip to ensure the voice tone matches the spot’s intent. Check that the pacing feels natural and the audio clarity is sufficient for broadcast standards.
Since requests are processed sequentially, verify that the audio length aligns with your target spot duration (e.g., 15s, 30s) before finalizing the campaign asset.
- Check voice tone consistency
- Verify pacing matches script intent
- Ensure broadcast-ready clarity
Integrating with OpenAI SDK
Integrating with OpenAI SDKs is straightforward because your API follows the same request shape. You only need to change the base_url to https://api.xgoal808casino.com/v1 and use your SpotSynth key. This allows agencies to leverage existing codebases without rewriting logic.
This approach supports both tts-1 and tts-1-hd models. It simplifies development for teams already familiar with standard HTTP clients or SDK wrappers, ensuring consistent integration across different programming environments.
Configure base_url
Point your SDK client to https://api.xgoal808casino.com/v1. Ensure your authentication header uses Authorization: Bearer tts-....
This single configuration change enables all standard TTS methods without modifying the request body structure.
- Base URL: https://api.xgoal808casino.com/v1
- Auth Header: Authorization: Bearer tts-...
Use standard methods
Call the audio/speech endpoint with your script text, voice preset, and desired format. The SDK handles serialization automatically.
Pass parameters like speed (0.25–4.0) to adjust pacing for 15s or 30s radio spots efficiently.
Handle responses easily
The SDK returns the audio file directly in the response body. Save this binary data as an MP3 or WAV file for your production pipeline.
Since responses are synchronous, you can immediately process the file or queue it for further editing in your DAW.
Testing and Iteration
Testing and iteration are essential for crafting radio spots that fit standard 15, 30, or 60-second slots. Since generation is not real-time, small adjustments can significantly impact the final timing and tone of your advertisement.
Use the API’s speed parameter, ranging from 0.25 to 4.0, to fine-tune pacing. Experiment with different voices to find the perfect match for your brand’s personality, ensuring the output feels natural and engaging for listeners.
Adjust speed settings
The speed parameter allows precise control over the audio duration. By increasing the speed, you can fit longer scripts into shorter slots, while decreasing it adds emphasis or a more relaxed tone. This is crucial for hitting exact broadcast times without cutting words awkwardly.
Start with a default speed and adjust in small increments. Remember that requests are processed sequentially, so testing multiple speed variations may take a few seconds per request.
- Speed range: 0.25 to 4.0
- Adjust in small increments for precise timing
- Faster speeds fit more text into slots
Try different voices
Select from eight distinct voices to match your campaign’s vibe. Use Aria for warm narration, Felix for energetic promos, or Atlas for a neutral, news-style delivery. Each voice offers a unique tone that can change how the message is perceived.
Test multiple voices with the same script to see which resonates best. Since all voices support 23 languages, you can also test localization if your ads target diverse audiences.
- Aria: warm, clear narrator
- Felix: energetic, promo style
- Atlas: neutral, news style
Refine script for timing
Review the generated audio to ensure pacing feels natural. If a spot is too long, trim unnecessary words or adjust the speed. If it’s too short, add descriptive phrases or slow down the delivery.
Use the character limit of 4,000 per request to keep scripts manageable. For longer campaigns, split texts into chunks and join the audio files to maintain quality and control.
- Trim words if spot is too long
- Add phrases if spot is too short
- Keep scripts under 4,096 characters per request

Scaling for Multiple Campaigns
Scaling your voiceover production means moving beyond manual copy-pasting. By automating script inputs and batching requests, ad agencies can generate dozens of radio spot variations in minutes rather than hours. This approach ensures consistent tone across multiple campaigns while reducing the lag between creative approval and final audio delivery.
Efficient key management and format selection allow teams to handle high-volume output without hitting rate limits or paying for unnecessary formats. With SpotSynth, you can iterate rapidly on 15-second and 30-second spots, ensuring every voiceover meets broadcast standards before it ever reaches the airwaves.
Automate script inputs
Integrate your script database directly with the API. Pass text variables via the input field in your JSON payload, allowing your workflow to pull fresh copy from your CMS or ad platform automatically.
This eliminates manual transcription errors and ensures that every generated audio file matches your latest approved script version exactly.
- Connect your script database to the API endpoint
- Pass variables directly in the JSON
inputfield - Eliminate manual copy-paste transcription errors
Batch process requests
Send multiple text inputs sequentially to generate audio files in rapid succession. Since requests are processed one after another, batching allows you to queue up variations of a single spot with different voices or speeds.
This method keeps your workflow linear and predictable, making it easier to track which voice was used for which ad variant without juggling multiple manual submissions.
- Queue multiple text inputs for sequential processing
- Generate voice variations (e.g., Felix vs. Aria) in sequential workflows
- Track generation status via response codes
Manage API keys efficiently
Use a single active key for all campaign generation. If a key is compromised or you need to reset permissions, issuing a new one instantly invalidates the old one, ensuring clean access control across your team.
With a limit of 60 requests per minute, plan your batch sizes accordingly. Monitor your balance via the dashboard to ensure you have sufficient credits for large-scale campaign launches.
Remember that failed requests are free, so you can safely retry audio generation without worrying about overcharging your account.
- Issue one key per account; revoke instantly if needed
- Monitor usage via the dashboard to avoid service interruption
- Retry failed requests at no extra cost
Audio Format Selection
Choosing the right audio format ensures your radio spots meet technical standards for their delivery channel. The API supports MP3, WAV, FLAC, OPUS, and PCM, allowing you to balance file size and quality based on where the ad will air.
MP3 for digital ads
MP3 is the standard for digital delivery, offering small file sizes that load quickly on streaming platforms and social media. It provides sufficient quality for most online radio and podcast ad placements without consuming excessive bandwidth.
- Optimal for web and mobile ad delivery
- Small file size for fast loading
WAV for FM radio
WAV files are uncompressed and widely accepted by radio station automation systems. Use this format when submitting directly to terrestrial FM stations to ensure compatibility with their broadcast hardware and avoid conversion artifacts.
- Uncompressed high quality
- Standard for radio station submission
FLAC for archiving
FLAC offers lossless compression, preserving every detail of the voice synthesis for long-term storage. It is ideal for archiving master versions of your campaigns, ensuring you have a perfect copy for future revisions or re-uses.
- Lossless compression
- Ideal for master archives
Handling Long Scripts
Radio spots may exceed the 4096-character limit per request, requiring a strategy to handle longer scripts without losing coherence or breaking the API constraints. You must divide your script into manageable segments that stay within this boundary, ensuring each part is a complete thought or sentence to maintain natural flow.
Split text into chunks
Break your script into segments of up to 4096 characters each. This limit includes spaces and punctuation, so ensure your text is trimmed appropriately. Splitting at sentence boundaries helps preserve the natural cadence of the voiceover, preventing awkward pauses between generated audio segments.
- Count characters including spaces and punctuation.
- Split at natural sentence or clause boundaries.
- Ensure each chunk is under 4096 characters.
Generate parts separately
Send each chunk as a separate POST request to the speech endpoint. Since requests are processed sequentially, longer texts may take time as each part waits in queue. Use the same voice and settings for all parts to ensure consistent tone and speed across the entire script.
Join audio files
Once all audio files are generated, concatenate them in the order of the original script. This creates a single, cohesive audio file ready for broadcast. Ensure the format matches your distribution needs, such as MP3 for digital or WAV for FM radio, without losing quality during the merge.
Quality Control Checks
Before finalizing your radio spot, ensure the synthetic voice meets broadcast standards. Synthetic speech carries an inaudible watermark, but clarity remains paramount for listener retention. Listen critically to the output to catch any unnatural phrasing or abrupt cuts that might distract from your message.
Listen for clarity
Review the generated audio for crisp articulation, especially with complex brand names or product features. Since requests are processed sequentially, ensure the audio is fully generated before judging clarity. If the voice sounds muffled, try a different voice preset like Aria or Felix to see if the articulation improves for your specific script.
Check pacing and speed
Standard speech is roughly 25 characters per second. Verify that your 15-second or 30-second spot fits the required duration without rushing. Use the speed parameter (0.25–4.0) to adjust the tempo. If the voice sounds too fast, lower the speed setting and regenerate the audio to match your broadcast timing precisely.
Verify language accuracy
Even though voices are multilingual, explicit language setting prevents errors. If your script contains non-English words or names, set the language parameter to the correct ISO code. This prevents the engine from guessing incorrectly, ensuring proper pronunciation for your target market and avoiding awkward accents that break immersion.
Cost Estimation for Spots
Radio spots are priced by character count, including spaces and punctuation, at $0.01 per 1,000 characters. A standard 30-second spot typically contains around 60–75 words, or roughly 300–400 characters, making the base production cost approximately $0.003 to $0.004 per ad.
Calculate character counts
Count every character in your script, as spaces and punctuation are included in the billable total. Since the API limits input to 4,096 characters per request, ensure your script fits within this boundary to avoid splitting overhead.
- Include spaces and punctuation in your count
- Verify script length stays under 4,096 characters
- Use simple text editors to count characters
Estimate cost per ad
At $10 per million characters, even a 60-second ad with 150 characters costs just $0.0015. This low unit cost allows agencies to produce multiple variations without significant expense, enabling rapid A/B testing across different voice presets.
Budget for revisions
Since failed requests are free, you only pay for successful generations. Budget for minor script tweaks and speed adjustments, as each successful synthesis incurs the character-based fee. With a $0.50 free trial, you can test costs before committing funds via USDT.
Listen to the 8 voices
Each sample below was generated by this API from the same sentence. If a synthesis fails, you are not charged, so you can retry without financial penalty.
23 languages
Any voice speaks any of these languages.
Sources and further reading
- Wikipedia
- OpenAI API reference: create speech
- MDN: Web Speech API
- Tether (USDT)
- Creative Commons Attribution 4.0
- W3C WAI: making audio and video accessible
- IETF RFC 7845: Ogg Opus
- LibriTTS-R paper (arXiv 2305.18802)
- openai-python on GitHub
- LibriTTS-R corpus (OpenSLR 141)
- ISO 639 language codes
- TRON developer hub: TRC-20
