<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>语音克隆 on Harry AI</title><link>https://harryai.cc/tags/%E8%AF%AD%E9%9F%B3%E5%85%8B%E9%9A%86/</link><description>Recent content in 语音克隆 on Harry AI</description><generator>Hugo -- gohugo.io</generator><language>zh-cn</language><managingEditor>harryliuwx888@gmail.com (Harry)</managingEditor><webMaster>harryliuwx888@gmail.com (Harry)</webMaster><copyright>Copyright © 深圳市网旭科技有限公司。&lt;a href="https://beian.miit.gov.cn/" target="_blank">粤ICP备14077691号&lt;/a></copyright><lastBuildDate>Sat, 03 Aug 2024 12:30:01 +0800</lastBuildDate><atom:link href="https://harryai.cc/tags/%E8%AF%AD%E9%9F%B3%E5%85%8B%E9%9A%86/index.xml" rel="self" type="application/rss+xml"/><item><title>阿里开源 CosyVoice 语音克隆 部署和使用</title><link>https://harryai.cc/post/cosyvoice/</link><pubDate>Sat, 03 Aug 2024 12:30:01 +0800</pubDate><author>harryliuwx888@gmail.com (Harry)</author><guid>https://harryai.cc/post/cosyvoice/</guid><description>&lt;p>应该是 &lt;strong>开源界 音色 最稳定&lt;/strong> 的语音合成和克隆模型了，支持预训练音色合成、自然语言控制、3秒极速复刻和跨语种复刻。&lt;/p>
&lt;p>官方部署方式比较复杂，错误较多，我这里进行了整理和优化，&lt;strong>支持GPU和CPU&lt;/strong>，方便大家使用。&lt;/p>
&lt;p>CosyVoice 开源仓库: &lt;a href="https://github.com/FunAudioLLM/CosyVoice">CosyVoice&lt;/a>&lt;/p>
&lt;h2 id="效果展示">效果展示&lt;/h2>
&lt;h3 id="自然语言控制">自然语言控制&lt;/h3>
&lt;img src="https://harryai.cc/post/cosyvoice/1.jpg" alt="image" class="center" width="600">&lt;h3 id="3秒极速复刻">3秒极速复刻&lt;/h3>
&lt;img src="https://harryai.cc/post/cosyvoice/2.jpg" alt="image" class="center" width="600">&lt;h2 id="使用方法">使用方法&lt;/h2>
&lt;blockquote>
&lt;p>均支持 GPU 和 CPU&lt;/p>
&lt;p>第一次启动过程可能会有点长，需要从魔搭下载3个模型&lt;/p>&lt;/blockquote>
&lt;h3 id="windows-一键启动包">Windows 一键启动包&lt;/h3>
&lt;p>百度网盘: &lt;a href="https://pan.baidu.com/s/1UTuRKPQ9nuQk69qxQzdL4A?pwd=j2ei">https://pan.baidu.com/s/1UTuRKPQ9nuQk69qxQzdL4A?pwd=j2ei&lt;/a> 提取码: j2ei&lt;/p>
&lt;ul>
&lt;li>下载后使用 7z 解压。没有 7z 的话，可以在这里下载：&lt;a href="https://7-zip.org/download.html">https://7-zip.org/download.html&lt;/a>&lt;/li>
&lt;li>双击 &lt;code>双击启动.bat&lt;/code> 启动服务&lt;/li>
&lt;li>启动后，访问 &lt;a href="http://127.0.0.1:50000/">http://127.0.0.1:50000/&lt;/a>&lt;/li>
&lt;/ul>
&lt;blockquote>
&lt;p>注意：文件夹中不能有 &lt;strong>中文&lt;/strong>、&lt;strong>特殊字符&lt;/strong>和&lt;strong>空格&lt;/strong>，否则可能会启动失败&lt;/p>&lt;/blockquote>
&lt;h3 id="docker部署">Docker部署🐳&lt;/h3>
&lt;blockquote>
&lt;p>确保已经安装了Docker软件，没有的话，从官网下载安装 &lt;a href="https://www.docker.com/products/docker-desktop/">https://www.docker.com/products/docker-desktop/&lt;/a>&lt;/p>&lt;/blockquote>
&lt;p>复制以下代码到终端运行即可&lt;/p>
&lt;h4 id="cpu-版本">CPU 版本&lt;/h4>
&lt;div class="highlight">&lt;div style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">
&lt;table style="border-spacing:0;padding:0;margin:0;border:0;">&lt;tr>&lt;td style="vertical-align:top;padding:0;margin:0;border:0;">
&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code>&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f" id="hl-0-1">&lt;a style="outline:none;text-decoration:none;color:inherit" href="#hl-0-1">1&lt;/a>
&lt;/span>&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f" id="hl-0-2">&lt;a style="outline:none;text-decoration:none;color:inherit" href="#hl-0-2">2&lt;/a>
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>curl -fsSL https://harryai.cc/cosyvoice/docker-compose.yml -o docker-compose.yml
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>docker-compose up
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;h4 id="gpu-版本">GPU 版本&lt;/h4>
&lt;div class="highlight">&lt;div style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">
&lt;table style="border-spacing:0;padding:0;margin:0;border:0;">&lt;tr>&lt;td style="vertical-align:top;padding:0;margin:0;border:0;">
&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code>&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f" id="hl-1-1">&lt;a style="outline:none;text-decoration:none;color:inherit" href="#hl-1-1">1&lt;/a>
&lt;/span>&lt;span style="white-space:pre;-webkit-user-select:none;user-select:none;margin-right:0.4em;padding:0 0.4em 0 0.4em;color:#7f7f7f" id="hl-1-2">&lt;a style="outline:none;text-decoration:none;color:inherit" href="#hl-1-2">2&lt;/a>
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td style="vertical-align:top;padding:0;margin:0;border:0;;width:100%">
&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-bash" data-lang="bash">&lt;span style="display:flex;">&lt;span>curl -fsSL https://harryai.cc/cosyvoice/docker-compose-gpu.yml -o docker-compose.yml
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>docker-compose up
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>&lt;strong>docker 启动后，访问 &lt;a href="http://127.0.0.1:50000/">http://127.0.0.1:50000/&lt;/a>&lt;/strong>&lt;/p></description></item></channel></rss>