{"id":5809,"date":"2024-09-05T20:08:05","date_gmt":"2024-09-05T12:08:05","guid":{"rendered":"https:\/\/www.aisharenet.com\/?p=5809"},"modified":"2025-07-19T00:00:54","modified_gmt":"2025-07-18T16:00:54","slug":"chattts","status":"publish","type":"post","link":"https:\/\/www.kdjingpai.com\/en\/chattts\/","title":{"rendered":"ChatTTS\uff1a\u6a21\u4eff\u771f\u4eba\u8bf4\u8bdd\u58f0\u97f3\u7684\u8bed\u97f3\u751f\u6210\u6a21\u578b\uff08ChatTTS\u4e00\u952e\u52a0\u901f\u5305\uff09"},"content":{"rendered":"<p>ChatTTS \u662f\u4e00\u4e2a\u4e13\u4e3a\u5bf9\u8bdd\u573a\u666f\u8bbe\u8ba1\u7684\u751f\u6210\u8bed\u97f3\u6a21\u578b\u3002\u5b83\u80fd\u591f\u751f\u6210\u81ea\u7136\u4e14\u5bcc\u6709\u8868\u73b0\u529b\u7684\u8bed\u97f3\uff0c\u652f\u6301\u591a\u79cd\u8bed\u8a00\u548c\u591a\u4f4d\u8bf4\u8bdd\u8005\uff0c\u9002\u7528\u4e8e\u4e92\u52a8\u5bf9\u8bdd\u3002\u8be5\u6a21\u578b\u901a\u8fc7\u9884\u6d4b\u548c\u63a7\u5236\u7ec6\u7c92\u5ea6\u7684\u97f5\u5f8b\u7279\u5f81\uff0c\u5982\u7b11\u58f0\u3001\u505c\u987f\u548c\u63d2\u8bdd\uff0c\u8d85\u8d8a\u4e86\u5927\u591a\u6570\u5f00\u6e90\u7684\u8bed\u97f3\u5408\u6210\u6a21\u578b\u3002ChatTTS \u63d0\u4f9b\u9884\u8bad\u7ec3\u6a21\u578b\uff0c\u652f\u6301\u8fdb\u4e00\u6b65\u7684\u7814\u7a76\u548c\u5f00\u53d1\uff0c\u4e3b\u8981\u7528\u4e8e\u5b66\u672f\u76ee\u7684\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" title=\"ChatTTS\uff1a\u5bf9\u8bdd\u573a\u666f\u7684\u751f\u6210\u8bed\u97f3\u6a21\u578b-1\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/09\/c1256ebcb38bd84.jpg\" alt=\"ChatTTS\uff1a\u5bf9\u8bdd\u573a\u666f\u7684\u751f\u6210\u8bed\u97f3\u6a21\u578b-1\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" title=\"ChatTTS\uff1a\u5bf9\u8bdd\u573a\u666f\u7684\u751f\u6210\u8bed\u97f3\u6a21\u578b-1\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/09\/4908b7812f8c3a4.jpg\" alt=\"ChatTTS\uff1a\u5bf9\u8bdd\u573a\u666f\u7684\u751f\u6210\u8bed\u97f3\u6a21\u578b-1\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>\u529f\u80fd\u5217\u8868<\/h2>\n<ul>\n<li><strong>\u591a\u8bed\u8a00\u652f\u6301<\/strong>\uff1a\u652f\u6301\u4e2d\u6587\u548c\u82f1\u6587\uff0c\u672a\u6765\u5c06\u6269\u5c55\u66f4\u591a\u8bed\u8a00\u3002<\/li>\n<li><strong>\u591a\u8bf4\u8bdd\u8005\u652f\u6301<\/strong>\uff1a\u80fd\u591f\u751f\u6210\u591a\u4f4d\u8bf4\u8bdd\u8005\u7684\u8bed\u97f3\uff0c\u9002\u7528\u4e8e\u4e92\u52a8\u5bf9\u8bdd\u3002<\/li>\n<li><strong>\u7ec6\u7c92\u5ea6\u97f5\u5f8b\u63a7\u5236<\/strong>\uff1a\u53ef\u4ee5\u9884\u6d4b\u548c\u63a7\u5236\u7b11\u58f0\u3001\u505c\u987f\u548c\u63d2\u8bdd\u7b49\u97f5\u5f8b\u7279\u5f81\u3002<\/li>\n<li><strong>\u9884\u8bad\u7ec3\u6a21\u578b<\/strong>\uff1a\u63d0\u4f9b40,000\u5c0f\u65f6\u7684\u9884\u8bad\u7ec3\u6a21\u578b\uff0c\u652f\u6301\u8fdb\u4e00\u6b65\u7814\u7a76\u548c\u5f00\u53d1\u3002<\/li>\n<li><strong>\u5f00\u6e90\u4ee3\u7801<\/strong>\uff1a\u4ee3\u7801\u5728GitHub\u4e0a\u5f00\u6e90\uff0c\u4f9b\u5b66\u672f\u548c\u7814\u7a76\u4f7f\u7528\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>\u4f7f\u7528\u5e2e\u52a9<\/h2>\n<h3>\u5b89\u88c5\u6d41\u7a0b<\/h3>\n<ol>\n<li><strong>\u514b\u9686\u9879\u76ee\u4ee3\u7801<\/strong>\uff1a\n<pre><code>git clone https:\/\/github.com\/2noise\/ChatTTS.git\r\n<\/code><\/pre>\n<\/li>\n<li><strong>\u5b89\u88c5\u4f9d\u8d56<\/strong>\uff1a\n<pre><code>cd ChatTTS\r\npip install -r requirements.txt\r\n<\/code><\/pre>\n<\/li>\n<li><strong>\u4e0b\u8f7d\u9884\u8bad\u7ec3\u6a21\u578b<\/strong>\uff1a \u4eceHuggingFace\u6216ModelScope\u4e0b\u8f7d\u9884\u8bad\u7ec3\u6a21\u578b\uff0c\u5e76\u5c06\u5176\u653e\u7f6e\u5728\u6307\u5b9a\u76ee\u5f55\u3002<\/li>\n<\/ol>\n<h3>\u4f7f\u7528\u65b9\u6cd5<\/h3>\n<ol>\n<li><strong>\u52a0\u8f7d\u6a21\u578b<\/strong>\uff1a\n<pre><code>from chattts import ChatTTS\r\nmodel = ChatTTS.load_model('path\/to\/pretrained\/model')\r\n<\/code><\/pre>\n<\/li>\n<li><strong>\u751f\u6210\u8bed\u97f3<\/strong>\uff1a\n<pre><code>text = \"\u4f60\u597d\uff0c\u6b22\u8fce\u4f7f\u7528ChatTTS\uff01\"\r\naudio = model.synthesize(text)\r\n<\/code><\/pre>\n<\/li>\n<li><strong>\u4fdd\u5b58\u97f3\u9891\u6587\u4ef6<\/strong>\uff1a\n<pre><code>with open('output.wav', 'wb') as f:\r\nf.write(audio)\r\n<\/code><\/pre>\n<\/li>\n<\/ol>\n<h3>\u8be6\u7ec6\u529f\u80fd\u64cd\u4f5c<\/h3>\n<ul>\n<li><strong>\u6587\u672c\u8f93\u5165<\/strong>\uff1a\u652f\u6301\u4e2d\u6587\u548c\u82f1\u6587\u6df7\u6742\u7684\u6587\u672c\u8f93\u5165\u3002<\/li>\n<li><strong>\u97f5\u5f8b\u63a7\u5236<\/strong>\uff1a\u901a\u8fc7\u8bbe\u7f6e\u53c2\u6570\u63a7\u5236\u7b11\u58f0\u3001\u505c\u987f\u548c\u63d2\u8bdd\u7b49\u97f5\u5f8b\u7279\u5f81\u3002<\/li>\n<li><strong>\u97f3\u8272\u63a7\u5236<\/strong>\uff1a\u53ef\u4ee5\u901a\u8fc7\u9884\u8bbe\u7684\u97f3\u8272\u79cd\u5b50\u503c\u6216\u97f3\u8272\u7801\u63a7\u5236\u751f\u6210\u7684\u97f3\u8272\u3002<\/li>\n<li><strong>\u60c5\u611f\u63a7\u5236<\/strong>\uff1a\u901a\u8fc7\u8bbe\u7f6e\u60c5\u611f\u6ce2\u52a8\u6027\u548c\u76f8\u5173\u6027\u53c2\u6570\uff0c\u63a7\u5236\u751f\u6210\u8bed\u97f3\u7684\u60c5\u611f\u7279\u5f81\u3002<\/li>\n<li><strong>\u6d41\u5f0f\u8f93\u51fa<\/strong>\uff1a\u652f\u6301\u957f\u97f3\u9891\u751f\u6210\u548c\u5206\u89d2\u8272\u9605\u8bfb\uff0c\u9002\u7528\u4e8e\u590d\u6742\u5bf9\u8bdd\u573a\u666f\u3002<\/li>\n<\/ul>\n<h3>\u793a\u4f8b\u4ee3\u7801<\/h3>\n<pre><code>from chattts import ChatTTS\r\n# \u52a0\u8f7d\u6a21\u578b\r\nmodel = ChatTTS.load_model('path\/to\/pretrained\/model')\r\n# \u8bbe\u7f6e\u6587\u672c\u548c\u97f5\u5f8b\u53c2\u6570\r\ntext = \"\u4f60\u597d\uff0c\u6b22\u8fce\u4f7f\u7528ChatTTS\uff01\"\r\nparams = {\r\n'laugh': True,\r\n'pause': True,\r\n'interjection': True\r\n}\r\n# \u751f\u6210\u8bed\u97f3\r\naudio = model.synthesize(text, params)\r\n# \u4fdd\u5b58\u97f3\u9891\u6587\u4ef6\r\nwith open('output.wav', 'wb') as f:\r\nf.write(audio)\r\n<\/code><\/pre>\n<p>&nbsp;<\/p>\n<h2>ChatTTS \u5ba2\u6237\u7aef<\/h2>\n<h3>\u5feb\u901f\u4f53\u9a8c<\/h3>\n<table>\n<thead>\n<tr>\n<th>\u7f51\u5740<\/th>\n<th>\u7c7b\u578b<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td scope=\"row\"><a href=\"https:\/\/chattts.com\/#Demo\">Original Web<\/a><\/td>\n<td>\u539f\u7248\u7f51\u9875\u7248\u4f53\u9a8c<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\"><a href=\"https:\/\/huggingface.co\/spaces\/lenML\/ChatTTS-Forge\">Forge Web<\/a><\/td>\n<td>Forge \u589e\u5f3a\u7248\u4f53\u9a8c<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\"><a href=\"https:\/\/pypi.org\/project\/ChatTTS\/\">Linux<\/a><\/td>\n<td>Python \u5b89\u88c5\u5305<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\"><a href=\"http:\/\/ttslist.aiqbh.com\/\">Samples<\/a><\/td>\n<td>\u97f3\u8272\u79cd\u5b50\u793a\u4f8b<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\"><a href=\"http:\/\/region-9.autodl.pro:41137\/\">Cloning<\/a><\/td>\n<td>\u97f3\u8272\u514b\u9686\u4f53\u9a8c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h3>\u529f\u80fd\u589e\u5f3a<\/h3>\n<table>\n<thead>\n<tr>\n<th>\u9879\u76ee<\/th>\n<th>\u4eae\u70b9<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td scope=\"row\"><a href=\"https:\/\/github.com\/jianchang512\/ChatTTS-ui\">jianchang512\/ChatTTS-ui<\/a><\/td>\n<td>\u63d0\u4f9b API \u63a5\u53e3\uff0c\u53ef\u5728\u7b2c\u4e09\u65b9\u5e94\u7528\u4e2d\u8c03\u7528<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\"><a href=\"https:\/\/github.com\/6drf21e\/ChatTTS_colab\">6drf21e\/ChatTTS_colab<\/a><\/td>\n<td>\u63d0\u4f9b\u6d41\u5f0f\u8f93\u51fa\uff0c\u652f\u6301\u957f\u97f3\u9891\u751f\u6210\u548c\u5206\u89d2\u8272\u9605\u8bfb<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\"><a href=\"https:\/\/github.com\/lenML\/ChatTTS-Forge\">lenML\/ChatTTS-Forge<\/a><\/td>\n<td>\u63d0\u4f9b\u4eba\u58f0\u589e\u5f3a\u548c\u80cc\u666f\u964d\u566a\uff0c\u53ef\u4f7f\u7528\u9644\u52a0\u63d0\u793a\u8bcd<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\"><a href=\"https:\/\/github.com\/CCmahua\/ChatTTS-Enhanced\">CCmahua\/ChatTTS-Enhanced<\/a><\/td>\n<td>\u652f\u6301\u6587\u4ef6\u6279\u91cf\u5904\u7406\uff0c\u4ee5\u53ca\u5bfc\u51fa SRT \u6587\u4ef6<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\"><a href=\"https:\/\/github.com\/HKoon\/ChatTTS-OpenVoice\">HKoon\/ChatTTS-OpenVoice<\/a><\/td>\n<td>\u914d\u5408 <a href=\"https:\/\/www.kdjingpai.com\/en\/openvoice\/\">OpenVoice<\/a> \u8fdb\u884c\u58f0\u97f3\u514b\u9686<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h3>\u529f\u80fd\u6269\u5c55<\/h3>\n<table>\n<thead>\n<tr>\n<th>\u9879\u76ee<\/th>\n<th>\u4eae\u70b9<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td scope=\"row\"><a href=\"https:\/\/github.com\/6drf21e\/ChatTTS_Speaker\">6drf21e\/ChatTTS_Speaker<\/a><\/td>\n<td>\u97f3\u8272\u89d2\u8272\u6253\u6807\u4e0e\u7a33\u5b9a\u6027\u8bc4\u4f30<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\"><a href=\"https:\/\/github.com\/AIFSH\/ComfyUI-ChatTTS\">AIFSH\/ComfyUI-ChatTTS<\/a><\/td>\n<td><a href=\"https:\/\/www.kdjingpai.com\/en\/comfyui\/\">ComfyUi<\/a> \u7248\u672c\uff0c\u53ef\u4f5c\u4e3a\u5de5\u4f5c\u6d41\u8282\u70b9\u5f15\u5165<\/td>\n<\/tr>\n<tr>\n<td scope=\"row\"><a href=\"https:\/\/github.com\/MaterialShadow\/ChatTTS-manager\">MaterialShadow\/ChatTTS-manager<\/a><\/td>\n<td>\u63d0\u4f9b\u4e86\u97f3\u8272\u7ba1\u7406\u7cfb\u7edf\u548c WebUI \u754c\u9762<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h2>ChatTTSPlus\u52a0\u901f\u7248\u4e00\u952e\u5b89\u88c5\u5305<\/h2>\n<p>ChatTTSPlus\u662fChatTTS\u7684\u6269\u5c55\u7248\u672c\uff0c\u5b83\u5728\u539f\u6709\u7684\u57fa\u7840\u4e0a\u589e\u52a0\u4e86TensorRT\u52a0\u901f\u3001\u8bed\u97f3\u514b\u9686\u548c\u79fb\u52a8\u7aef\u6a21\u578b\u90e8\u7f72\u7b49\u529f\u80fd\u3002\u8be5\u9879\u76ee\u4f7f\u7528\u65b9\u4fbf\uff0c\u63d0\u4f9bWindows\u4e00\u952e\u5b89\u88c5\u5305\uff0c\u5e76\u901a\u8fc7TensorRT\u5b9e\u73b0\u4e86\u8d85\u8fc73\u500d\u7684\u6027\u80fd\u63d0\u5347(\u5728Windows 3060 GPU\u4e0a\uff0c\u4ece28 tokens\/s\u63d0\u5347\u5230110 tokens\/s)\u3002 \u5b83\u652f\u6301\u4f7f\u7528LoRA\u8fdb\u884c\u8bed\u97f3\u514b\u9686\uff0c\u5e76\u6b63\u5728\u5f00\u53d1\u6a21\u578b\u538b\u7f29\u548c\u52a0\u901f\u6280\u672f\u4ee5\u5b9e\u73b0\u79fb\u52a8\u7aef\u90e8\u7f72\u3002ChatTTSPlus\u662f\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u4e14\u6613\u4e8e\u4f7f\u7528\u7684\u8bed\u97f3\u5408\u6210\u5de5\u5177\uff0c\u9002\u7528\u4e8e\u591a\u79cd\u573a\u666f\uff0c\u5c24\u5176\u5728\u9700\u8981\u9ad8\u6027\u80fd\u548c\u8bed\u97f3\u514b\u9686\u529f\u80fd\u7684\u5e94\u7528\u4e2d\u5177\u6709\u4f18\u52bf\u3002<\/p>\n<p>\u5730\u5740\uff1ahttps:\/\/github.com\/warmshao\/ChatTTSPlus<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ChatTTS \u662f\u4e00\u4e2a\u4e13\u4e3a\u5bf9\u8bdd\u573a\u666f\u8bbe\u8ba1\u7684\u751f\u6210\u8bed\u97f3\u6a21\u578b\u3002\u5b83\u80fd\u591f\u751f\u6210\u81ea\u7136\u4e14\u5bcc\u6709\u8868\u73b0\u529b\u7684\u8bed\u97f3\uff0c\u652f\u6301\u591a\u79cd\u8bed\u8a00\u548c\u591a\u4f4d\u8bf4\u8bdd\u8005\uff0c\u9002\u7528\u4e8e\u4e92\u52a8\u5bf9\u8bdd\u3002\u8be5\u6a21\u578b\u901a\u8fc7\u9884\u6d4b\u548c\u63a7\u5236\u7ec6\u7c92\u5ea6\u7684\u97f5\u5f8b\u7279\u5f81\uff0c\u5982\u7b11\u58f0\u3001\u505c\u987f\u548c\u63d2\u8bdd\uff0c\u8d85\u8d8a\u4e86\u5927\u591a\u6570\u5f00\u6e90\u7684\u8bed\u97f3\u5408\u6210\u6a21\u578b\u3002ChatTTS \u63d0\u4f9b&#8230;<\/p>\n","protected":false},"author":1,"featured_media":60971,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,416,479],"tags":[230,215],"class_list":["post-5809","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tool","category-ai-audio","category-text-to-speech","tag-aikaiyuanxiangmu","tag-aiwenbenzhuanyuyin"],"_links":{"self":[{"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/posts\/5809","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/comments?post=5809"}],"version-history":[{"count":0,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/posts\/5809\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/media\/60971"}],"wp:attachment":[{"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/media?parent=5809"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/categories?post=5809"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/en\/wp-json\/wp\/v2\/tags?post=5809"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}