Skip to main content

Clone voices from text to speech with Zyphra Zonos API

Workflow preview

Workflow preview
100%
Clone voices from text to speech with Zyphra Zonos API preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Voice Cloning Workflow Zyphra Zonos API Who is this for? This workflow is designed for developers, content creators, and businesses looking to automate high quality voice synthesis using AI voice c...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.webhook, n8n-nodes-base.set, n8n-nodes-base.readwritefile, n8n-nodes-base.if, n8n-nodes-base.httprequest, n8n-nodes-base.respondtowebhook, n8n-nodes-base.stickynote, n8n-nodes-base.code

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Tiartyos.

Original n8n.io source

1.1 Workflow description

Title
Clone voices from text to speech with Zyphra Zonos API
Workflow name
Clone voices from text to speech with Zyphra Zonos API

Voice Cloning Workflow - Zyphra Zonos API

Who is this for?

This workflow is designed for developers, content creators, and businesses looking to automate high-quality voice synthesis using AI voice cloning technology.

What problem does this solve?

It automates the process of generating natural-sounding speech from text using a sample voice file, eliminating the need for manual voice recording and providing consistent voice output for applications like audiobooks, virtual assistants, or content localization.

What this workflow does

The workflow receives text and voice cloning parameters via webhook, reads a sample voice file from your storage, sends the data to Zyphra's Zonos API for voice synthesis, and saves the generated audio file to your specified output location.

Prerequisites

You'll need:

Setup

  1. Configure your Zyphra API key in the "Call Zyphra Clone API" node under Header Parameters (Name: X-API-Key, Value: your-api-key)
  2. Ensure your sample voice files are accessible at the paths you'll specify
  3. Test the webhook endpoint is accessible

Supported Audio Formats

The API supports multiple output formats through the mime_type parameter:

  • WebM (default) - audio/webm
  • Ogg - audio/ogg
  • WAV - audio/wav
  • MP3 - audio/mp3 or audio/mpeg
  • MP4/AAC - audio/mp4 or audio/aac

Usage Example

Endpoint: POST http://localhost:5678/webhook-test/voice-clone

Headers: Content-Type: application/json

Request Body: { "text": "Hello there! This voice sounds just like the sample!", "speaking_rate": 18, "sample_voice_path": "/data/output/sampleVoice.wav", "output_path": "/data/output/", "language_iso_code": "en-us", "mime_type": "audio/wav", "model": "zonos-v0.1-transformer", "emotion": { "happiness": 0.8, "neutral": 0.3, "sadness": 0.05, "disgust": 0.05, "fear": 0.05, "surprise": 0.05, "anger": 0.05, "other": 0.5 } }

Parameters

Required Parameters

  • text: Text to synthesize into speech
  • sample_voice_path: Path to your voice sample file
  • output_path: Directory where generated audio will be saved

Optional Parameters (with defaults)

  • speaking_rate: 15 - Speech speed
  • language_iso_code: "en-us" - Language code
  • mime_type: "audio/wav" - Output audio format
  • model: "zonos-v0.1-transformer" - AI model to use
  • emotion: Object with emotion levels (0-1 scale)

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Webhook Trigger

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 1

Block 2 - Set Clone Parameters

Type / Role
n8n-nodes-base.set - set
Config choices
Version 1

Block 3 - Read Sample Voice

Type / Role
n8n-nodes-base.readWriteFile - readWriteFile
Config choices
Version 1

Block 4 - Check File Loaded

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2

Block 5 - Call Zyphra Clone API

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.1

Block 6 - Save Cloned Audio

Type / Role
n8n-nodes-base.readWriteFile - readWriteFile
Config choices
Version 1

Block 7 - Success Response

Type / Role
n8n-nodes-base.set - set
Config choices
Version 1

Block 8 - File Error Response

Type / Role
n8n-nodes-base.set - set
Config choices
Version 1

Block 9 - API Error Response

Type / Role
n8n-nodes-base.set - set
Config choices
Version 1

Block 10 - Webhook Response

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1

Block 11 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Base64 convertor

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 13 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Clone voices from text to speech with Zyphra Zonos API
Complexity advanced
Nodes 18
Categories Content Creation, Multimodal AI
Author Tiartyos
Published 29 Jun 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/5448/5448.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Clone voices from text to speech with Zyphra Zonos API do?

Voice Cloning Workflow Zyphra Zonos API Who is this for? This workflow is designed for developers, content creators, and businesses looking to automate high quality voice synthesis using AI voice c...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.