Text to Speech Python 3: Automate Your Radio Ad Voiceovers

By Route 168 editorial team · Updated 2026-11-19

SonicCopy gives advertising agencies and radio producers a Python 3 API to automate voiceover generation. Instead of manual uploads, you send text from your scripts and receive audio files. This workflow lets you create radio spots, ads, and content at scale without complex tools or human bottlenecks.

On this page, you will find concrete examples of integrating our API into your production pipeline. Learn how to use standard HTTP requests or the OpenAI SDK to generate voiceovers in multiple languages and formats. Discover how to manage voices, pricing, and latency directly from your Python code.

Text to Speech Python 3: Automate Your Radio Ad Voiceovers

Frequently asked questions

Is the API free to try?

Yes. Signing in with Google grants a $0.50 free trial credit, valid for 7 days, allowing about 50,000 characters. Accounts created with email and password start without trial credit. You can top up with USDT to continue using the service.

Can I use Python 3 with the API?

Absolutely. The API endpoint matches the OpenAI speech endpoint shape. You can use the official OpenAI Python SDK by simply changing the base_url to https://api.route168.cc/v1 and providing your SonicCopy API key for authentication.

How many 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.

What audio formats are available?

You can choose from mp3, wav, opus, flac, and pcm formats. Specify your preferred format in the response_format field of your request. The API returns the audio file directly in the response for immediate use in your production pipeline.

Are voices suitable for commercial ads?

Yes. Our voices are based on licensed recordings from LibriTTS-R (CC BY 4.0) and public-domain audiobook readings. The generated audio is synthetic speech suitable for commercial use.

How is pricing calculated?

Pricing is $10 per 1 million characters, or $0.01 per 1,000 characters. Spaces and punctuation count as characters. Failed requests are free, with the charge returned in full if synthesis fails. There are no monthly plans or minimum spends.

Do I need to install extra libraries?

No. You can use the standard OpenAI Python SDK by updating the base_url. Alternatively, you can use plain HTTP requests. No proprietary SDK or extra libraries specific to SonicCopy are required to integrate with our API.

What happens if a request fails?

If synthesis fails, the charge is returned in full. You are not billed for failed requests. You can retry the request or adjust parameters like text length or voice selection to ensure successful generation for your radio spots.

Is there a character limit per request?

Yes, the input field supports up to 4096 characters per request. For longer texts, split the content into parts of this size and join the resulting audio files. This ensures efficient processing and consistent audio quality.

Can I change the voice speed?

Yes. You can adjust the speed parameter between 0.25 and 4.0. This allows you to fine-tune the pacing of your radio ads or voiceovers to match the desired tone and timing of your specific content.

Are the voices cloned from real people?

Voices are based on licensed recordings from LibriTTS-R (CC BY 4.0) and public-domain audiobook readings. They are not custom-cloned from specific individuals for your account. We do not offer custom voice cloning or uploading your own voice.

Is the audio watermark audible?

No. Every generated file carries an inaudible watermark that marks it as synthetic speech. You will not hear the watermark in the final audio file, ensuring a professional sound for your commercial broadcasts.

How do I pay with USDT?

Top up using USDT on the TRON network (TRC-20). The minimum top-up is $5. Credits are added automatically within minutes after your transfer is confirmed. We do not accept cards, PayPal, or subscriptions; balance does not expire.

Is there a limit on requests per minute?

Yes, the limit is 60 requests per minute per key. Before your first top-up, the limit is 10 requests per minute. Requests are processed sequentially, so under load, a request may wait in a queue.

First request

curl

curl https://api.route168.cc/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

Why Python for Radio Ads?

Sound wave illustration for: Why Python for Radio Ads?

Python lets you generate radio ad voiceovers programmatically, replacing manual uploads with code-driven workflows. By sending text via a simple API call, your scripts handle synthesis directly, ensuring every spot is produced on demand without human intervention.

Automate bulk generation

Automate bulk generation

Split long scripts into 4,096-character chunks and join the audio automatically. Your Python code manages the loop, sending requests to https://api.route168.cc/v1 and receiving MP3 or WAV files.

  • Process hundreds of ad variations in minutes
  • Handle text splitting and joining programmatically
  • Use standard HTTP POST requests

Integrate with ad workflows

Connect your TTS engine directly to your content management system or ad server. Use the OpenAI SDK compatibility by pointing base_url to our API, allowing you to reuse existing Python libraries for seamless integration.

  • Works with existing Python HTTP libraries
  • Compatible with OpenAI SDK structure
  • Easy JSON payload configuration

Scale content production

Generate voiceovers for multiple markets simultaneously. With 23 supported languages, you can localize your radio spots efficiently. The API handles the heavy lifting, letting you focus on creative strategy rather than studio booking.

  • Support for 23 languages including English, Spanish, and Japanese
  • No need for manual studio scheduling
  • Consistent quality across all generated spots

Voices for Every Spot

Sound wave illustration for: Voices for Every Spot

SonicCopy provides eight distinct voice presets, each with a distinct tone. From warm narrators to energetic promo speakers, you can select the perfect tone for your radio spot directly via Python.

Warm narrators like Aria

Aria delivers a clear, warm narration style ideal for storytelling segments or emotional brand messages. Her tone remains consistent and professional, making her suitable for long-form ad reads where listener retention is key.

  • Aria: warm, clear narrator

Energetic promo voices like Felix

Felix brings high energy to promotional spots, perfect for sales announcements or limited-time offers. His dynamic delivery keeps the pace upbeat, ensuring your call-to-action stands out in a crowded broadcast environment.

  • Felix: energetic, promo

Deep documentary tones like Orion

Orion offers a deep, authoritative voice suited for documentary-style ads or serious product explanations. His neutral yet commanding presence adds credibility, making complex information easier for listeners to trust and understand.

  • Orion: deep, documentary

Supported Languages

Sound wave illustration for: Supported Languages

Our API supports 23 languages, allowing you to produce multilingual radio spots and global ad campaigns without managing multiple voice providers. You can generate high-quality voiceovers in major markets, ensuring consistent tone across different regions.

The language parameter lets you explicitly set the target language using an ISO code. This is crucial for non-English Latin-script text, as the system guesses English by default otherwise. All 8 voices can speak any of the supported languages fluently.

English, Spanish, French

These are the most commonly requested languages for international advertising. Our voices handle the nuances of each language with clarity, making them ideal for localizing radio spots for diverse audiences.

  • English: Default fallback for Latin script
  • Spanish: Clear, neutral pronunciation
  • French: Natural intonation

German, Italian, Portuguese

Perfect for European and South American markets. Whether you need a calm instructional tone or a bright upbeat delivery, our voices adapt seamlessly to the linguistic requirements of these languages.

  • German: Precise and clear
  • Italian: Warm and expressive
  • Portuguese: Versatile delivery

Japanese, Korean, Chinese

Expand into Asian markets with native-sounding voiceovers. Our API handles the complex phonetics and tones of these languages efficiently, ensuring your content sounds authentic to native listeners.

  • Japanese: Natural rhythm
  • Korean: Clear articulation
  • Chinese: Accurate tones

Python 3 Integration

Sound wave illustration for: Python 3 Integration

Integrate SonicCopy directly into your Python 3 ad production scripts. Send text and receive audio files without manual uploads or complex tools. Our API fits seamlessly into existing automation workflows, allowing you to generate radio spots programmatically.

Use standard HTTP requests or the official OpenAI SDK by simply changing the base_url to https://api.route168.cc/v1. This compatibility lets you leverage familiar libraries while accessing our specific voice engine and pricing structure.

Standard HTTP requests

Make a POST request to /v1/audio/speech with your JSON body. The API returns the audio file directly in the response, ready to be saved or played.

Authentication is handled via the Authorization: Bearer header. Use your unique API key to identify your account and track usage against your balance.

  • POST https://api.route168.cc/v1/audio/speech
  • Returns audio files directly in response
  • Simple Bearer token authentication

OpenAI SDK compatibility

Leverage the OpenAI Python SDK for streamlined integration. Only the base_url needs to change to our endpoint.

This allows you to use existing code structures and error handling patterns you already know, reducing development time for your ad automation tools.

Easy JSON payloads

Send text, voice selection, and format preferences in a clean JSON body. Support up to 4096 characters per request.

Specify the model (tts-1 or tts-1-hd), voice preset, and output format (mp3, wav, opus, flac, pcm) alongside optional speed and language settings.

Audio Formats

Sound wave illustration for: Audio Formats

We generate radio spots in formats optimized for your specific delivery pipeline. Choose the right file type to balance quality, file size, and compatibility with your broadcasting software or web players.

MP3 for web delivery

MP3 is the standard for web delivery, offering a compact file size while maintaining clear audio. It is ideal for streaming ads on digital platforms or embedding in HTML5 players for quick loading and broad device compatibility.

WAV for broadcast quality

WAV provides uncompressed, high-fidelity audio perfect for professional radio broadcast. This format ensures no quality loss during transmission, meeting industry standards for terrestrial radio spots and ensuring your voiceover sounds crisp on air.

FLAC for archival

FLAC offers lossless compression, preserving every detail of the generated voice for long-term archival. It is suitable for studios that need to store high-quality masters without consuming excessive disk space compared to raw WAV files.

Audio Formats

Speed and Latency

Sound wave illustration for: Speed and Latency

SonicCopy’s API generates audio at roughly real-time speed, producing approximately 25 characters of text per second. While short phrases take a few seconds to synthesize, longer texts maintain consistent throughput, allowing you to estimate processing time accurately for your radio spots.

Real-time generation

Standard requests process quickly, but complex inputs or peak usage may introduce slight delays. This predictable latency helps you schedule batch jobs effectively without unexpected hold-ups.

Queue handling under load

Requests are processed sequentially. During high traffic, a request may wait in a queue before synthesis begins. You can manage this by spacing out bulk generation tasks or using the 60 requests per minute limit wisely.

  • Sequential processing ensures consistent audio quality
  • Rate limit: 60 requests/minute per key
  • Queue waits depend on current server load

Adjustable playback speed

You can control the delivery pace using the speed parameter, ranging from 0.25 to 4.0. This allows you to create slower, instructional voiceovers or faster, energetic promo reads without re-synthesizing the entire text.

  • Speed range: 0.25x to 4.0x
  • Ideal for varying ad durations
  • No need to re-generate for speed changes

Pricing for Creators

Sound wave illustration for: Pricing for Creators

SonicCopy charges $0.01 per 1,000 characters, with spaces and punctuation counting toward the total. You only pay for successful synthesis; failed requests are refunded in full, so you never pay for errors.

Pay per character

At $10 per million characters, costs scale directly with your output. Long scripts are split into 4,096-character chunks, ensuring consistent processing without hidden volume discounts or tiered pricing.

  • $0.01 per 1,000 characters
  • Failed requests are free
  • Balance does not expire

No monthly fees

There are no subscriptions, seats, or minimum spends. You can pause usage for weeks and resume without penalty. Pay only when you need voiceovers, making it ideal for sporadic ad campaigns.

Free trial credit

Sign up with Google to receive $0.50 in credit (approx. 50,000 characters) valid for 7 days. Email-based accounts start without trial credit. Top-ups via USDT (TRC-20) are credited automatically.

  • $0.50 trial credit with Google login
  • Valid for 7 days
  • USDT (TRC-20) top-ups only

Data Privacy

Sound wave illustration for: Data Privacy

SonicCopy treats your creative assets with care. We use your input text strictly to generate the audio file and do not use it for model training, ensuring your campaign copy remains unique to your brand.

Input text not trained

Your script is processed solely for synthesis. Once the audio is generated, the text is not stored in our training datasets, keeping your ad copy proprietary.

No audio storage

Generated audio files are returned directly in the response and are not permanently stored on our servers. You retain full ownership of the output without dependency on our cloud for long-term archiving.

Metadata for billing

We retain request metadata, including timestamp, character count, and status, solely to calculate your usage and process payments accurately. This data is not used for marketing or analytics.

Get Started

Sound wave illustration for: Get Started

Start by creating your account on our sign-up page using Google or email. You will receive a unique API key immediately, along with a $0.50 free trial credit valid for 7 days (if signed in with Google).

Sign up for API key

Visit the /get-api-key/ page to register. Your account dashboard displays your active key, balance, and usage stats. You can issue a new key at any time, which instantly invalidates the old one.

  • Google or email registration
  • Instant API key issuance
  • $0.50 free trial credit (7 days)

Try the demo

Use the provided curl example or OpenAI SDK to send a test request. Generate a short voiceover using the 'aria' or 'felix' voice to verify the audio format and quality before integrating into your Python scripts.

Read the documentation

Check /docs/ for the full endpoint reference, including required fields like model, input, and voice. Review the rate limits (60 requests/minute) and supported audio formats to optimize your ad production workflow.

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. Its clear, upbeat delivery makes it ideal for radio spots where you need to convey enthusiasm and positivity without sounding artificial.

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. LibriVox public-domain audiobooks
  3. ISO 639 language codes
  4. IETF RFC 7845: Ogg Opus
  5. LibriTTS-R paper (arXiv 2305.18802)
  6. openai-python on GitHub
  7. OpenAI API reference: create speech
  8. Node.js documentation
  9. TRON developer hub: TRC-20
  10. Python documentation
  11. Tether (USDT)
  12. MDN: Web Speech API

More on this site