[{"data":1,"prerenderedAt":250},["ShallowReactive",2],{"\u002F2026-02-04-qwen-tts-comfyui-note":3},{"id":4,"title":5,"body":6,"date":235,"description":12,"extension":236,"meta":237,"navigation":243,"path":244,"seo":245,"stem":246,"tags":247,"__hash__":249},"blogs\u002F_legacy\u002F2026\u002F2026-02-04-qwen-tts-comfyui-note.md","ComfyUI中使用Qwen3-tts记录",{"type":7,"value":8,"toc":223},"minimark",[9,13,16,19,36,41,50,55,63,79,82,91,94,100,103,112,115,122,126,133,137,140,149,152,155,160,163,166,175,178,189,192,201,204,207,216,219],[10,11,12],"p",{},"Qwen3-tts这个模型，据说效果不错，于是试着安装了下。",[10,14,15],{},"使用设备4060Ti，8GB显存。",[10,17,18],{},"版本信息:",[20,21,22,26],"ul",{},[23,24,25],"li",{},"ComfyUI 0.12.0",[23,27,28,29],{},"flybirdxx\u002FComfyUI-Qwen-TTS ",[30,31,35],"a",{"href":32,"rel":33},"https:\u002F\u002Fgithub.com\u002Fflybirdxx\u002FComfyUI-Qwen-TTS\u002Fcommit\u002Fbebdd5bdd8345aaafc35c96dab47a6db22514fe3",[34],"nofollow","Commits on Jan 29, 2026",[37,38,40],"h2",{"id":39},"comfyui","ComfyUI",[10,42,43,44,49],{},"ComfyUI使用的是官方的ComfyUI_windows_portable版本，在",[30,45,48],{"href":46,"rel":47},"https:\u002F\u002Fgithub.com\u002FComfy-Org\u002FComfyUI",[34],"ComfyUI官方库","的Release中可以找到。这个版本的依赖库是装好的，可以减少很多麻烦。用Desktop Application版本应该也是可以的，但是之前不知道点了什么功能，不小心把环境搞坏了，就换了portable的版本手动操作了。",[51,52,54],"h3",{"id":53},"custom-node安装","Custom node安装",[10,56,57,58,62],{},"Portable版本可以很方便自己手动安装，在安装前在powershell中先调整python环境，让python.exe指向portable中嵌入的版本即可。例如，我是解包在",[59,60,61],"code",{},"F:\\ComfyUI_windows_portable\\","，那么先执行以下指令，临时修改env便可：",[64,65,70],"pre",{"className":66,"code":67,"language":68,"meta":69,"style":69},"language-shell shiki shiki-themes github-light-high-contrast github-dark monokai","$env:PATH = \"F:\\ComfyUI_windows_portable\\python_embeded;\" + $env:PATH\n","shell","",[59,71,72],{"__ignoreMap":69},[73,74,77],"span",{"class":75,"line":76},"line",1,[73,78,67],{},[10,80,81],{},"修改后执行",[64,83,85],{"className":66,"code":84,"language":68,"meta":69,"style":69},"python -m pip --version\n",[59,86,87],{"__ignoreMap":69},[73,88,89],{"class":75,"line":76},[73,90,84],{},[10,92,93],{},"查看输出以确保当前powershell环境正确设置：",[95,96,97],"blockquote",{},[10,98,99],{},"pip 26.0 from F:\\ComfyUI_windows_portable\\python_embeded\\Lib\\site-packages\\pip (python 3.12)",[10,101,102],{},"不过需要留意，这样执行之后pip不会直接修改，需要使用",[64,104,106],{"className":66,"code":105,"language":68,"meta":69,"style":69},"python.exe -m pip install -r .\\requirements.txt\n",[59,107,108],{"__ignoreMap":69},[73,109,110],{"class":75,"line":76},[73,111,105],{},[10,113,114],{},"来安装python包，而不是直接执行pip。",[10,116,117,118,121],{},"之后",[59,119,120],{},"cd .\\ComfyUI\\custom_nodes\\","切换到目录执行各个自定义节点提供的安装步骤即可。",[37,123,125],{"id":124},"comfyui-qwen-tts","ComfyUI-Qwen-TTS",[10,127,128,129],{},"这个在节点管理器里面有好几个，目前用的是这个版本：",[30,130,125],{"href":131,"rel":132},"https:\u002F\u002Fgithub.com\u002Fflybirdxx\u002FComfyUI-Qwen-TTS",[34],[51,134,136],{"id":135},"huggingface镜像设置","Huggingface镜像设置",[10,138,139],{},"使用这个插件的节点会自动下载模型，由于是huggingface的地址，如果有访问问题可以在执行ComfyUI前设置镜像地址",[64,141,143],{"className":66,"code":142,"language":68,"meta":69,"style":69},"$env:HF_ENDPOINT = \"https:\u002F\u002Fhf-mirror.com\"\n",[59,144,145],{"__ignoreMap":69},[73,146,147],{"class":75,"line":76},[73,148,142],{},[51,150,151],{"id":151},"pad_token_id问题",[10,153,154],{},"执行节点时报错",[95,156,157],{},[10,158,159],{},"'Qwen3TTSTalkerConfig' object has no attribute 'pad_token_id'",[10,161,162],{},"这个问题在Github上有，最终解决方案是降级transformers",[10,164,165],{},"可以先检查当前版本",[64,167,169],{"className":66,"code":168,"language":68,"meta":69,"style":69},"python -m pip show transformers\n",[59,170,171],{"__ignoreMap":69},[73,172,173],{"class":75,"line":76},[73,174,168],{},[10,176,177],{},"我这边修改前的版本是",[95,179,180,183,186],{},[10,181,182],{},"Name: transformers",[10,184,185],{},"Version: 5.0.0",[10,187,188],{},"Summary: Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, > audio, and multimodal models, for both inference and training.",[10,190,191],{},"执行以下指令安装目标版本",[64,193,195],{"className":66,"code":194,"language":68,"meta":69,"style":69},"python -m pip install transformers==4.57.3\n",[59,196,197],{"__ignoreMap":69},[73,198,199],{"class":75,"line":76},[73,200,194],{},[10,202,203],{},"即可正常执行节点",[51,205,206],{"id":206},"使用效果",[10,208,209,210,215],{},"文档中有提供各个节点的功能，对于Qwen3-tts本身的能力范畴，可以参考",[30,211,214],{"href":212,"rel":213},"https:\u002F\u002Fqwen.ai\u002Fblog?id=qwen3tts-0115",[34],"Qwen3-tts官方说明","。",[10,217,218],{},"这边测试的Qwen3-TTS CustomVoice，使用预设的几个声音进行生成，1.7B和0.6B模型都能执行，且生成速度在可接受范围内。",[220,221,222],"style",{},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html .sepia .shiki span {color: var(--shiki-sepia);background: var(--shiki-sepia-bg);font-style: var(--shiki-sepia-font-style);font-weight: var(--shiki-sepia-font-weight);text-decoration: var(--shiki-sepia-text-decoration);}html.sepia .shiki span {color: var(--shiki-sepia);background: var(--shiki-sepia-bg);font-style: var(--shiki-sepia-font-style);font-weight: var(--shiki-sepia-font-weight);text-decoration: var(--shiki-sepia-text-decoration);}",{"title":69,"searchDepth":224,"depth":225,"links":226},2,3,[227,230],{"id":39,"depth":224,"text":40,"children":228},[229],{"id":53,"depth":225,"text":54},{"id":124,"depth":224,"text":125,"children":231},[232,233,234],{"id":135,"depth":225,"text":136},{"id":151,"depth":225,"text":151},{"id":206,"depth":225,"text":206},"2026-02-04","md",{"layout":238,"excerpt":239},"post",{"type":7,"value":240},[241],[10,242,12],{},true,"\u002F2026-02-04-qwen-tts-comfyui-note",{"title":5,"description":12},"_legacy\u002F2026\u002F2026-02-04-qwen-tts-comfyui-note",[40,248],"Qwen3-tts","trzWv2bGeWame7j8FrpOztXJah97fASk7S8NZV1csHs",1788763176490]