<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>ChatTTS on Harry AI</title><link>https://harryai.cc/tags/chattts/</link><description>Recent content in ChatTTS 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>Wed, 29 May 2024 20:16:01 +0800</lastBuildDate><atom:link href="https://harryai.cc/tags/chattts/index.xml" rel="self" type="application/rss+xml"/><item><title>ChatTTS 开源语音合成服务的部署和使用</title><link>https://harryai.cc/post/chat-tts/</link><pubDate>Wed, 29 May 2024 20:16:01 +0800</pubDate><author>harryliuwx888@gmail.com (Harry)</author><guid>https://harryai.cc/post/chat-tts/</guid><description>&lt;p>项目地址：&lt;a href="https://github.com/2noise/ChatTTS">https://github.com/2noise/ChatTTS&lt;/a>&lt;/p>
&lt;p>&lt;strong>Windows 用户建议直接下载一键启动包，运行环境和模型都已经配置好，使用更简单。&lt;/strong>&lt;/p>
&lt;h2 id="windows-一键启动包">Windows 一键启动包&lt;/h2>
&lt;p>百度网盘下载：&lt;a href="https://pan.baidu.com/s/1wfdqQDTzDnMf01bV1wzKgQ?pwd=v2kb">https://pan.baidu.com/s/1wfdqQDTzDnMf01bV1wzKgQ?pwd=v2kb&lt;/a>
提取码：v2kb&lt;/p>
&lt;p>&lt;strong>解压密码：harryai&lt;/strong>&lt;/p>
&lt;p>&lt;strong>下载后解压&lt;/strong>，然后双击 &lt;code>启动服务.bat&lt;/code> 即可。&lt;/p>
&lt;img src="https://harryai.cc/post/chat-tts/windows.jpg" alt="启动服务" class="center" width="600">&lt;p>启动成功后，会自动打开 &lt;a href="http://localhost:8080/">http://localhost:8845/&lt;/a> 页面。&lt;/p>
&lt;p>输入文本内容，即可合成语音。&lt;/p>
&lt;img src="https://harryai.cc/post/chat-tts/webui.jpg" alt="Web效果演示" class="center" width="600">&lt;h2 id="手动部署">手动部署&lt;/h2>
&lt;h3 id="1-下载代码">1. 下载代码&lt;/h3>
&lt;p>&lt;a href="https://harryai.cc/chat-tts/code.zip">点击下载代码压缩包&lt;/a>，然后解压到本地。&lt;/p>
&lt;h3 id="2-下载模型">2. 下载模型&lt;/h3>
&lt;p>从魔搭下载 &lt;a href="https://www.modelscope.cn/models/pzc163/chatTTS/summary">https://www.modelscope.cn/models/pzc163/chatTTS/summary&lt;/a>
建议使用 git 克隆&lt;/p>
&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;/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-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>git clone https://www.modelscope.cn/pzc163/chatTTS.git
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>注意：魔搭里面缺少文件 &lt;code>spk_stat.pt&lt;/code>，&lt;a href="https://harryai.cc/chat-tts/spk_stat.pt">点击这里&lt;/a> 下载，然后放到 chatTTS/asset 目录下。&lt;/p>
&lt;p>再将下载的整个文件夹，放到 &lt;code>models&lt;/code> 文件夹下，结构如下：&lt;/p>
&lt;img src="https://harryai.cc/post/chat-tts/folder.jpg" alt="文件夹结构" class="center" width="600">&lt;h3 id="3-安装依赖">3. 安装依赖&lt;/h3>
&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;/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-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>pip install -r requirements.txt
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;h3 id="4-启动服务">4. 启动服务&lt;/h3>
&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-2-1">&lt;a style="outline:none;text-decoration:none;color:inherit" href="#hl-2-1">1&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-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>python webui.py
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;p>启动成功后，会自动打开 &lt;a href="http://localhost:8080/">http://localhost:8845/&lt;/a> 页面，输入文本内容，即可合成语音。&lt;/p>
&lt;img src="https://harryai.cc/post/chat-tts/webui.jpg" alt="Web效果演示" class="center" width="600"></description></item></channel></rss>