{"id":775,"date":"2026-08-12T20:01:37","date_gmt":"2026-08-12T12:01:37","guid":{"rendered":"http:\/\/www.tantan.ink\/index.php\/2026\/08\/12\/100m-%e5%8f%82%e6%95%b0%e7%9a%84-tts%ef%bc%8cmac-cpu-%e4%b8%8a%e8%b7%91%e5%be%97%e6%af%94%e5%ae%9e%e6%97%b6%e8%bf%98%e5%bf%ab\/"},"modified":"2026-08-12T20:01:37","modified_gmt":"2026-08-12T12:01:37","slug":"100m-%e5%8f%82%e6%95%b0%e7%9a%84-tts%ef%bc%8cmac-cpu-%e4%b8%8a%e8%b7%91%e5%be%97%e6%af%94%e5%ae%9e%e6%97%b6%e8%bf%98%e5%bf%ab","status":"publish","type":"post","link":"https:\/\/www.tantan.ink\/index.php\/2026\/08\/12\/100m-%e5%8f%82%e6%95%b0%e7%9a%84-tts%ef%bc%8cmac-cpu-%e4%b8%8a%e8%b7%91%e5%be%97%e6%af%94%e5%ae%9e%e6%97%b6%e8%bf%98%e5%bf%ab\/","title":{"rendered":"100M \u53c2\u6570\u7684 TTS\uff0cMac CPU \u4e0a\u8dd1\u5f97\u6bd4\u5b9e\u65f6\u8fd8\u5feb"},"content":{"rendered":"<p>\u6211\u7ed9 Home Assistant \u627e\u672c\u5730\u8bed\u97f3\u901a\u77e5\u65b9\u6848\u65f6\uff0c\u7ed5\u4e86\u4e00\u5708\u53c8\u56de\u5230 Kyutai\u3002\u4e4b\u524d\u7528\u8fc7\u4ed6\u4eec\u7684 Moshi\uff0c\u597d\u542c\u4f46\u5403\u663e\u5361\uff1b\u8fd9\u6b21\u53d1\u5e03\u7684 Pocket TTS \u53cd\u7740\u6765\u2014\u2014<strong>100M \u53c2\u6570\uff0c\u7eaf CPU \u8dd1\uff0cMacBook Air M4 \u4e0a 6 \u500d\u5b9e\u65f6<\/strong>\u3002\u6211\u5728 16GB \u5c0f\u4e3b\u673a\u4e0a\u8bd5\u4e86\u4e0b\uff0c\u7ed3\u8bba\u662f\uff1a\u82f1\u6587\u573a\u666f\u53ef\u4ee5\u7528\u4e86\uff0c\u4e2d\u6587\u518d\u7b49\u7b49\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1400\" height=\"900\" class=\"wp-image-772 size-full\" src=\"https:\/\/www.tantan.ink\/wp-content\/uploads\/2026\/08\/pocket-tts-github.png\" alt=\"\" srcset=\"https:\/\/www.tantan.ink\/wp-content\/uploads\/2026\/08\/pocket-tts-github.png 1400w, https:\/\/www.tantan.ink\/wp-content\/uploads\/2026\/08\/pocket-tts-github-300x193.png 300w, https:\/\/www.tantan.ink\/wp-content\/uploads\/2026\/08\/pocket-tts-github-1024x658.png 1024w, https:\/\/www.tantan.ink\/wp-content\/uploads\/2026\/08\/pocket-tts-github-768x494.png 768w\" sizes=\"auto, (max-width: 1400px) 100vw, 1400px\" \/><\/p>\n<h2>\u4e3a\u4ec0\u4e48\u9009\u5b83<\/h2>\n<p>\u672c\u5730 TTS \u6211\u6298\u817e\u8fc7\u597d\u51e0\u6761\u8def\u7ebf\uff1aKokoro-82M \u5feb\u4f46\u97f3\u8272\u56fa\u5b9a\uff0cGPT-SoVITS \u514b\u9686\u5f3a\u4f46\u914d\u7f6e\u91cd\uff0c\u4e91\u7aef API \u7701\u5fc3\u5374\u6309\u5b57\u6263\u8d39\u3002Pocket TTS \u7684\u5356\u70b9\u5f88\u76f4\u63a5\uff1a<\/p>\n<ul>\n<li>100M \u53c2\u6570\uff0c\u6a21\u578b\u5c0f\u5230\u80fd\u585e\u8fdb\u6d4f\u89c8\u5668 WASM\uff1b<\/li>\n<li>\u4e0d\u9700\u8981 GPU\uff0cPyTorch CPU \u7248\u5c31\u884c\uff1b<\/li>\n<li>\u96f6\u6837\u672c\u58f0\u97f3\u514b\u9686\uff0c5 \u79d2\u53c2\u8003\u97f3\u9891\u5c31\u591f\u4e86\uff1b<\/li>\n<li>\u6d41\u5f0f\u8f93\u51fa\uff0c\u9996\u5305\u5ef6\u8fdf\u7ea6 200ms\u3002<\/li>\n<\/ul>\n<p>\u8fd9\u5b9a\u4f4d\u4e0d\u662f\u8ffd SOTA \u97f3\u8d28\uff0c\u800c\u662f\u628a&#8221;\u80fd\u7528&#8221;\u7684\u8bed\u97f3\u5408\u6210\u642c\u5230\u8fb9\u7f18\u8bbe\u5907\u4e0a\u3002\u5bf9\u6211\u6765\u8bf4\uff0cNAS \u6216\u7b14\u8bb0\u672c\u80fd\u8dd1\u3001\u4e0d\u4f9d\u8d56\u5916\u7f51\u3001\u4e0d\u6cc4\u9732\u6587\u672c\u5185\u5bb9\uff0c\u4f18\u5148\u7ea7\u6bd4 99% \u50cf\u771f\u4eba\u66f4\u9ad8\u3002<\/p>\n<h2>\u5b89\u88c5\u6bd4\u60f3\u8c61\u4e2d\u8f7b<\/h2>\n<p>\u5b98\u65b9\u652f\u6301 Python 3.10 \u5230 3.14\uff0c\u6211\u7528 uv \u88c5\uff1a<\/p>\n<pre><code>uv pip install pocket-tts\npocket-tts generate --text \"Hello from a local model.\" --voice alba<\/code><\/pre>\n<p>\u7b2c\u4e00\u6b21\u4f1a\u4e0b\u8f7d\u6a21\u578b\u548c\u9ed8\u8ba4\u97f3\u8272\uff0c\u4e4b\u540e\u5c31\u80fd\u79bb\u7ebf\u8dd1\u3002\u6ca1\u6709 CUDA \u4f9d\u8d56\uff0c\u4e0d\u9700\u8981\u6539\u4efb\u4f55\u73af\u5883\u53d8\u91cf\uff0c\u8fd9\u70b9\u6bd4\u5927\u591a\u6570 TTS \u4ed3\u5e93\u7701\u5fc3\u3002<\/p>\n<p>\u751f\u6210\u4e00\u6bb5 10 \u79d2\u5de6\u53f3\u7684\u82f1\u6587\uff0c\u5728\u6211\u7684\u673a\u5668\u4e0a\u8017\u65f6\u4e0d\u5230 2 \u79d2\u3002\u5b98\u65b9\u6570\u636e\u662f MacBook Air M4 \u4e0a\u7ea6 6 \u500d\u5b9e\u65f6\u3001\u53ea\u5403 2 \u4e2a CPU \u6838\u5fc3\uff0c\u5b9e\u6d4b\u57fa\u672c\u543b\u5408\u3002<\/p>\n<h2>\u58f0\u97f3\u514b\u9686\u662f\u4eae\u70b9<\/h2>\n<p>Pocket TTS \u7684\u514b\u9686\u4e0d\u662f\u5fae\u8c03\uff0c\u800c\u662f\u628a\u53c2\u8003\u97f3\u9891\u7f16\u7801\u6210\u4e00\u4e2a&#8221;\u58f0\u97f3\u72b6\u6001&#8221;\uff08voice state\uff09\uff0c\u540e\u7eed\u63a8\u7406\u76f4\u63a5\u590d\u7528\u3002\u6d41\u7a0b\u5927\u6982\u8fd9\u6837\uff1a<\/p>\n<pre><code>pocket-tts export-voice --audio my_voice.wav --output my_voice.safetensors\npocket-tts generate --text \"This sounds like me.\" --voice my_voice.safetensors<\/code><\/pre>\n<p>\u5bfc\u51fa\u7684 safetensors \u6587\u4ef6\u5f88\u5c0f\uff0c\u52a0\u8f7d\u6beb\u79d2\u7ea7\u3002\u6211\u8bd5\u4e86 5 \u79d2\u81ea\u5df1\u7684\u5f55\u97f3\uff0c\u76f8\u4f3c\u5ea6\u8c08\u4e0d\u4e0a\u4ee5\u5047\u4e71\u771f\uff0c\u4f46\u8bed\u8c03\u8282\u594f\u5df2\u7ecf\u80fd\u5bf9\u5f97\u4e0a\u3002\u6837\u672c\u8d28\u91cf\u5f71\u54cd\u5f88\u5927\uff1a\u5e95\u566a\u591a\u6216\u6df7\u54cd\u91cd\u7684\u97f3\u9891\uff0c\u514b\u9686\u51fa\u6765\u4e5f\u4f1a\u5e26\u7740\u90a3\u80a1&#8221;\u810f&#8221;\u5473\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1400\" height=\"900\" class=\"wp-image-773 size-full\" src=\"https:\/\/www.tantan.ink\/wp-content\/uploads\/2026\/08\/pocket-tts-demo.png\" alt=\"\" srcset=\"https:\/\/www.tantan.ink\/wp-content\/uploads\/2026\/08\/pocket-tts-demo.png 1400w, https:\/\/www.tantan.ink\/wp-content\/uploads\/2026\/08\/pocket-tts-demo-300x193.png 300w, https:\/\/www.tantan.ink\/wp-content\/uploads\/2026\/08\/pocket-tts-demo-1024x658.png 1024w, https:\/\/www.tantan.ink\/wp-content\/uploads\/2026\/08\/pocket-tts-demo-768x494.png 768w\" sizes=\"auto, (max-width: 1400px) 100vw, 1400px\" \/><\/p>\n<h2>\u672c\u5730 API \u6a21\u5f0f<\/h2>\n<p>\u9664\u4e86 CLI\uff0c\u5b83\u8fd8\u5e26\u4e00\u4e2a <code>serve<\/code> \u547d\u4ee4\uff0c\u628a\u6a21\u578b\u5e38\u9a7b\u5185\u5b58\uff0c\u66b4\u9732\u4e00\u4e2a\u63a5\u8fd1 OpenAI \u683c\u5f0f\u7684 HTTP \u7aef\u70b9\uff1a<\/p>\n<pre><code>pocket-tts serve --host 0.0.0.0 --port 8000<\/code><\/pre>\n<p>\u8fd9\u6837 Home Assistant\u3001Node-RED \u6216\u8005\u5176\u4ed6\u811a\u672c\u90fd\u80fd\u76f4\u63a5 POST \u6587\u672c\u8fc7\u6765\u53d6\u97f3\u9891\u3002\u4e0d\u9700\u8981\u81ea\u5df1\u5199\u6a21\u578b\u52a0\u8f7d\u548c\u7f13\u5b58\u903b\u8f91\uff0c\u5bf9\u5c0f\u89c4\u6a21\u90e8\u7f72\u5f88\u53cb\u597d\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"900\" height=\"560\" class=\"wp-image-774 size-full\" src=\"https:\/\/www.tantan.ink\/wp-content\/uploads\/2026\/08\/pocket-tts-serve.png\" alt=\"\" srcset=\"https:\/\/www.tantan.ink\/wp-content\/uploads\/2026\/08\/pocket-tts-serve.png 900w, https:\/\/www.tantan.ink\/wp-content\/uploads\/2026\/08\/pocket-tts-serve-300x187.png 300w, https:\/\/www.tantan.ink\/wp-content\/uploads\/2026\/08\/pocket-tts-serve-768x478.png 768w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/p>\n<h2>\u51e0\u4e2a\u5b9e\u5b9e\u5728\u5728\u7684\u5751<\/h2>\n<p>\u522b\u5149\u770b\u5ba3\u4f20\uff0c\u5b9e\u9645\u95ee\u9898\u6211\u5217\u4e00\u4e0b\uff1a<\/p>\n<ul>\n<li><strong>\u6ca1\u6709\u4e2d\u6587\u3002<\/strong> \u76ee\u524d\u53ea\u652f\u6301\u82f1\u3001\u6cd5\u3001\u5fb7\u3001\u897f\u3001\u8461\u3001\u610f\u516d\u79cd\u8bed\u8a00\u3002\u4e2d\u6587\u3001\u65e5\u6587\u3001\u97e9\u6587\u90fd\u8fd8\u6ca1\u6392\u4e0a\uff0c\u60f3\u7528\u6765\u770b\u4e2d\u6587\u901a\u77e5\u7684\u76f4\u63a5\u529d\u9000\u3002<\/li>\n<li><strong>GPU \u4e0d\u52a0\u901f\u3002<\/strong> \u56e0\u4e3a\u5b83\u6309 batch_size=1 \u6d41\u5f0f\u751f\u6210\uff0c\u5b98\u65b9\u6d4b\u8bd5\u5728 Apple Silicon \u4e0a GPU \u6ca1\u4f18\u52bf\uff1bCUDA \u4e0a\u4e5f\u53ea\u6709\u7ea6 2.6 \u500d\u63d0\u5347\u3002\u522b\u4e3a\u4e86\u5b83\u4e13\u95e8\u5f00\u663e\u5361\u3002<\/li>\n<li><strong>int8 \u91cf\u5316\u4ec5\u9650 CPU\u3002<\/strong> \u60f3\u5728 CUDA \u4e0a\u8dd1\u91cf\u5316\u4f1a\u76f4\u63a5\u62a5\u9519\uff0c\u8fd9\u70b9\u6587\u6863\u91cc\u5199\u5f97\u4e0d\u663e\u773c\u3002<\/li>\n<li><strong>\u4e0d\u80fd\u63d2\u505c\u987f\u3002<\/strong> \u6587\u672c\u91cc\u6ca1\u6cd5\u901a\u8fc7\u6807\u70b9\u6216\u7279\u6b8a\u6807\u8bb0\u63a7\u5236 silence \u957f\u5ea6\uff0c\u957f\u53e5\u4e00\u53e3\u6c14\u5ff5\u5b8c\uff0c\u505a\u64ad\u5ba2\u8fd8\u5f97\u540e\u671f\u5207\u3002<\/li>\n<li><strong>\u97f3\u8272\u6388\u6743\u6709\u8bb2\u7a76\u3002<\/strong> \u4ee3\u7801\u662f MIT\uff0c\u4f46\u9884\u7f6e\u97f3\u8272\u7684\u6388\u6743\u6bcf\u5f20 voice card \u5355\u72ec\u5199\uff0c\u5546\u7528\u524d\u5148\u6838\u5bf9\u3002<\/li>\n<\/ul>\n<h2>\u6211\u7684\u5224\u65ad<\/h2>\n<p>Pocket TTS \u4e0d\u662f\u90a3\u79cd&#8221;\u66ff\u4ee3 ElevenLabs&#8221;\u7684\u65b9\u6848\uff0c\u4f46\u5b83\u5728&#8221;\u672c\u5730\u3001\u4f4e\u8d44\u6e90\u3001\u53ef\u514b\u9686&#8221;\u8fd9\u4e2a\u4e09\u89d2\u91cc\u627e\u5230\u4e86\u8212\u670d\u7684\u4f4d\u7f6e\u3002\u82f1\u6587\u901a\u77e5\u3001\u6709\u58f0\u8bfb\u7269\u3001\u6e38\u620f\u914d\u97f3\u3001IoT \u8bed\u97f3\u53cd\u9988\uff0c\u8fd9\u4e9b\u573a\u666f\u5b83\u90fd\u80fd\u80dc\u4efb\u3002\u4e2d\u6587\u652f\u6301\u51fa\u6765\u4e4b\u524d\uff0c\u6211\u4f1a\u5148\u628a\u5b83\u63a5\u8fdb\u82f1\u6587\u81ea\u52a8\u5316\u6d41\u7a0b\u91cc\u3002<\/p>\n<p>\u5982\u679c\u4f60\u4e5f\u5728\u627e\u4e00\u6761\u4e0d\u82b1\u94b1\u3001\u4e0d\u4e0a\u4e91\u7684 TTS \u94fe\u8def\uff0c\u53ef\u4ee5\u5148\u52a0\u8fdb\u5019\u9009\u540d\u5355\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u7ed9 Home Assistant \u627e\u672c\u5730\u8bed\u97f3\u901a\u77e5\u65b9\u6848\u65f6\uff0c\u7ed5\u4e86\u4e00\u5708\u53c8\u56de\u5230 Kyutai\u3002\u4e4b\u524d\u7528\u8fc7\u4ed6\u4eec\u7684 Mos &#8230; <a title=\"100M \u53c2\u6570\u7684 TTS\uff0cMac CPU \u4e0a\u8dd1\u5f97\u6bd4\u5b9e\u65f6\u8fd8\u5feb\" class=\"read-more\" href=\"https:\/\/www.tantan.ink\/index.php\/2026\/08\/12\/100m-%e5%8f%82%e6%95%b0%e7%9a%84-tts%ef%bc%8cmac-cpu-%e4%b8%8a%e8%b7%91%e5%be%97%e6%af%94%e5%ae%9e%e6%97%b6%e8%bf%98%e5%bf%ab\/\" aria-label=\"\u9605\u8bfb 100M \u53c2\u6570\u7684 TTS\uff0cMac CPU \u4e0a\u8dd1\u5f97\u6bd4\u5b9e\u65f6\u8fd8\u5feb\">\u9605\u8bfb\u66f4\u591a<\/a><\/p>\n","protected":false},"author":2,"featured_media":772,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,176],"tags":[],"class_list":["post-775","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai","category-hands-on"],"_links":{"self":[{"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/posts\/775","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/comments?post=775"}],"version-history":[{"count":0,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/posts\/775\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/media\/772"}],"wp:attachment":[{"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/media?parent=775"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/categories?post=775"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/tags?post=775"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}