Skip to main content
Glama
Airvoz Text-to-Speech MCP

Airvoz Text-to-Speech MCP

by ameeq96

Airvoz Text-to-Speech MCP

A local Python stdio server for Codex, using the official MCP SDK and Playwright Chromium. It reads the live Airvoz web form, queues narration jobs, and exports audio for video editing.

Airvoz documents a 3,000-character limit per free request and recommends processing longer scripts in sections. Its public terms permit generated audio in commercial videos. The terms are silent on unattended browser automation, and no public Airvoz API documentation or official MCP server was found as of December 6, 2026. Confirm permission for your workload and any applicable limits with Airvoz at support@airvoz.com before enabling unattended synthesis. Airvoz · Terms of Service · Privacy Policy

Set up on Windows

From this project directory, run the following commands in PowerShell using Python 3.11 or later. Install FFmpeg with both ffmpeg and ffprobe on PATH, or set AIRVOZ_FFMPEG and AIRVOZ_FFPROBE to the executable paths. FFmpeg downloads

python -m venv .venv
.\.venv\Scripts\python.exe -m pip install -r requirements.txt
.\.venv\Scripts\python.exe -m playwright install chromium

Add this entry to the Codex MCP configuration, replacing C:/path/to/airvoz_mcp with the absolute path to this project. Then open a new Codex chat or restart the client and call health_check and list_voices. Codex MCP configuration

[mcp_servers.airvoz]
command = "C:/path/to/airvoz_mcp/.venv/Scripts/python.exe"
args = ["C:/path/to/airvoz_mcp/server.py"]
tool_timeout_sec = 90

[mcp_servers.airvoz.env]
AIRVOZ_OUTPUT_DIR = "C:/path/to/video-project/narration"

After Airvoz confirms permission, add AIRVOZ_AUTOMATION_AUTHORIZED = "1" to that env table and restart the server. Set AIRVOZ_MIN_INTERVAL_SECONDS if your approved workload requires more spacing. The server defaults to five seconds between submissions and sends one request at a time. It stops on detected CAPTCHA, authentication, or rate and quota restrictions. After the provider’s stated waiting period has passed or Airvoz has cleared the restriction, stop the server, remove restriction.json from its data directory, and start it again.

AIRVOZ_DATA_DIR defaults to airvoz-data beside server.py and holds job status and generated audio. AIRVOZ_OUTPUT_DIR defaults to exports inside the data directory. Use one server process per data directory. Completed audio and status survive restart. Jobs in flight at shutdown become interrupted and can be resubmitted after checking your provider usage.

Related MCP server: Podcast MCP

Generate an episode

  1. Call list_voices for hi-IN (Hindi) or ur-PK (Pakistani Urdu). Omit locale for both, or pass another Airvoz locale code such as fr-FR. Use the returned voice ID to select the same voice throughout an episode. The Hindi picker labels Madhur as slow and male. The Pakistani Urdu picker lists Asad (male) and Uzma (female). Use the voice descriptions and samples in the Airvoz voice picker to choose a documentary read.

  2. Call generate_voice for one segment or generate_long_narration for a full episode. Use Devanagari for Hindi and Urdu script for Pakistani Urdu. Include punctuation and paragraph breaks where the narrator should pause. Long jobs prioritize paragraph and sentence boundaries and preserve the selected settings across sections.

  3. Poll get_generation_status with the returned generation_id. When it reports completed, call download_audio and pass its local file path to the video editor. Call get_audio_duration for the measured duration in seconds.

For example, pass these arguments to generate_voice for Pakistani Urdu.

{
  "locale": "ur-PK",
  "voice_id": "ur-PK-AsadNeural",
  "text": "رات گہری تھی۔ پرانی حویلی کے باہر ایک چراغ جل رہا تھا۔",
  "speed": -5,
  "pitch": -5,
  "volume": 100,
  "audio_format": "mp3"
}

Tool

Inputs and behavior

list_voices

Optional locale. Returns live voice IDs, names and available descriptors.

generate_voice

text, optional locale, voice_id, speed, pitch, volume, audio_format. Queues one request for up to 3,000 UTF-16 code units.

generate_long_narration

Same inputs. Queues sections within the live form limit and assembles them in order.

get_generation_status

generation_id. Returns queued, running, completed, failed, blocked, or interrupted, along with section progress.

download_audio

generation_id, optional filename, directory, and audio_format. Exports within the configured output directory. Existing files are preserved.

get_audio_duration

generation_id, optional audio_format. Measures the completed audio file.

health_check

Checks the MCP process, local media tools and access to the Airvoz Hindi form without submitting text.

Speed and pitch are percentage offsets, and volume is a percentage. The observed controls move in 5-point increments from −50 to +100 for speed, −50 to +50 for pitch, and 10 to 100 for volume. The server checks each requested value against the live slider. The defaults are 0, 0, and 100. Hindi TTS · Urdu TTS

The server keeps the native MP3 for a single segment and joins compatible MP3 segments without re-encoding. Request audio_format: "wav" to produce both a native-source MP3 export and a 24-bit PCM WAV decoded from the source segments. WAV retains the decoded signal for editing without adding detail beyond Airvoz’s source audio. If Airvoz returns no usable audio, the job reports a failure and provides the error in its status.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables automated audio restoration, transcription, and speaker diarization via MCP tools for queuing files, monitoring progress, and retrieving speaker-labeled transcripts.
      9
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables MCP clients such as Claude to generate spoken audio locally, narrating English with Kokoro and Malayalam with IndicF5, Parler-TTS, Piper or MMS, including cloned Malayalam voices, pronunciation lexicons, and number/currency expansion. Outputs loudness-normalised WAV or MP3 and runs long narrations through a pollable job queue so tool calls never time out.
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables MCP clients to convert text into speech in Hindi, other Indian languages, and English, with voice listing and selectable speed and audio formats. It can save generated audio locally as files or return private download links when hosted.
      4
      162 npm
      Apache 2.0