<?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 OHTLY Blog</title>
    <link>https://blog.ohtly.com/tags/chattts/</link>
    <description>Recent content in Chattts on OHTLY Blog</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    <lastBuildDate>Fri, 26 Jun 2026 19:38:43 +0800</lastBuildDate>
    <atom:link href="https://blog.ohtly.com/tags/chattts/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>自建 ChatTTS 语音合成服务</title>
      <link>https://blog.ohtly.com/posts/2026-06-26-chattts-tts-service/</link>
      <pubDate>Fri, 26 Jun 2026 19:38:43 +0800</pubDate>
      <guid>https://blog.ohtly.com/posts/2026-06-26-chattts-tts-service/</guid>
      <description>&lt;h2 id=&#34;项目简介&#34;&gt;&#xA;  项目简介&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#%e9%a1%b9%e7%9b%ae%e7%ae%80%e4%bb%8b&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;链接到标题&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;链接到标题&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;&lt;a href=&#34;https://github.com/2noise/ChatTTS&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;ChatTTS&lt;/a&gt; 是 2noise 团队开发的对话场景 TTS 模型，39.5k stars。&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;架构：GPT 自回归（非 VITS2）&lt;/li&gt;&#xA;&lt;li&gt;语言：中文、英文&lt;/li&gt;&#xA;&lt;li&gt;特点：token 级韵律控制（&lt;code&gt;[laugh]&lt;/code&gt;、&lt;code&gt;[uv_break]&lt;/code&gt;、&lt;code&gt;[lbreak]&lt;/code&gt;）&lt;/li&gt;&#xA;&lt;li&gt;协议：AGPL-3.0（代码）+ CC BY-NC 4.0（模型，仅限学术用途）&lt;/li&gt;&#xA;&lt;li&gt;维护：活跃，v0.2.5（2026.04）&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;部署方式&#34;&gt;&#xA;  部署方式&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#%e9%83%a8%e7%bd%b2%e6%96%b9%e5%bc%8f&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;链接到标题&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;链接到标题&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;基于 &lt;a href=&#34;https://github.com/jianchang512/ChatTTS-ui&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;jianchang512/ChatTTS-ui&lt;/a&gt; 构建，提供 Web UI 和 API。&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;git clone https://github.com/jianchang512/ChatTTS-ui.git&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;cd ChatTTS-ui&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;docker compose -f docker-compose.cpu.yaml up -d&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;模型从 ModelScope 自动下载，端口 9966。&lt;/p&gt;&#xA;&lt;h2 id=&#34;使用方式&#34;&gt;&#xA;  使用方式&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#%e4%bd%bf%e7%94%a8%e6%96%b9%e5%bc%8f&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;链接到标题&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;链接到标题&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Web UI 操作，支持中英文界面。核心参数：&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;code&gt;temperature&lt;/code&gt;：生成随机性&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;top_P&lt;/code&gt; / &lt;code&gt;top_K&lt;/code&gt;：采样参数&lt;/li&gt;&#xA;&lt;li&gt;&lt;code&gt;spk_emb&lt;/code&gt;：固定音色（可采样后复用）&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;高级用法支持 token 级控制：&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-python&#34; data-lang=&#34;python&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;params_refine_text &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; ChatTTS&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;Chat&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;RefineTextParams(&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    prompt&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;[oral_2][laugh_0][break_6]&amp;#39;&lt;/span&gt;,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;与-melotts-对比&#34;&gt;&#xA;  与 MeloTTS 对比&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#%e4%b8%8e-melotts-%e5%af%b9%e6%af%94&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;链接到标题&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;链接到标题&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;之前也部署过 MeloTTS（详见 &lt;a href=&#34;https://blog.ohtly.com/posts/2026-06-26-melotts-tts-deployment/&#34; &gt;MeloTTS 多语言 TTS 部署记录&lt;/a&gt;），两者对比：&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
