Automate realistic voice cloning using this advanced n8n workflow. Integrate the Zyphra Zonos API for text-to-speech generation, local file handling, and robust error response management using custom n8n nodes.
Download this n8n workflow template and start using it instantly.
Developers and engineers building custom text-to-speech (TTS) solutions.
Content creators requiring dynamic, voice-cloned narration.
Users seeking ready-to-use n8n templates for advanced AI/audio generation tasks.
Technical users needing reliable local file handling within an n8n automation.
Integrating complex voice cloning APIs requires meticulous handling of file formats, encoding, and parameters. This specialized n8n workflow provides a complete solution for leveraging the Zyphra Zonos text-to-speech API. By starting with an external webhook, the workflow accepts input text, a local path to a voice sample, and granular control over speech emotion and rate. It addresses a core technical challengeโconverting the local binary file into the necessary base64 format required by the APIโusing a dedicated n8n node. This ensures that anyone deploying this n8n workflow can reliably perform voice cloning, complete with built-in error handling for file access and API connection issues, offering a superior and predictable automation experience compared to manual scripting.
This automation is initiated by an incoming HTTP POST request to a defined n8n trigger endpoint /voice-clone.
Webhook Trigger receives the POST request, which contains the text to be spoken, the path to the sample voice file (samplevoicepath), and various optional parameters like emotion levels and speakingrate. The Set Clone Parameters n8n node then standardizes and sets all necessary parameters, applying defaults where input is missing.Read Sample Voice n8n node attempts to access the local voice sample specified. If successful, the audio binary data is passed to the Base64 convertor (a Code n8n node), which encodes the audio into a base64 string, preparing it for the API payload.Check File Loaded If n8n node validates the existence of the binary data. If the file cannot be read, the flow branches immediately to the File Error Response.Call Zyphra Clone API n8n node sends a complex JSON body, including the base64-encoded audio and all text/emotion parameters, to the Zyphra endpoint. This request requires a configured API key.Save Cloned Audio. If the API fails, the flow branches to the API Error Response n8n node.Save Cloned Audio n8n node writes the generated audio to the specified local outputpath. Finally, either the successful result payload or one of the detailed error payloads (File Error or API Error) is passed to the Webhook Response n8n node, completing the execution of this robust n8n workflow.To deploy and utilize this powerful n8n workflow, follow these steps:
Webhook Trigger node. Note down the unique URL provided by n8n.Call Zyphra Clone API HTTP Request n8n node. Under Header Parameters, locate the X-API-Key field. Replace the placeholder value (put-your-API-key-here) with your actual Zyphra API key.samplevoicepath and output_path). Since this n8n workflow deals with local files, this is crucial for the Read Sample Voice and Save Cloned Audio n8n node operations. Webhook Trigger (n8n trigger): Starts the n8n workflow upon receiving a POST request at the /voice-clone endpoint.
Set Clone Parameters (Set n8n node): Extracts and standardizes input parameters (text, emotion levels, file paths) from the webhook payload, ensuring all variables needed later are available.
Read Sample Voice (Read/Write File n8n node): Reads the source audio file from the local filesystem path provided by the user. Configured to continue on error to allow for explicit error reporting.
Base64 convertor (Code n8n node): A custom n8n node that converts the binary audio data read from the local file into a Base64 string required by the Zyphra API payload.
Check File Loaded (If n8n node): Validates if the Read Sample Voice n8n node successfully loaded binary data, branching the n8n workflow to handle missing file errors.
Call Zyphra Clone API (HTTP Request n8n node): The central function, sending the JSON payload (including text, emotions, and Base64 voice sample) to the Zyphra API to generate the cloned voice. Requires custom header authentication.
Save Cloned Audio (Read/Write File n8n node): Writes the binary audio response received from the Zyphra API to a local file, dynamically naming it with a timestamp.
Error Responses (Set n8n nodes): File Error Response and API Error Response nodes create structured JSON messages detailing the cause of failure, which is returned by the final n8n trigger response.
Automate cloning viral videos using AI (Perplexity, GPT-4o, Captions.ai) and schedule auto-posting to Instagram, TikTok, YouTube, and 6 other platforms using this robust n8n workflow.

This powerful n8n workflow uses Apify and Google Gemini 2.5 Pro to forensically analyze TikToks and Instagram Reels, generating detailed, cloning prompts for AI video generators like Veo or Sora. Get this n8n template now.

Use this custom n8n workflow to clone nested folder structures in Google Drive automatically. Ideal for project template creation and bulk operations.

This advanced n8n workflow leverages Telegram as a front-end to utilize ElevenLabs for secure voice cloning and speech-to-speech transformations. Get this powerful n8n template to deploy your own voice AI assistant.


๐ฎ Gaming // ๐ป Coding // ๐จ Creating Pro-AI ๐ค | Open Source ๐ | ๐งโโ๏ธ Horror junkie | ๐ Anime lover Turning caffeine into questionable code since 2017 โ







































