Integrate French Text-to-Speech API for Podcast Production

By PodVoix Editorial Team · Updated 2026-11-19

This guide helps podcast agencies integrate PodVoix Studio’s TTS API to scale French audio production. You will find clear instructions for authentication, endpoint usage, and parameter tuning. We cover everything from basic cURL examples to OpenAI SDK compatibility, ensuring you can generate episodes efficiently.

Designed for teams managing multiple shows, this documentation details how to handle long scripts, adjust speeds, and manage character limits. You will learn to rotate keys instantly and handle errors gracefully, enabling reliable automation for your podcast workflow without unexpected costs or technical hurdles.

Integrate French Text-to-Speech API for Podcast Production

Frequently asked questions

How do I get my API key?

Sign up on the /get-api-key/ page using Google or email plus password. Your account page displays your active API key, current balance, and usage statistics. You can issue a new key at any time, which immediately invalidates the previous one, ensuring secure access to the API for your podcast production workflow.

Can I use the OpenAI Python SDK with this API?

Yes. The API uses the same request shape as the OpenAI speech endpoint. You can use the official OpenAI SDKs by changing the base_url to https://api.bl18.info/v1 and providing your PodVoix API key. This allows you to integrate our TTS engine directly into your existing Python scripts without major code changes.

What is the maximum input length?

Each request supports up to 4096 characters of input text. For longer scripts, split the text into parts of this size and join the resulting audio files. This ensures consistent generation quality and allows you to manage character counts precisely, keeping within the 4096-character limit per API call.

How do I specify the French language?

Include the optional 'language' field in your request body with the ISO code 'fr'. If omitted, the system guesses the language, defaulting to English for Latin script. Explicitly setting the language ensures accurate pronunciation for French voices, which is critical for maintaining high-fidelity audio quality in your podcast episodes.

What are the available audio formats?

You can choose from mp3, wav, opus, flac, and pcm formats via the 'response_format' parameter. These options allow you to select the balance between file size and quality for your podcast distribution channel, whether you need compressed MP3 for web streaming or lossless FLAC for archival purposes.

How does the speed parameter work?

The speed parameter accepts values between 0.25 and 4.0. Adjusting this allows you to speed up or slow down the narration to fit your script timing. This flexibility helps you match the pacing of your podcast segments precisely, ensuring the audio flows naturally with your existing content and music beds.

What happens if I exceed the rate limit?

The limit is 60 requests per minute per key (10 before the first top-up). Requests are processed sequentially, so exceeding the limit may cause your request to wait in a queue. This ensures fair usage, but under heavy load, you might experience slight delays in audio generation for your podcast episodes.

Can I rotate my API key without downtime?

Yes, you can issue a new key at any time from your account page. The old key stops working immediately, ensuring security. Since you control the key in your application, you can update it instantly. This allows seamless key rotation without interrupting your podcast production pipeline or requiring a service restart.

Is the endpoint compatible with cURL?

Yes, the endpoint is fully compatible with cURL. You can send a POST request to https://api.bl18.info/v1/audio/speech with a JSON body containing your model, input, voice, and format. The documentation provides ready cURL examples, making it easy to test integration directly from your terminal or script environment.

Do I need to install any extra libraries?

No, you can use plain HTTP or the official OpenAI SDK. No proprietary PodVoix SDK is required. You only need standard HTTP libraries or the OpenAI Python package, configured with our base URL. This keeps your dependencies minimal and leverages tools you likely already use for other API integrations in your workflow.

How do I handle errors in my code?

Failed requests are free, and the charge is returned in full. You should handle HTTP error responses from the API in your code to manage retries or notify users. Check the status codes and response bodies to determine if the synthesis failed due to input issues or system load, ensuring robust podcast generation.

Is the JSON body the same as OpenAI's?

Yes, the request shape is identical to the OpenAI speech endpoint. You send a POST request with fields like 'model', 'input', 'voice', and 'response_format'. This compatibility means you can use existing OpenAI integration code by simply pointing it to our base URL, reducing development time for your podcast automation scripts.

Can I request multiple voices in one call?

No, each request generates audio for a single voice preset. To use multiple voices, send separate requests for each voice segment and join the resulting audio files. This approach gives you precise control over which voice narrates each part of your podcast script, allowing for dynamic and engaging audio content.

How do I check available voices programmatically?

Use the GET /v1/voices endpoint to retrieve a list of available voices, languages, formats, and prices. This allows you to programmatically select from the eight presets like aria, nova, or felix. You can integrate this call into your podcast production tool to dynamically choose the best voice for each script segment.

First request

curl

curl https://api.bl18.info/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.bl18.info/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.bl18.info/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

Authentication and Keys

Sound wave illustration for: Authentication and Keys

Access to the PodVoix Studio TTS API requires a valid API key, which you generate directly from the /get-api-key/ dashboard. Each account is limited to one active key at a time, ensuring simple and secure access control for your podcast production workflows.

Generate Your API Key

Generate Your API Key

Sign in via Google or email to retrieve your unique key. The dashboard displays your key, balance, and usage statistics immediately upon login, allowing you to start testing integration without delay.

Bearer Token Authorization

Bearer Token Authorization

Include your key in the request header as Authorization: Bearer tts-.... This standard method works seamlessly with the OpenAI SDKs by pointing the base URL to https://api.bl18.info/v1.

Rotate Keys Instantly

You can issue a new key at any time from the dashboard. The previous key stops working immediately, providing instant security without downtime for your podcast agency's automation pipelines.

Endpoint Structure

Sound wave illustration for: Endpoint Structure

PodVoix Studio provides three core endpoints to manage your podcast audio generation workflow. The primary endpoint handles synthesis, while the others expose metadata about available voices and models, ensuring you can build robust integration scripts without guessing parameters.

POST /v1/audio/speech

This is your main endpoint for converting text into audio. Send a POST request with your JSON payload containing the input text, voice, model, and response_format. The API processes the request and returns the audio file directly in the response body.

GET /v1/voices

Call this endpoint to retrieve the complete list of available voice presets. The response includes details on each voice, their associated languages, supported audio formats, and pricing. This helps you verify compatibility before generating content.

GET /v1/models

Use this endpoint to check the currently available TTS models, such as tts-1 and tts-1-hd. Both use the same engine but differ in quality and price, allowing you to choose the best fit for your podcast's audio standards.

Request Parameters

Sound wave illustration for: Request Parameters

The API accepts plain text input up to 4096 characters per request. Spaces and punctuation count toward this limit, so ensure your script is concise before sending. Longer content requires splitting and joining, which is handled in the long-text section.

Input Text and Limits

Send your podcast script as the input field. The system processes up to 4096 characters per call. If your episode is longer, split the text into chunks and combine the resulting audio files afterward.

  • Maximum length: 4096 characters per request.
  • Spaces and punctuation count as characters.
  • Failed requests do not consume credit.

Voice Selection Presets

Choose from eight distinct voice presets. Each voice supports all 23 supported languages, including French, which is ideal for podcast production. Select a voice ID that matches the tone of your content, from warm narration to energetic promos.

  • aria: warm, clear narrator.
  • nova: bright, upbeat.
  • luna: soft, storytelling.
  • sage: calm, instructional.
  • felix: energetic, promo.
  • milo: friendly, conversational.

Response Format Options

Specify the output format using the response_format parameter. You can choose mp3, wav, opus, flac, or pcm. This allows you to integrate directly into your existing podcast production pipeline without additional conversion steps.

  • mp3: standard compressed audio.
  • wav: lossless uncompressed.
  • opus: efficient compression.
  • flac: lossless compression.
  • pcm: raw audio data.

Speed and Language Control

Sound wave illustration for: Speed and Language Control

PodVoix Studio gives you precise control over audio pacing and linguistic accuracy. You can adjust the speech rate to match the exact energy of your podcast segments, from slow, contemplative narration to rapid-fire news updates, all while ensuring the language is correctly identified or explicitly defined for non-English content.

Adjustable Speed Range

The speed parameter accepts values from 0.25 to 4.0. This allows you to slow down complex explanations for clarity or accelerate standard monologues to fit tighter runtime constraints without losing intelligibility. Typical generation remains near real-time, processing roughly 25 characters per second.

  • Minimum speed: 0.25 (slow, detailed narration)
  • Maximum speed: 4.0 (fast, energetic delivery)
  • Default speed: 1.0

Optional ISO Language Code

While the API can guess language from script, you can explicitly set the language field using an ISO code. This is crucial for non-English Latin-script text or when mixing languages, ensuring the correct pronunciation model is applied regardless of the input script.

  • Supported languages: Arabic, Chinese, Danish, Dutch, English, Finnish, French, German, Greek, Hebrew, Hindi, Italian, Japanese, Korean, Malay, Norwegian, Polish, Portuguese, Russian, Spanish, Swahili, Swedish, Turkish.

Automatic Language Detection

If you omit the language field, the system automatically detects the language based on the input script. Latin script defaults to English, so always specify the language parameter for French, German, or other non-English Latin text to ensure accurate synthesis.

Handling Long Texts

Sound wave illustration for: Handling Long Texts

Podcast scripts often exceed the 4096-character limit per request. You must split your text into smaller chunks and process them individually to ensure reliable synthesis.

Each chunk generates a separate audio file. You then join these files sequentially to create the final episode audio. This keeps requests within limits and prevents errors.

4096 Character Split

The API accepts a maximum of 4096 characters per request, including spaces and punctuation. Divide your script into segments that respect this limit before sending them to the endpoint.

Ensure each chunk is a complete sentence or thought where possible to avoid awkward audio cuts at segment boundaries.

  • Count characters including spaces and punctuation.
  • Split at natural sentence breaks for better audio quality.

Audio File Joining

The API returns individual audio files for each successful request. Your application must concatenate these files in the order they were processed to form the complete audio.

The resulting file maintains consistent voice characteristics across all segments.

Chunked Request Strategy

Send requests sequentially or in controlled parallel batches. Each request is processed one after another, so under load a request may wait in a queue.

Monitor your rate limit (60 requests per minute) to avoid delays. Split large scripts into manageable chunks to stay within the per-minute limit without overwhelming the system.

Handling Long Texts

Error Handling and Codes

Sound wave illustration for: Error Handling and Codes

When integrating PodVoix Studio into your podcast production pipeline, understanding error responses ensures smooth audio generation. Our API returns standard HTTP status codes to help you diagnose issues quickly, whether you are processing long scripts or handling high-volume bursts during peak production hours.

Rate Limit Exceeded

You receive a 429 status code if you exceed 60 requests per minute per key. New accounts start with a limit of 10 requests per minute until the first top-up. Exceeding this limit pauses synthesis until the window resets, so monitor your usage via the dashboard to avoid interruptions during batch processing.

  • Limit: 60 requests/minute per key (10 for new accounts).
  • Exceeded limits return HTTP 429.
  • Monitor usage in the dashboard to plan batch jobs.

Invalid Voice ID

A 400 error occurs if the voice parameter does not match one of the eight available presets (e.g., aria, nova, luna, sage, felix, milo, atlas, orion). Ensure you fetch the valid list from GET /v1/voices before sending synthesis requests to avoid wasted characters and credits on failed attempts.

Network Timeout Errors

Long texts or high server load may cause timeouts. Since requests are processed sequentially, complex generations might queue. Implement exponential backoff in your integration to retry failed requests gracefully without overwhelming the API.

Example cURL Requests

Sound wave illustration for: Example cURL Requests

See the concrete cURL examples below to start generating podcast audio immediately. These snippets demonstrate the standard JSON body structure required by the POST /v1/audio/speech endpoint.

Each example uses a valid API key and demonstrates how to pass text, select a voice, and adjust output parameters for your specific production needs.

Basic French Text Request

This example sends a simple French text string to the API. It uses the default voice and returns an MP3 file.

```bash curl -X POST "https://api.bl18.info/v1/audio/speech" \ -H "Authorization: Bearer tts-your-api-key" \ -H "Content-Type: application/json" \ -d '{ "model": "tts-1", "input": "Bonjour et bienvenue dans cet épisode.", "voice": "aria", "response_format": "mp3" }' \ -o output.mp3 ```

Request with Specific Voice

Select any of the eight presets to match your podcast’s tone. For instance, 'atlas' provides a neutral, news-style delivery suitable for factual content.

```bash curl -X POST "https://api.bl18.info/v1/audio/speech" \ -H "Authorization: Bearer tts-your-api-key" \ -H "Content-Type: application/json" \ -d '{ "model": "tts-1-hd", "input": "Voici les nouvelles de la semaine.", "voice": "atlas", "response_format": "wav" }' \ -o news_segment.wav ```

Request with Speed Adjustment

Adjust the speed between 0.25 and 4.0 to control pacing. A slower speed can enhance clarity for complex explanations, while faster speeds help condense regular updates.

```bash curl -X POST "https://api.bl18.info/v1/audio/speech" \ -H "Authorization: Bearer tts-your-api-key" \ -H "Content-Type: application/json" \ -d '{ "model": "tts-1", "input": "Rappel des points clés de notre discussion précédente.", "voice": "nova", "speed": 1.5, "response_format": "opus" }' \ -o recap.opus ```

OpenAI SDK Compatibility

Sound wave illustration for: OpenAI SDK Compatibility

PodVoix Studio’s API mirrors the OpenAI speech endpoint structure, allowing podcast agencies to swap providers with minimal code changes. By simply updating the base URL, you can leverage existing integrations without rewriting core logic.

Base URL Configuration

Point your client to https://api.bl18.info/v1 instead of the default OpenAI endpoint. This single change directs all requests to PodVoix Studio while maintaining standard OpenAI-compatible behavior for authentication and response parsing.

Using Official SDKs

You can use the official OpenAI Python or Node.js SDKs by passing the new base URL. Ensure you initialize the client with your PodVoix Bearer token (tts-...) for seamless authentication.

JSON Body Compatibility

Send standard JSON bodies with model, input, voice, and response_format fields. The API accepts the same request shape as OpenAI, ensuring your podcast automation scripts work out of the box.

Listen to the 8 voices

Each sample below was generated by this API from the same sentence. His tone adds gravitas to serious topics without sounding monotone.

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. Tether (USDT)
  3. LibriTTS-R paper (arXiv 2305.18802)
  4. openai-node on GitHub
  5. ISO 639 language codes
  6. Node.js documentation
  7. OpenAI API reference: create speech
  8. LibriVox public-domain audiobooks
  9. IETF RFC 7845: Ogg Opus
  10. LibriTTS-R corpus (OpenSLR 141)
  11. W3C WAI: making audio and video accessible
  12. Python documentation

More on this site