ComfyUI Node
MOSS-TTS Load Tokens
Reads a token file written by MOSS-TTS Save Tokens back into MOSS_TOKENS. 'path' is a dropdown of the token files found in ComfyUI's input and output directory (output entries prefixed 'output/'); 'path_override' beats the dropdown whenever it is not empty and takes any relative or absolute path -- a dropdown cannot accept a link, that STRING can, so the 'path' output of Save Tokens can be wired straight in. Loaded with weights_only=True, i.e. tensors only, no code execution. This is the piece that makes an encode-once pipeline work across runs and process restarts: the base voice is encoded a single time, ever.
MOSS-TTS Load Tokens
- tokens
- frames
◄path▾►
◄path_override►
CategoryMOSS TTS 1.5
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| path | COMBO | Token file to load. Scanned recursively from ComfyUI's input and output directory; entries from the output directory -- where Save Tokens writes -- carry an 'output/' prefix. Files written after the page was loaded appear on reload. A path stored by an older workflow that is not in this list still resolves the way it always did. | |
| path_overrideopt | STRING | Explicit path; when non-empty it REPLACES the dropdown selection. Relative to ComfyUI's input directory (output directory as fallback), or absolute. Convert it to an input and wire the 'path' output of MOSS-TTS Save Tokens into it to load in a later run what an earlier one wrote -- a dropdown cannot take a link, this can. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| tokens | MOSS_TOKENS | Audio codes, shape [frames, n_vq]. Must come from the same model you generate with (n_vq is validated when it is used). |
| frames | INT | Number of code frames. Divide by 12.5 for seconds. |