xfyun-voiceclone

Clone a speaker's voice from example audio and synthesize speech via iFlytek WebSocket.

Updated Mar 15, 2026
One-click install
npx skills add https://github.com/Jaykaijack/openclaw-backup --skill xfyun-voiceclone
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: xfyun-voiceclone
Source: https://github.com/Jaykaijack/openclaw-backup/tree/main/skills/xfyun-voiceclone
Command: npx skills add https://github.com/Jaykaijack/openclaw-backup --skill xfyun-voiceclone

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the complex and error-prone process of creating a custom text‑to‑speech voice from example recordings and then synthesizing speech in that cloned voice, removing the need to manually craft auth, multipart uploads, and WebSocket TTS plumbing.

Core Features & Use Cases

  • End-to-end training workflow: obtain training text, create a training task, upload audio (file or URL), submit the task, and poll for completion to get a voice resource ID.
  • Synthesis with cloned voice: connect to iFlytek TTS over WebSocket, synthesize text into mp3/pcm/speex/opus outputs, and adjust speed, volume, pitch and sample rate.
  • Use Cases: create personalized voice assistants, generate demo audio or localized narration from a speaker's recordings, and prototype voice UX without external dependencies.

Quick Start

Use the xfyun-voiceclone scripts to train a voice from a local WAV file and synthesize a short test phrase to an MP3 using your XFYUN_APP_ID, XFYUN_API_KEY, and XFYUN_API_SECRET.

Frequently Asked Questions about xfyun-voiceclone

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I clone a voice from an audio recording for text to speech?

Voice cloning from an audio recording requires uploading a WAV, MP3, M4A, or PCM file to create a training task, polling for completion, and using the resulting voice resource ID to synthesize speech. This workflow automates auth, multipart uploads, and WebSocket TTS plumbing.

How does WebSocket text to speech synthesis work with a custom voice?

WebSocket text to speech synthesis connects to iFlytek TTS services to synthesize text into MP3, PCM, speex, or opus outputs. It uses pure-stdlib Python scripts with MD5 and HMAC signing for authentication and allows adjusting speed, volume, pitch, and sample rate.

Do I need iFlytek credentials to train a custom TTS voice?

Yes, training a custom TTS voice requires iFlytek app credentials. You must set XFYUN_APP_ID, XFYUN_API_KEY, and XFYUN_API_SECRET in your environment variables to authenticate training tasks, audio uploads, and WebSocket synthesis requests.

Can I build a personalized voice assistant using Python without external dependencies?

Yes, you can build a personalized voice assistant using pure-stdlib Python scripts. This Skill handles end-to-end TTS training and synthesis workflows without external dependencies, supporting demo audio generation and localized narration from speaker recordings.

What audio formats are supported for uploading voice training samples?

Supported audio formats for uploading voice training samples include WAV, MP3, M4A, and PCM files. You can upload audio from a local file or via a URL to create the training task for your custom voice resource.

What are the limitations of using pure-stdlib Python scripts for voice cloning?

Pure-stdlib Python scripts for voice cloning rely entirely on iFlytek WebSocket TTS infrastructure and credentials. You must manage training task polling and handle multipart audio uploads manually within the script's workflow to obtain the synthesized speech outputs.