Where this workflow is useful
Prerequisites
Before starting, prepare a local project directory with one clean reference voice file and one text file containing the script to synthesize. In the video, the project is named test_mudex.
/Users/chuan/projects/test_mudex/
├── reference_voice.wav # Reference voice used for cloning
├── tts.txt # Text to synthesize
└── config/
For best results, use a clear human voice recording with minimal background noise. Keep the target script in tts.txt.
Step-by-step guide
Configure the Medux MCP Server in Codex
Open Codex settings, go to MCP servers, and add or update the Medux MCP server. In the video, the configuration uses a remote MCP endpoint and an Authorization header.
Once connected, Medux capabilities such as file upload, voice cloning, status polling, and speech synthesis become callable tools inside Codex.

Ask Codex to clone and synthesize the voice
Return to the test_mudex project and describe the task in natural language. Include the reference audio path and the text file path. Codex will inspect the files and choose the relevant Medux MCP tools.
Use Medux MCP to clone the voice from the reference audio file /Users/chuan/projects/test_mudex/reference_voice.wav and synthesize speech using the text contained in /Users/chuan/projects/test_mudex/tts.txt.
A slightly more production-friendly version is:
Use Medux MCP to clone the voice with the reference audio /Users/chuan/projects/test_mudex/reference_voice.wav, then synthesize speech from the text in /Users/chuan/projects/test_mudex/tts.txt. Save the generated audio file in the current project directory and tell me the output path.
Approve the Medux upload tool call
Codex first reads tts.txt and checks reference_voice.wav. It then asks permission to call medux_file_create_upload_url, create an upload URL, and send the WAV file to Medux.

Create the voice cloning task
After the reference audio is uploaded, Codex calls medux_clone_voice to create a voice cloning task. In the recording, the task title is similar to Clone voice from reference_voice.wav.

Poll the clone task and run synthesis
Voice cloning is asynchronous. Codex keeps checking the task status until the cloned voice asset is ready. It then passes the contents of tts.txt to the Medux synthesis tool.

Save the generated audio locally
When synthesis is complete, Codex downloads the result into the current project directory. In the video, the generated file is:
synthesized_from_cloned_voice.wav
The Finder view confirms that the WAV file is available in test_mudex. You can now preview it, edit it, or pass it into a downstream production pipeline.

Workflow recap
The workflow is simple: the user gives Codex a goal, Codex orchestrates the MCP tool calls, and Medux performs voice cloning plus speech synthesis.
reference_voice.wav + tts.txt
↓
Codex reads the local files and creates an upload URL
↓
Medux receives the reference audio and creates a voice clone task
↓
Codex polls the task status until the cloned voice is ready
↓
Medux synthesizes the text from tts.txt with the cloned voice
↓
synthesized_from_cloned_voice.wav
Why connect Medux through MCP?
Without MCP, developers usually need to implement file reading, upload URLs, authentication, asynchronous task creation, status polling, synthesis requests, result downloads, and error handling themselves.
With MCP, those capabilities are exposed as structured tools that Codex can understand and call. The user describes the intended outcome, Codex decomposes the work, and Medux executes the voice generation pipeline.
Pre-publish checklist
This page is a single self-contained HTML file. The screenshots are embedded as Base64 data URIs, so no separate image upload is required. Before publishing, review the following items:
Explore related workflows
Continue with a nearby Medux workflow or compare how the same task works across Claude MCP and Codex MCP.