/install aliyun-cosyvoice-voice-clone
Category: provider
Model Studio CosyVoice Voice Clone
Use the CosyVoice voice enrollment API to create cloned voices from public reference audio.
Critical model names
Use model="voice-enrollment" and one of these target_model values:
cosyvoice-v3.5-pluscosyvoice-v3.5-flashcosyvoice-v3-pluscosyvoice-v3-flashcosyvoice-v2
Recommended default in this repo:
target_model="cosyvoice-v3.5-plus"
Region and compatibility
cosyvoice-v3.5-plusandcosyvoice-v3.5-flashare available only in China mainland deployment mode (Beijing endpoint).- In international deployment mode (Singapore endpoint),
cosyvoice-v3-plusandcosyvoice-v3-flashdo not support voice clone/design. - The
target_modelused during enrollment must match the model used later in speech synthesis, otherwise synthesis fails.
Endpoint
- Domestic:
https://dashscope.aliyuncs.com/api/v1/services/audio/tts/customization - International:
https://dashscope-intl.aliyuncs.com/api/v1/services/audio/tts/customization
Prerequisites
- Set
DASHSCOPE_API_KEYin your environment, or adddashscope_api_keyto~/.alibabacloud/credentials. - Provide a public audio URL for the enrollment sample.
Normalized interface (cosyvoice.voice_clone)
Request
model(string, optional): fixed tovoice-enrollmenttarget_model(string, optional): defaultcosyvoice-v3.5-plusprefix(string, required): letters/digits only, max 10 charsvoice_sample_url(string, required): public audio URLlanguage_hints(array[string], optional): only first item is usedmax_prompt_audio_length(float, optional): only forcosyvoice-v3.5-plus,cosyvoice-v3.5-flash,cosyvoice-v3-flashenable_preprocess(bool, optional): only forcosyvoice-v3.5-plus,cosyvoice-v3.5-flash,cosyvoice-v3-flash
Response
voice_id(string): use this as thevoiceparameter in later TTS callsrequest_id(string)usage.count(number, optional)
Operational guidance
- For Chinese dialect reference audio, keep
language_hints=["zh"]; control dialect style later in synthesis via text orinstruct. - For
cosyvoice-v3.5-plus, supportedlanguage_hintsincludezh,en,fr,de,ja,ko,ru,pt,th,id,vi. - Avoid frequent enrollment calls; each call creates a new custom voice and consumes quota.
Local helper script
Prepare a normalized request JSON:
python skills/ai/audio/aliyun-cosyvoice-voice-clone/scripts/prepare_cosyvoice_clone_request.py \
--target-model cosyvoice-v3.5-plus \
--prefix myvoice \
--voice-sample-url https://example.com/voice.wav \
--language-hint zh
Validation
mkdir -p output/aliyun-cosyvoice-voice-clone
for f in skills/ai/audio/aliyun-cosyvoice-voice-clone/scripts/*.py; do
python3 -m py_compile "$f"
done
echo "py_compile_ok" > output/aliyun-cosyvoice-voice-clone/validate.txt
Pass criteria: command exits 0 and output/aliyun-cosyvoice-voice-clone/validate.txt is generated.
Output And Evidence
- Save artifacts, command outputs, and API response summaries under
output/aliyun-cosyvoice-voice-clone/. - Include
target_model,prefix, and sample URL in the evidence file.
References
references/api_reference.mdreferences/sources.md
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install aliyun-cosyvoice-voice-clone - 安装完成后,直接呼叫该 Skill 的名称或使用
/aliyun-cosyvoice-voice-clone触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Aliyun Cosyvoice Voice Clone 是什么?
Use when creating cloned voices with Alibaba Cloud Model Studio CosyVoice customization models, especially cosyvoice-v3.5-plus or cosyvoice-v3.5-flash, from... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 108 次。
如何安装 Aliyun Cosyvoice Voice Clone?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install aliyun-cosyvoice-voice-clone」即可一键安装,无需额外配置。
Aliyun Cosyvoice Voice Clone 是免费的吗?
是的,Aliyun Cosyvoice Voice Clone 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Aliyun Cosyvoice Voice Clone 支持哪些平台?
Aliyun Cosyvoice Voice Clone 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Aliyun Cosyvoice Voice Clone?
由 cinience(@cinience)开发并维护,当前版本 v1.0.0。