用于在使用阿里云 Model Studio Qwen TTS VC 模型进行声音克隆,根据样例音频创建克隆声音并合成文本。
Category: provider
Use voice cloning models to replicate timbre from enrollment audio samples.
Use one of these exact model strings:
qwen3-tts-vc-2026-01-22qwen3-tts-vc-realtime-2026-01-15bash
python3 -m venv .venv
. .venv/bin/activate
python -m pip install dashscope
DASHSCOPE_API_KEY in your environment, or add dashscope_api_key to ~/.alibabacloud/credentials.text (string, required)voice_sample (string | bytes, required) enrollment samplevoice_name (string, optional)stream (bool, optional)audio_url (string) or streaming PCM chunksvoice_id (string)request_id (string)voice_id and reuse for future synthesis requests.Prepare a normalized request JSON and validate response schema:
bash
.venv/bin/python skills/ai/audio/aliyun-qwen-tts-voice-clone/scripts/prepare_voice_clone_request.py \
--text "Welcome to this voice-clone demo" \
--voice-sample "https://example.com/voice-sample.wav"
output/ai-audio-tts-voice-clone/audio/OUTPUT_DIR.bash
mkdir -p output/aliyun-qwen-tts-voice-clone
for f in skills/ai/audio/aliyun-qwen-tts-voice-clone/scripts/*.py; do
python3 -m py_compile "$f"
done
echo "py_compile_ok" > output/aliyun-qwen-tts-voice-clone/validate.txt
Pass criteria: command exits 0 and output/aliyun-qwen-tts-voice-clone/validate.txt is generated.
output/aliyun-qwen-tts-voice-clone/.references/sources.md