{"id":607,"date":"2024-08-16T15:51:53","date_gmt":"2024-08-16T07:51:53","guid":{"rendered":"https:\/\/yanghaixiong.com\/?p=607"},"modified":"2025-01-17T06:57:33","modified_gmt":"2025-01-16T22:57:33","slug":"aigc-%e5%ae%9e%e6%88%98%ef%bc%88%e7%8e%af%e5%a2%83%e7%af%87%ef%bc%89-debian%e5%ae%89%e8%a3%85chattts","status":"publish","type":"post","link":"https:\/\/yanghaixiong.com\/blog\/aigc\/607\/","title":{"rendered":"AIGC \u5b9e\u6218\uff08\u73af\u5883\u7bc7\uff09- Debian\u5b89\u88c5Chattts"},"content":{"rendered":"\n
conda \u73af\u5883\u7684\u521b\u5efa\u3001\u67e5\u770b\u3001\u5220\u9664\uff0c\u8bf7\u67e5\u770b\uff1a[[coda\u521b\u5efa\u3001\u67e5\u770b\u3001\u5220\u9664\u865a\u62df\u73af\u5883]]<\/p>\n
ChatTTS \u662f\u4e00\u6b3e\u4e13\u95e8\u4e3a\u5bf9\u8bdd\u573a\u666f\uff08\u4f8b\u5982 LLM \u52a9\u624b\uff09\u8bbe\u8ba1\u7684\u6587\u672c\u8f6c\u8bed\u97f3\u6a21\u578b\u3002<\/p>\n
\n \u4f60\u53ef\u4ee5\u53c2\u8003\u00a0Bilibili<\/a><\/strong>\u00a0\u4e0a\u7684\u8fd9\u4e2a\u89c6\u9891\uff0c\u4e86\u89e3\u672c\u9879\u76ee\u7684\u8be6\u7ec6\u60c5\u51b5\u3002\n<\/p><\/blockquote>\n
\n
- \u5bf9\u8bdd\u5f0f TTS<\/strong>: ChatTTS \u9488\u5bf9\u5bf9\u8bdd\u5f0f\u4efb\u52a1\u8fdb\u884c\u4e86\u4f18\u5316\uff0c\u80fd\u591f\u5b9e\u73b0\u81ea\u7136\u4e14\u5bcc\u6709\u8868\u73b0\u529b\u7684\u5408\u6210\u8bed\u97f3\u3002\u5b83\u652f\u6301\u591a\u4e2a\u8bf4\u8bdd\u8005\uff0c\u4fbf\u4e8e\u751f\u6210\u4e92\u52a8\u5f0f\u5bf9\u8bdd\u3002<\/li>\n
- \u7cbe\u7ec6\u7684\u63a7\u5236<\/strong>: \u8be5\u6a21\u578b\u53ef\u4ee5\u9884\u6d4b\u548c\u63a7\u5236\u7cbe\u7ec6\u7684\u97f5\u5f8b\u7279\u5f81\uff0c\u5305\u62ec\u7b11\u58f0\u3001\u505c\u987f\u548c\u63d2\u5165\u8bed\u3002<\/li>\n
- \u66f4\u597d\u7684\u97f5\u5f8b<\/strong>: ChatTTS \u5728\u97f5\u5f8b\u65b9\u9762\u8d85\u8d8a\u4e86\u5927\u591a\u6570\u5f00\u6e90 TTS \u6a21\u578b\u3002\u6211\u4eec\u63d0\u4f9b\u9884\u8bad\u7ec3\u6a21\u578b\u4ee5\u652f\u6301\u8fdb\u4e00\u6b65\u7684\u7814\u7a76\u548c\u5f00\u53d1\u3002<\/li>\n<\/ol>\n
\u6570\u636e\u96c6\u548c\u6a21\u578b<\/h3>\n
\n
- \u4e3b\u6a21\u578b\u4f7f\u7528\u4e86 100,000+ \u5c0f\u65f6\u7684\u4e2d\u6587\u548c\u82f1\u6587\u97f3\u9891\u6570\u636e\u8fdb\u884c\u8bad\u7ec3\u3002<\/li>\n
- HuggingFace<\/a><\/strong>\u00a0\u4e0a\u7684\u5f00\u6e90\u7248\u672c\u662f\u4e00\u4e2a\u5728 40,000 \u5c0f\u65f6\u6570\u636e\u4e0a\u8fdb\u884c\u65e0\u76d1\u7763\u5fae\u8c03\u7684\u9884\u8bad\u7ec3\u6a21\u578b\u3002<\/li>\n<\/ul>\n
\u8def\u7ebf\u56fe<\/h3>\n
\n
- \u00a0\u5f00\u6e90 4 \u4e07\u5c0f\u65f6\u57fa\u7840\u6a21\u578b\u548c spk_stats \u6587\u4ef6\u3002<\/li>\n
- \u00a0\u652f\u6301\u6d41\u5f0f\u8bed\u97f3\u8f93\u51fa\u3002<\/li>\n
- \u00a0\u5f00\u6e90\u5177\u6709\u591a\u60c5\u611f\u63a7\u5236\u529f\u80fd\u7684 4 \u4e07\u5c0f\u65f6\u7248\u672c\u3002<\/li>\n
- \u00a0ChatTTS.cpp (\u6b22\u8fce\u5728 2noise \u7ec4\u7ec7\u4e2d\u65b0\u5efa\u4ed3\u5e93)\u3002<\/p>\n<\/li>\n
- \n
\u5b98\u7f51\u7f51\u5740\uff1aChatTTS: Text-to-Speech For Chat<\/a><\/p>\n<\/li>\n
- Github\uff1aChatTTS\/docs\/cn\/README.md at main \u00b7 2noise\/ChatTTS \u00b7 GitHub<\/a><\/li>\n<\/ul>\n
\u5b89\u88c5<\/h2>\n
\u514b\u9686\u4ed3\u5e93<\/h3>\n
git clone https:\/\/github.com\/2noise\/ChatTTS\ncd ChatTTS\n<\/code><\/pre>\n
\u5b89\u88c5\u4f9d\u8d56<\/h3>\n
1. \u76f4\u63a5\u5b89\u88c5<\/h4>\n
pip install --upgrade -r requirements.txt\n<\/code><\/pre>\n
2. \u4f7f\u7528 conda \u5b89\u88c5<\/h4>\n
conda create -n chattts\nconda activate chattts\npip install -r requirements.txt\n<\/code><\/pre>\n
\u53ef\u9009 : \u5982\u679c\u4f7f\u7528 NVIDIA GPU\uff08\u4ec5\u9650 Linux\uff09\uff0c\u53ef\u5b89\u88c5 TransformerEngine\u3002<\/h4>\n
\u5b89\u88c5\u8fc7\u7a0b\u53ef\u80fd\u8017\u65f6\u5f88\u957f\u3002<\/p>\n
TransformerEngine \u7684\u9002\u914d\u76ee\u524d\u6b63\u5728\u5f00\u53d1\u4e2d\uff0c\u8fd0\u884c\u65f6\u53ef\u80fd\u4f1a\u9047\u5230\u8f83\u591a\u95ee\u9898\u3002\u4ec5\u63a8\u8350\u51fa\u4e8e\u5f00\u53d1\u76ee\u7684\u5b89\u88c5\u3002<\/p>\n
pip install git+https:\/\/github.com\/NVIDIA\/TransformerEngine.git@stable\n<\/code><\/pre>\n
\u53ef\u9009 : \u5b89\u88c5 FlashAttention-2 (\u4e3b\u8981\u9002\u7528\u4e8e NVIDIA GPU)<\/h4>\n