HEL-892: document Qwen3-TTS voice design and clone reference
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -0,0 +1 @@
|
||||
{"sha":"9d273d3ab1fb1d2c8b34de4d54cabe50a5a3e5bc","node_id":"C_kwDOIygeJtoAKDlkMjczZDNhYjFmYjFkMmM4YjM0ZGU0ZDU0Y2FiZTUwYTVhM2U1YmM","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/commits/9d273d3ab1fb1d2c8b34de4d54cabe50a5a3e5bc","html_url":"https://github.com/Comfy-Org/ComfyUI/commit/9d273d3ab1fb1d2c8b34de4d54cabe50a5a3e5bc","author":{"name":"comfyanonymous","email":"comfyanonymous@protonmail.com","date":"2026-01-20T03:40:18Z"},"committer":{"name":"comfyanonymous","email":"comfyanonymous@protonmail.com","date":"2026-01-20T03:40:18Z"},"tree":{"sha":"1e88df8d1a3937bba95b83979db43874a8332ecd","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/trees/1e88df8d1a3937bba95b83979db43874a8332ecd"},"message":"ComfyUI v0.10.0","parents":[{"sha":"70c91b8248e08492cf16bfebdc83579b801a6ee0","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/commits/70c91b8248e08492cf16bfebdc83579b801a6ee0","html_url":"https://github.com/Comfy-Org/ComfyUI/commit/70c91b8248e08492cf16bfebdc83579b801a6ee0"}],"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null,"verified_at":null}}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"ref":"refs/tags/v0.10.0","node_id":"REF_kwDOIygeJrFyZWZzL3RhZ3MvdjAuMTAuMA","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/refs/tags/v0.10.0","object":{"sha":"9d273d3ab1fb1d2c8b34de4d54cabe50a5a3e5bc","type":"commit","url":"https://api.github.com/repos/Comfy-Org/ComfyUI/git/commits/9d273d3ab1fb1d2c8b34de4d54cabe50a5a3e5bc"}}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,679 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import av
|
||||
import torchaudio
|
||||
import torch
|
||||
import comfy.model_management
|
||||
import folder_paths
|
||||
import os
|
||||
import hashlib
|
||||
import node_helpers
|
||||
import logging
|
||||
from typing_extensions import override
|
||||
from comfy_api.latest import ComfyExtension, IO, UI
|
||||
|
||||
class EmptyLatentAudio(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="EmptyLatentAudio",
|
||||
display_name="Empty Latent Audio",
|
||||
category="latent/audio",
|
||||
inputs=[
|
||||
IO.Float.Input("seconds", default=47.6, min=1.0, max=1000.0, step=0.1),
|
||||
IO.Int.Input(
|
||||
"batch_size", default=1, min=1, max=4096, tooltip="The number of latent images in the batch."
|
||||
),
|
||||
],
|
||||
outputs=[IO.Latent.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, seconds, batch_size) -> IO.NodeOutput:
|
||||
length = round((seconds * 44100 / 2048) / 2) * 2
|
||||
latent = torch.zeros([batch_size, 64, length], device=comfy.model_management.intermediate_device())
|
||||
return IO.NodeOutput({"samples":latent, "type": "audio"})
|
||||
|
||||
generate = execute # TODO: remove
|
||||
|
||||
|
||||
class ConditioningStableAudio(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="ConditioningStableAudio",
|
||||
category="conditioning",
|
||||
inputs=[
|
||||
IO.Conditioning.Input("positive"),
|
||||
IO.Conditioning.Input("negative"),
|
||||
IO.Float.Input("seconds_start", default=0.0, min=0.0, max=1000.0, step=0.1),
|
||||
IO.Float.Input("seconds_total", default=47.0, min=0.0, max=1000.0, step=0.1),
|
||||
],
|
||||
outputs=[
|
||||
IO.Conditioning.Output(display_name="positive"),
|
||||
IO.Conditioning.Output(display_name="negative"),
|
||||
],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, positive, negative, seconds_start, seconds_total) -> IO.NodeOutput:
|
||||
positive = node_helpers.conditioning_set_values(positive, {"seconds_start": seconds_start, "seconds_total": seconds_total})
|
||||
negative = node_helpers.conditioning_set_values(negative, {"seconds_start": seconds_start, "seconds_total": seconds_total})
|
||||
return IO.NodeOutput(positive, negative)
|
||||
|
||||
append = execute # TODO: remove
|
||||
|
||||
|
||||
class VAEEncodeAudio(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="VAEEncodeAudio",
|
||||
display_name="VAE Encode Audio",
|
||||
category="latent/audio",
|
||||
inputs=[
|
||||
IO.Audio.Input("audio"),
|
||||
IO.Vae.Input("vae"),
|
||||
],
|
||||
outputs=[IO.Latent.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, vae, audio) -> IO.NodeOutput:
|
||||
sample_rate = audio["sample_rate"]
|
||||
if 44100 != sample_rate:
|
||||
waveform = torchaudio.functional.resample(audio["waveform"], sample_rate, 44100)
|
||||
else:
|
||||
waveform = audio["waveform"]
|
||||
|
||||
t = vae.encode(waveform.movedim(1, -1))
|
||||
return IO.NodeOutput({"samples":t})
|
||||
|
||||
encode = execute # TODO: remove
|
||||
|
||||
|
||||
class VAEDecodeAudio(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="VAEDecodeAudio",
|
||||
display_name="VAE Decode Audio",
|
||||
category="latent/audio",
|
||||
inputs=[
|
||||
IO.Latent.Input("samples"),
|
||||
IO.Vae.Input("vae"),
|
||||
],
|
||||
outputs=[IO.Audio.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, vae, samples) -> IO.NodeOutput:
|
||||
audio = vae.decode(samples["samples"]).movedim(-1, 1)
|
||||
std = torch.std(audio, dim=[1,2], keepdim=True) * 5.0
|
||||
std[std < 1.0] = 1.0
|
||||
audio /= std
|
||||
return IO.NodeOutput({"waveform": audio, "sample_rate": 44100 if "sample_rate" not in samples else samples["sample_rate"]})
|
||||
|
||||
decode = execute # TODO: remove
|
||||
|
||||
|
||||
class SaveAudio(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="SaveAudio",
|
||||
display_name="Save Audio (FLAC)",
|
||||
category="audio",
|
||||
inputs=[
|
||||
IO.Audio.Input("audio"),
|
||||
IO.String.Input("filename_prefix", default="audio/ComfyUI"),
|
||||
],
|
||||
hidden=[IO.Hidden.prompt, IO.Hidden.extra_pnginfo],
|
||||
is_output_node=True,
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, audio, filename_prefix="ComfyUI", format="flac") -> IO.NodeOutput:
|
||||
return IO.NodeOutput(
|
||||
ui=UI.AudioSaveHelper.get_save_audio_ui(audio, filename_prefix=filename_prefix, cls=cls, format=format)
|
||||
)
|
||||
|
||||
save_flac = execute # TODO: remove
|
||||
|
||||
|
||||
class SaveAudioMP3(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="SaveAudioMP3",
|
||||
display_name="Save Audio (MP3)",
|
||||
category="audio",
|
||||
inputs=[
|
||||
IO.Audio.Input("audio"),
|
||||
IO.String.Input("filename_prefix", default="audio/ComfyUI"),
|
||||
IO.Combo.Input("quality", options=["V0", "128k", "320k"], default="V0"),
|
||||
],
|
||||
hidden=[IO.Hidden.prompt, IO.Hidden.extra_pnginfo],
|
||||
is_output_node=True,
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, audio, filename_prefix="ComfyUI", format="mp3", quality="128k") -> IO.NodeOutput:
|
||||
return IO.NodeOutput(
|
||||
ui=UI.AudioSaveHelper.get_save_audio_ui(
|
||||
audio, filename_prefix=filename_prefix, cls=cls, format=format, quality=quality
|
||||
)
|
||||
)
|
||||
|
||||
save_mp3 = execute # TODO: remove
|
||||
|
||||
|
||||
class SaveAudioOpus(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="SaveAudioOpus",
|
||||
display_name="Save Audio (Opus)",
|
||||
category="audio",
|
||||
inputs=[
|
||||
IO.Audio.Input("audio"),
|
||||
IO.String.Input("filename_prefix", default="audio/ComfyUI"),
|
||||
IO.Combo.Input("quality", options=["64k", "96k", "128k", "192k", "320k"], default="128k"),
|
||||
],
|
||||
hidden=[IO.Hidden.prompt, IO.Hidden.extra_pnginfo],
|
||||
is_output_node=True,
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, audio, filename_prefix="ComfyUI", format="opus", quality="V3") -> IO.NodeOutput:
|
||||
return IO.NodeOutput(
|
||||
ui=UI.AudioSaveHelper.get_save_audio_ui(
|
||||
audio, filename_prefix=filename_prefix, cls=cls, format=format, quality=quality
|
||||
)
|
||||
)
|
||||
|
||||
save_opus = execute # TODO: remove
|
||||
|
||||
|
||||
class PreviewAudio(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="PreviewAudio",
|
||||
display_name="Preview Audio",
|
||||
category="audio",
|
||||
inputs=[
|
||||
IO.Audio.Input("audio"),
|
||||
],
|
||||
hidden=[IO.Hidden.prompt, IO.Hidden.extra_pnginfo],
|
||||
is_output_node=True,
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, audio) -> IO.NodeOutput:
|
||||
return IO.NodeOutput(ui=UI.PreviewAudio(audio, cls=cls))
|
||||
|
||||
save_flac = execute # TODO: remove
|
||||
|
||||
|
||||
def f32_pcm(wav: torch.Tensor) -> torch.Tensor:
|
||||
"""Convert audio to float 32 bits PCM format."""
|
||||
if wav.dtype.is_floating_point:
|
||||
return wav
|
||||
elif wav.dtype == torch.int16:
|
||||
return wav.float() / (2 ** 15)
|
||||
elif wav.dtype == torch.int32:
|
||||
return wav.float() / (2 ** 31)
|
||||
raise ValueError(f"Unsupported wav dtype: {wav.dtype}")
|
||||
|
||||
def load(filepath: str) -> tuple[torch.Tensor, int]:
|
||||
with av.open(filepath) as af:
|
||||
if not af.streams.audio:
|
||||
raise ValueError("No audio stream found in the file.")
|
||||
|
||||
stream = af.streams.audio[0]
|
||||
sr = stream.codec_context.sample_rate
|
||||
n_channels = stream.channels
|
||||
|
||||
frames = []
|
||||
length = 0
|
||||
for frame in af.decode(streams=stream.index):
|
||||
buf = torch.from_numpy(frame.to_ndarray())
|
||||
if buf.shape[0] != n_channels:
|
||||
buf = buf.view(-1, n_channels).t()
|
||||
|
||||
frames.append(buf)
|
||||
length += buf.shape[1]
|
||||
|
||||
if not frames:
|
||||
raise ValueError("No audio frames decoded.")
|
||||
|
||||
wav = torch.cat(frames, dim=1)
|
||||
wav = f32_pcm(wav)
|
||||
return wav, sr
|
||||
|
||||
class LoadAudio(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
input_dir = folder_paths.get_input_directory()
|
||||
files = folder_paths.filter_files_content_types(os.listdir(input_dir), ["audio", "video"])
|
||||
return IO.Schema(
|
||||
node_id="LoadAudio",
|
||||
display_name="Load Audio",
|
||||
category="audio",
|
||||
inputs=[
|
||||
IO.Combo.Input("audio", upload=IO.UploadType.audio, options=sorted(files)),
|
||||
],
|
||||
outputs=[IO.Audio.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, audio) -> IO.NodeOutput:
|
||||
audio_path = folder_paths.get_annotated_filepath(audio)
|
||||
waveform, sample_rate = load(audio_path)
|
||||
audio = {"waveform": waveform.unsqueeze(0), "sample_rate": sample_rate}
|
||||
return IO.NodeOutput(audio)
|
||||
|
||||
@classmethod
|
||||
def fingerprint_inputs(cls, audio):
|
||||
image_path = folder_paths.get_annotated_filepath(audio)
|
||||
m = hashlib.sha256()
|
||||
with open(image_path, 'rb') as f:
|
||||
m.update(f.read())
|
||||
return m.digest().hex()
|
||||
|
||||
@classmethod
|
||||
def validate_inputs(cls, audio):
|
||||
if not folder_paths.exists_annotated_filepath(audio):
|
||||
return "Invalid audio file: {}".format(audio)
|
||||
return True
|
||||
|
||||
load = execute # TODO: remove
|
||||
|
||||
|
||||
class RecordAudio(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="RecordAudio",
|
||||
display_name="Record Audio",
|
||||
category="audio",
|
||||
inputs=[
|
||||
IO.Custom("AUDIO_RECORD").Input("audio"),
|
||||
],
|
||||
outputs=[IO.Audio.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, audio) -> IO.NodeOutput:
|
||||
audio_path = folder_paths.get_annotated_filepath(audio)
|
||||
|
||||
waveform, sample_rate = load(audio_path)
|
||||
audio = {"waveform": waveform.unsqueeze(0), "sample_rate": sample_rate}
|
||||
return IO.NodeOutput(audio)
|
||||
|
||||
load = execute # TODO: remove
|
||||
|
||||
|
||||
class TrimAudioDuration(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="TrimAudioDuration",
|
||||
display_name="Trim Audio Duration",
|
||||
description="Trim audio tensor into chosen time range.",
|
||||
category="audio",
|
||||
inputs=[
|
||||
IO.Audio.Input("audio"),
|
||||
IO.Float.Input(
|
||||
"start_index",
|
||||
default=0.0,
|
||||
min=-0xffffffffffffffff,
|
||||
max=0xffffffffffffffff,
|
||||
step=0.01,
|
||||
tooltip="Start time in seconds, can be negative to count from the end (supports sub-seconds).",
|
||||
),
|
||||
IO.Float.Input(
|
||||
"duration",
|
||||
default=60.0,
|
||||
min=0.0,
|
||||
step=0.01,
|
||||
tooltip="Duration in seconds",
|
||||
),
|
||||
],
|
||||
outputs=[IO.Audio.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, audio, start_index, duration) -> IO.NodeOutput:
|
||||
waveform = audio["waveform"]
|
||||
sample_rate = audio["sample_rate"]
|
||||
audio_length = waveform.shape[-1]
|
||||
|
||||
if start_index < 0:
|
||||
start_frame = audio_length + int(round(start_index * sample_rate))
|
||||
else:
|
||||
start_frame = int(round(start_index * sample_rate))
|
||||
start_frame = max(0, min(start_frame, audio_length - 1))
|
||||
|
||||
end_frame = start_frame + int(round(duration * sample_rate))
|
||||
end_frame = max(0, min(end_frame, audio_length))
|
||||
|
||||
if start_frame >= end_frame:
|
||||
raise ValueError("AudioTrim: Start time must be less than end time and be within the audio length.")
|
||||
|
||||
return IO.NodeOutput({"waveform": waveform[..., start_frame:end_frame], "sample_rate": sample_rate})
|
||||
|
||||
trim = execute # TODO: remove
|
||||
|
||||
|
||||
class SplitAudioChannels(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="SplitAudioChannels",
|
||||
display_name="Split Audio Channels",
|
||||
description="Separates the audio into left and right channels.",
|
||||
category="audio",
|
||||
inputs=[
|
||||
IO.Audio.Input("audio"),
|
||||
],
|
||||
outputs=[
|
||||
IO.Audio.Output(display_name="left"),
|
||||
IO.Audio.Output(display_name="right"),
|
||||
],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, audio) -> IO.NodeOutput:
|
||||
waveform = audio["waveform"]
|
||||
sample_rate = audio["sample_rate"]
|
||||
|
||||
if waveform.shape[1] != 2:
|
||||
raise ValueError("AudioSplit: Input audio has only one channel.")
|
||||
|
||||
left_channel = waveform[..., 0:1, :]
|
||||
right_channel = waveform[..., 1:2, :]
|
||||
|
||||
return IO.NodeOutput({"waveform": left_channel, "sample_rate": sample_rate}, {"waveform": right_channel, "sample_rate": sample_rate})
|
||||
|
||||
separate = execute # TODO: remove
|
||||
|
||||
class JoinAudioChannels(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="JoinAudioChannels",
|
||||
display_name="Join Audio Channels",
|
||||
description="Joins left and right mono audio channels into a stereo audio.",
|
||||
category="audio",
|
||||
inputs=[
|
||||
IO.Audio.Input("audio_left"),
|
||||
IO.Audio.Input("audio_right"),
|
||||
],
|
||||
outputs=[
|
||||
IO.Audio.Output(display_name="audio"),
|
||||
],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, audio_left, audio_right) -> IO.NodeOutput:
|
||||
waveform_left = audio_left["waveform"]
|
||||
sample_rate_left = audio_left["sample_rate"]
|
||||
waveform_right = audio_right["waveform"]
|
||||
sample_rate_right = audio_right["sample_rate"]
|
||||
|
||||
if waveform_left.shape[1] != 1 or waveform_right.shape[1] != 1:
|
||||
raise ValueError("AudioJoin: Both input audios must be mono.")
|
||||
|
||||
# Handle different sample rates by resampling to the higher rate
|
||||
waveform_left, waveform_right, output_sample_rate = match_audio_sample_rates(
|
||||
waveform_left, sample_rate_left, waveform_right, sample_rate_right
|
||||
)
|
||||
|
||||
# Handle different lengths by trimming to the shorter length
|
||||
length_left = waveform_left.shape[-1]
|
||||
length_right = waveform_right.shape[-1]
|
||||
|
||||
if length_left != length_right:
|
||||
min_length = min(length_left, length_right)
|
||||
if length_left > min_length:
|
||||
logging.info(f"JoinAudioChannels: Trimming left channel from {length_left} to {min_length} samples.")
|
||||
waveform_left = waveform_left[..., :min_length]
|
||||
if length_right > min_length:
|
||||
logging.info(f"JoinAudioChannels: Trimming right channel from {length_right} to {min_length} samples.")
|
||||
waveform_right = waveform_right[..., :min_length]
|
||||
|
||||
# Join the channels into stereo
|
||||
left_channel = waveform_left[..., 0:1, :]
|
||||
right_channel = waveform_right[..., 0:1, :]
|
||||
stereo_waveform = torch.cat([left_channel, right_channel], dim=1)
|
||||
|
||||
return IO.NodeOutput({"waveform": stereo_waveform, "sample_rate": output_sample_rate})
|
||||
|
||||
|
||||
def match_audio_sample_rates(waveform_1, sample_rate_1, waveform_2, sample_rate_2):
|
||||
if sample_rate_1 != sample_rate_2:
|
||||
if sample_rate_1 > sample_rate_2:
|
||||
waveform_2 = torchaudio.functional.resample(waveform_2, sample_rate_2, sample_rate_1)
|
||||
output_sample_rate = sample_rate_1
|
||||
logging.info(f"Resampling audio2 from {sample_rate_2}Hz to {sample_rate_1}Hz for merging.")
|
||||
else:
|
||||
waveform_1 = torchaudio.functional.resample(waveform_1, sample_rate_1, sample_rate_2)
|
||||
output_sample_rate = sample_rate_2
|
||||
logging.info(f"Resampling audio1 from {sample_rate_1}Hz to {sample_rate_2}Hz for merging.")
|
||||
else:
|
||||
output_sample_rate = sample_rate_1
|
||||
return waveform_1, waveform_2, output_sample_rate
|
||||
|
||||
|
||||
class AudioConcat(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="AudioConcat",
|
||||
display_name="Audio Concat",
|
||||
description="Concatenates the audio1 to audio2 in the specified direction.",
|
||||
category="audio",
|
||||
inputs=[
|
||||
IO.Audio.Input("audio1"),
|
||||
IO.Audio.Input("audio2"),
|
||||
IO.Combo.Input(
|
||||
"direction",
|
||||
options=['after', 'before'],
|
||||
default="after",
|
||||
tooltip="Whether to append audio2 after or before audio1.",
|
||||
)
|
||||
],
|
||||
outputs=[IO.Audio.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, audio1, audio2, direction) -> IO.NodeOutput:
|
||||
waveform_1 = audio1["waveform"]
|
||||
waveform_2 = audio2["waveform"]
|
||||
sample_rate_1 = audio1["sample_rate"]
|
||||
sample_rate_2 = audio2["sample_rate"]
|
||||
|
||||
if waveform_1.shape[1] == 1:
|
||||
waveform_1 = waveform_1.repeat(1, 2, 1)
|
||||
logging.info("AudioConcat: Converted mono audio1 to stereo by duplicating the channel.")
|
||||
if waveform_2.shape[1] == 1:
|
||||
waveform_2 = waveform_2.repeat(1, 2, 1)
|
||||
logging.info("AudioConcat: Converted mono audio2 to stereo by duplicating the channel.")
|
||||
|
||||
waveform_1, waveform_2, output_sample_rate = match_audio_sample_rates(waveform_1, sample_rate_1, waveform_2, sample_rate_2)
|
||||
|
||||
if direction == 'after':
|
||||
concatenated_audio = torch.cat((waveform_1, waveform_2), dim=2)
|
||||
elif direction == 'before':
|
||||
concatenated_audio = torch.cat((waveform_2, waveform_1), dim=2)
|
||||
|
||||
return IO.NodeOutput({"waveform": concatenated_audio, "sample_rate": output_sample_rate})
|
||||
|
||||
concat = execute # TODO: remove
|
||||
|
||||
|
||||
class AudioMerge(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="AudioMerge",
|
||||
display_name="Audio Merge",
|
||||
description="Combine two audio tracks by overlaying their waveforms.",
|
||||
category="audio",
|
||||
inputs=[
|
||||
IO.Audio.Input("audio1"),
|
||||
IO.Audio.Input("audio2"),
|
||||
IO.Combo.Input(
|
||||
"merge_method",
|
||||
options=["add", "mean", "subtract", "multiply"],
|
||||
tooltip="The method used to combine the audio waveforms.",
|
||||
)
|
||||
],
|
||||
outputs=[IO.Audio.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, audio1, audio2, merge_method) -> IO.NodeOutput:
|
||||
waveform_1 = audio1["waveform"]
|
||||
waveform_2 = audio2["waveform"]
|
||||
sample_rate_1 = audio1["sample_rate"]
|
||||
sample_rate_2 = audio2["sample_rate"]
|
||||
|
||||
waveform_1, waveform_2, output_sample_rate = match_audio_sample_rates(waveform_1, sample_rate_1, waveform_2, sample_rate_2)
|
||||
|
||||
length_1 = waveform_1.shape[-1]
|
||||
length_2 = waveform_2.shape[-1]
|
||||
|
||||
if length_2 > length_1:
|
||||
logging.info(f"AudioMerge: Trimming audio2 from {length_2} to {length_1} samples to match audio1 length.")
|
||||
waveform_2 = waveform_2[..., :length_1]
|
||||
elif length_2 < length_1:
|
||||
logging.info(f"AudioMerge: Padding audio2 from {length_2} to {length_1} samples to match audio1 length.")
|
||||
pad_shape = list(waveform_2.shape)
|
||||
pad_shape[-1] = length_1 - length_2
|
||||
pad_tensor = torch.zeros(pad_shape, dtype=waveform_2.dtype, device=waveform_2.device)
|
||||
waveform_2 = torch.cat((waveform_2, pad_tensor), dim=-1)
|
||||
|
||||
if merge_method == "add":
|
||||
waveform = waveform_1 + waveform_2
|
||||
elif merge_method == "subtract":
|
||||
waveform = waveform_1 - waveform_2
|
||||
elif merge_method == "multiply":
|
||||
waveform = waveform_1 * waveform_2
|
||||
elif merge_method == "mean":
|
||||
waveform = (waveform_1 + waveform_2) / 2
|
||||
|
||||
max_val = waveform.abs().max()
|
||||
if max_val > 1.0:
|
||||
waveform = waveform / max_val
|
||||
|
||||
return IO.NodeOutput({"waveform": waveform, "sample_rate": output_sample_rate})
|
||||
|
||||
merge = execute # TODO: remove
|
||||
|
||||
|
||||
class AudioAdjustVolume(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="AudioAdjustVolume",
|
||||
display_name="Audio Adjust Volume",
|
||||
category="audio",
|
||||
inputs=[
|
||||
IO.Audio.Input("audio"),
|
||||
IO.Int.Input(
|
||||
"volume",
|
||||
default=1,
|
||||
min=-100,
|
||||
max=100,
|
||||
tooltip="Volume adjustment in decibels (dB). 0 = no change, +6 = double, -6 = half, etc",
|
||||
)
|
||||
],
|
||||
outputs=[IO.Audio.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, audio, volume) -> IO.NodeOutput:
|
||||
if volume == 0:
|
||||
return IO.NodeOutput(audio)
|
||||
waveform = audio["waveform"]
|
||||
sample_rate = audio["sample_rate"]
|
||||
|
||||
gain = 10 ** (volume / 20)
|
||||
waveform = waveform * gain
|
||||
|
||||
return IO.NodeOutput({"waveform": waveform, "sample_rate": sample_rate})
|
||||
|
||||
adjust_volume = execute # TODO: remove
|
||||
|
||||
|
||||
class EmptyAudio(IO.ComfyNode):
|
||||
@classmethod
|
||||
def define_schema(cls):
|
||||
return IO.Schema(
|
||||
node_id="EmptyAudio",
|
||||
display_name="Empty Audio",
|
||||
category="audio",
|
||||
inputs=[
|
||||
IO.Float.Input(
|
||||
"duration",
|
||||
default=60.0,
|
||||
min=0.0,
|
||||
max=0xffffffffffffffff,
|
||||
step=0.01,
|
||||
tooltip="Duration of the empty audio clip in seconds",
|
||||
),
|
||||
IO.Int.Input(
|
||||
"sample_rate",
|
||||
default=44100,
|
||||
tooltip="Sample rate of the empty audio clip.",
|
||||
min=1,
|
||||
max=192000,
|
||||
),
|
||||
IO.Int.Input(
|
||||
"channels",
|
||||
default=2,
|
||||
min=1,
|
||||
max=2,
|
||||
tooltip="Number of audio channels (1 for mono, 2 for stereo).",
|
||||
),
|
||||
],
|
||||
outputs=[IO.Audio.Output()],
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def execute(cls, duration, sample_rate, channels) -> IO.NodeOutput:
|
||||
num_samples = int(round(duration * sample_rate))
|
||||
waveform = torch.zeros((1, channels, num_samples), dtype=torch.float32)
|
||||
return IO.NodeOutput({"waveform": waveform, "sample_rate": sample_rate})
|
||||
|
||||
create_empty_audio = execute # TODO: remove
|
||||
|
||||
|
||||
class AudioExtension(ComfyExtension):
|
||||
@override
|
||||
async def get_node_list(self) -> list[type[IO.ComfyNode]]:
|
||||
return [
|
||||
EmptyLatentAudio,
|
||||
VAEEncodeAudio,
|
||||
VAEDecodeAudio,
|
||||
SaveAudio,
|
||||
SaveAudioMP3,
|
||||
SaveAudioOpus,
|
||||
LoadAudio,
|
||||
PreviewAudio,
|
||||
ConditioningStableAudio,
|
||||
RecordAudio,
|
||||
TrimAudioDuration,
|
||||
SplitAudioChannels,
|
||||
JoinAudioChannels,
|
||||
AudioConcat,
|
||||
AudioMerge,
|
||||
AudioAdjustVolume,
|
||||
EmptyAudio,
|
||||
]
|
||||
|
||||
async def comfy_entrypoint() -> AudioExtension:
|
||||
return AudioExtension()
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1 @@
|
||||
{"sha":"89014d833d2ad0998d724090eff1456692692a1d","node_id":"C_kwDOLGBTQ9oAKDg5MDE0ZDgzM2QyYWQwOTk4ZDcyNDA5MGVmZjE0NTY2OTI2OTJhMWQ","url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/commits/89014d833d2ad0998d724090eff1456692692a1d","html_url":"https://github.com/chflame163/ComfyUI_LayerStyle/commit/89014d833d2ad0998d724090eff1456692692a1d","author":{"name":"chflame163","email":"chflame@163.com","date":"2025-09-10T16:06:21Z"},"committer":{"name":"chflame163","email":"chflame@163.com","date":"2025-09-10T16:06:21Z"},"tree":{"sha":"338d8bf0ff7f1c01703b52b024fc03ffabaf49cb","url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/trees/338d8bf0ff7f1c01703b52b024fc03ffabaf49cb"},"message":"commit NanoBanana Image Scale node","parents":[{"sha":"42ccdd8f75ab312285eaa77073a5cc20bdba484c","url":"https://api.github.com/repos/chflame163/ComfyUI_LayerStyle/git/commits/42ccdd8f75ab312285eaa77073a5cc20bdba484c","html_url":"https://github.com/chflame163/ComfyUI_LayerStyle/commit/42ccdd8f75ab312285eaa77073a5cc20bdba484c"}],"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null,"verified_at":null}}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
{"sha":"f5c78cd3a7ef1ca030d64d36801adad7413aded6","node_id":"C_kwDOQ_fZq9oAKGY1Yzc4Y2QzYTdlZjFjYTAzMGQ2NGQzNjgwMWFkYWQ3NDEzYWRlZDY","url":"https://api.github.com/repos/AICoderTudou/ComfyUI-TD-Qwen3TTS/git/commits/f5c78cd3a7ef1ca030d64d36801adad7413aded6","html_url":"https://github.com/AICoderTudou/ComfyUI-TD-Qwen3TTS/commit/f5c78cd3a7ef1ca030d64d36801adad7413aded6","author":{"name":"AICodeTudou","email":"411011819@qq.com","date":"2026-01-23T05:43:20Z"},"committer":{"name":"AICodeTudou","email":"411011819@qq.com","date":"2026-01-23T05:43:20Z"},"tree":{"sha":"d46dea75db0e7a640a7a1462e02576f43de2bf6b","url":"https://api.github.com/repos/AICoderTudou/ComfyUI-TD-Qwen3TTS/git/trees/d46dea75db0e7a640a7a1462e02576f43de2bf6b"},"message":"Merge branch 'main' of https://github.com/AICoderTudou/ComfyUI-TD-Qwen3TTS","parents":[{"sha":"f2910f9480f5c000fbbdaf4aa012384a13114f19","url":"https://api.github.com/repos/AICoderTudou/ComfyUI-TD-Qwen3TTS/git/commits/f2910f9480f5c000fbbdaf4aa012384a13114f19","html_url":"https://github.com/AICoderTudou/ComfyUI-TD-Qwen3TTS/commit/f2910f9480f5c000fbbdaf4aa012384a13114f19"},{"sha":"74bff80a6aea427b12cd318ded3501539f806648","url":"https://api.github.com/repos/AICoderTudou/ComfyUI-TD-Qwen3TTS/git/commits/74bff80a6aea427b12cd318ded3501539f806648","html_url":"https://github.com/AICoderTudou/ComfyUI-TD-Qwen3TTS/commit/74bff80a6aea427b12cd318ded3501539f806648"}],"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null,"verified_at":null}}
|
||||
@@ -0,0 +1 @@
|
||||
{"sha":"f5c78cd3a7ef1ca030d64d36801adad7413aded6","url":"https://api.github.com/repos/AICoderTudou/ComfyUI-TD-Qwen3TTS/git/trees/f5c78cd3a7ef1ca030d64d36801adad7413aded6","tree":[{"path":"LICENSE","mode":"100644","type":"blob","sha":"377b1cfa01684d2d02891c9f149d32b44bded68f","size":10173,"url":"https://api.github.com/repos/AICoderTudou/ComfyUI-TD-Qwen3TTS/git/blobs/377b1cfa01684d2d02891c9f149d32b44bded68f"},{"path":"Qwen3-TTS","mode":"160000","type":"commit","sha":"d5c446171afda5598819533933c3ae99802ab655"},{"path":"README.md","mode":"100644","type":"blob","sha":"db41a0a5ea9c533bb0f20db5adfefa239aeca84e","size":4770,"url":"https://api.github.com/repos/AICoderTudou/ComfyUI-TD-Qwen3TTS/git/blobs/db41a0a5ea9c533bb0f20db5adfefa239aeca84e"},{"path":"__init__.py","mode":"100644","type":"blob","sha":"3d998eae307a57377b852fc3fe321f91c8cd61d0","size":132,"url":"https://api.github.com/repos/AICoderTudou/ComfyUI-TD-Qwen3TTS/git/blobs/3d998eae307a57377b852fc3fe321f91c8cd61d0"},{"path":"nodes.py","mode":"100644","type":"blob","sha":"faac9028ef17a7a2c0f56456ccd1fc0cb858b1d7","size":7761,"url":"https://api.github.com/repos/AICoderTudou/ComfyUI-TD-Qwen3TTS/git/blobs/faac9028ef17a7a2c0f56456ccd1fc0cb858b1d7"},{"path":"requirements.txt","mode":"100644","type":"blob","sha":"ac15d9375dc722b0a473c87492b37ed6faaa663d","size":154,"url":"https://api.github.com/repos/AICoderTudou/ComfyUI-TD-Qwen3TTS/git/blobs/ac15d9375dc722b0a473c87492b37ed6faaa663d"}],"truncated":false}
|
||||
@@ -0,0 +1,202 @@
|
||||
import os
|
||||
import sys
|
||||
import torch
|
||||
import numpy as np
|
||||
import folder_paths
|
||||
|
||||
# 将父目录添加到路径以允许导入 qwen_tts
|
||||
current_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
# 添加本地克隆的 Qwen3-TTS 目录到 sys.path
|
||||
qwen_repo_path = os.path.join(current_dir, "Qwen3-TTS")
|
||||
if os.path.exists(qwen_repo_path) and qwen_repo_path not in sys.path:
|
||||
sys.path.append(qwen_repo_path)
|
||||
|
||||
parent_dir = os.path.dirname(current_dir)
|
||||
if parent_dir not in sys.path:
|
||||
sys.path.append(parent_dir)
|
||||
|
||||
try:
|
||||
from qwen_tts.inference.qwen3_tts_model import Qwen3TTSModel
|
||||
except ImportError:
|
||||
# 如果找不到 qwen_tts,我们可能是在独立安装中,或者结构不同
|
||||
# 但由于我们是在仓库内部创建的,它应该可以工作。
|
||||
# 这里可以添加回退或错误处理。
|
||||
pass
|
||||
|
||||
class Qwen3TTSModelLoader:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
qwen_models_dir = os.path.join(folder_paths.models_dir, "Qwen3-TTS-Models")
|
||||
if not os.path.exists(qwen_models_dir):
|
||||
try:
|
||||
os.makedirs(qwen_models_dir, exist_ok=True)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
model_list = []
|
||||
if os.path.exists(qwen_models_dir):
|
||||
model_list = [d for d in os.listdir(qwen_models_dir) if os.path.isdir(os.path.join(qwen_models_dir, d))]
|
||||
|
||||
if not model_list:
|
||||
model_list = ["Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice"]
|
||||
|
||||
return {
|
||||
"required": {
|
||||
"model_path": (model_list, {"default": model_list[0] if model_list else "Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice"}),
|
||||
"precision": (["bf16", "fp16", "fp32"], {"default": "bf16"}),
|
||||
"device": (["cuda", "cpu"], {"default": "cuda"}),
|
||||
"attn_implementation": (["sdpa", "flash_attention_2", "eager"], {"default": "sdpa"}),
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("QWEN3_TTS_MODEL",)
|
||||
RETURN_NAMES = ("model",)
|
||||
FUNCTION = "load_model"
|
||||
CATEGORY = "Qwen3TTS"
|
||||
|
||||
def load_model(self, model_path, precision, device, attn_implementation):
|
||||
dtype = torch.bfloat16 if precision == "bf16" else torch.float16 if precision == "fp16" else torch.float32
|
||||
|
||||
print(f"正在从 {model_path} 加载 Qwen3-TTS 模型,精度: {precision},设备: {device},加速方式: {attn_implementation}...")
|
||||
|
||||
# 如果 model_path 是相对于此节点的目录,则解析它?
|
||||
# 现在假设它是绝对路径或 HF hub id。
|
||||
qwen_models_dir = os.path.join(folder_paths.models_dir, "Qwen3-TTS-Models")
|
||||
potential_path = os.path.join(qwen_models_dir, model_path)
|
||||
if os.path.exists(potential_path):
|
||||
model_path_to_load = potential_path
|
||||
else:
|
||||
model_path_to_load = model_path
|
||||
|
||||
model = Qwen3TTSModel.from_pretrained(
|
||||
model_path_to_load,
|
||||
device_map=device,
|
||||
dtype=dtype,
|
||||
attn_implementation=attn_implementation,
|
||||
)
|
||||
return (model,)
|
||||
|
||||
class Qwen3TTSCustomVoice:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {
|
||||
"required": {
|
||||
"model": ("QWEN3_TTS_MODEL",),
|
||||
"text": ("STRING", {"multiline": True, "default": "你好,我是Qwen3-TTS。"}),
|
||||
"speaker": ("STRING", {"default": "Vivian"}),
|
||||
"language": (["Auto", "Chinese", "English", "Japanese", "Korean", "German", "French", "Russian", "Portuguese", "Spanish", "Italian"], {"default": "Auto"}),
|
||||
},
|
||||
"optional": {
|
||||
"instruct": ("STRING", {"multiline": True, "default": ""}),
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("AUDIO",)
|
||||
RETURN_NAMES = ("audio",)
|
||||
FUNCTION = "generate"
|
||||
CATEGORY = "Qwen3TTS"
|
||||
|
||||
def generate(self, model, text, speaker, language, instruct=""):
|
||||
if language == "Auto":
|
||||
language = None
|
||||
|
||||
print(f"正在为说话人 {speaker} 生成自定义语音...")
|
||||
wavs, sr = model.generate_custom_voice(
|
||||
text=text,
|
||||
speaker=speaker,
|
||||
language=language,
|
||||
instruct=instruct if instruct else None
|
||||
)
|
||||
|
||||
# ComfyUI 音频格式: {'waveform': tensor [batch, channels, samples], 'sample_rate': int}
|
||||
# wavs[0] 是 [samples] (单声道)
|
||||
audio_tensor = torch.from_numpy(wavs[0]).unsqueeze(0).unsqueeze(0) # [1, 1, samples]
|
||||
|
||||
return ({"waveform": audio_tensor, "sample_rate": sr},)
|
||||
|
||||
class Qwen3TTSVoiceDesign:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {
|
||||
"required": {
|
||||
"model": ("QWEN3_TTS_MODEL",),
|
||||
"text": ("STRING", {"multiline": True, "default": "这是一个语音设计测试。"}),
|
||||
"instruct": ("STRING", {"multiline": True, "default": "一个年轻女性的声音,语气愉快。"}),
|
||||
"language": (["Auto", "Chinese", "English", "Japanese", "Korean", "German", "French", "Russian", "Portuguese", "Spanish", "Italian"], {"default": "Auto"}),
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("AUDIO",)
|
||||
RETURN_NAMES = ("audio",)
|
||||
FUNCTION = "generate"
|
||||
CATEGORY = "Qwen3TTS"
|
||||
|
||||
def generate(self, model, text, instruct, language):
|
||||
if language == "Auto":
|
||||
language = None
|
||||
|
||||
print(f"正在使用指令生成语音设计: {instruct}...")
|
||||
wavs, sr = model.generate_voice_design(
|
||||
text=text,
|
||||
instruct=instruct,
|
||||
language=language
|
||||
)
|
||||
|
||||
audio_tensor = torch.from_numpy(wavs[0]).unsqueeze(0).unsqueeze(0)
|
||||
return ({"waveform": audio_tensor, "sample_rate": sr},)
|
||||
|
||||
class Qwen3TTSVoiceClone:
|
||||
@classmethod
|
||||
def INPUT_TYPES(s):
|
||||
return {
|
||||
"required": {
|
||||
"model": ("QWEN3_TTS_MODEL",),
|
||||
"text": ("STRING", {"multiline": True, "default": "这是一个语音克隆测试。"}),
|
||||
"ref_audio": ("AUDIO",),
|
||||
"language": (["Auto", "Chinese", "English", "Japanese", "Korean", "German", "French", "Russian", "Portuguese", "Spanish", "Italian"], {"default": "Auto"}),
|
||||
},
|
||||
"optional": {
|
||||
"ref_text": ("STRING", {"multiline": True, "default": ""}),
|
||||
}
|
||||
}
|
||||
|
||||
RETURN_TYPES = ("AUDIO",)
|
||||
RETURN_NAMES = ("audio",)
|
||||
FUNCTION = "generate"
|
||||
CATEGORY = "Qwen3TTS"
|
||||
|
||||
def generate(self, model, text, ref_audio, language, ref_text=""):
|
||||
if language == "Auto":
|
||||
language = None
|
||||
|
||||
waveform = ref_audio["waveform"] # [batch, channels, samples]
|
||||
sr = ref_audio["sample_rate"]
|
||||
|
||||
# 取第一个批次,转换为 [samples, channels] 或 [samples]
|
||||
# 如果我们传递 numpy,Qwen 通过平均处理立体声
|
||||
ref_wav_np = waveform[0].transpose(0, 1).numpy()
|
||||
|
||||
print(f"正在生成语音克隆...")
|
||||
wavs, out_sr = model.generate_voice_clone(
|
||||
text=text,
|
||||
language=language,
|
||||
ref_audio=(ref_wav_np, sr),
|
||||
ref_text=ref_text if ref_text else None
|
||||
)
|
||||
|
||||
audio_tensor = torch.from_numpy(wavs[0]).unsqueeze(0).unsqueeze(0)
|
||||
return ({"waveform": audio_tensor, "sample_rate": out_sr},)
|
||||
|
||||
NODE_CLASS_MAPPINGS = {
|
||||
"Qwen3TTSModelLoader": Qwen3TTSModelLoader,
|
||||
"Qwen3TTSCustomVoice": Qwen3TTSCustomVoice,
|
||||
"Qwen3TTSVoiceDesign": Qwen3TTSVoiceDesign,
|
||||
"Qwen3TTSVoiceClone": Qwen3TTSVoiceClone,
|
||||
}
|
||||
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {
|
||||
"Qwen3TTSModelLoader": "Qwen3 TTS Model Loader",
|
||||
"Qwen3TTSCustomVoice": "Qwen3 TTS Custom Voice",
|
||||
"Qwen3TTSVoiceDesign": "Qwen3 TTS Voice Design",
|
||||
"Qwen3TTSVoiceClone": "Qwen3 TTS Voice Clone",
|
||||
}
|
||||
@@ -0,0 +1,234 @@
|
||||
{
|
||||
"sources": [
|
||||
{
|
||||
"id": "qwen",
|
||||
"repo": "AICoderTudou/ComfyUI-TD-Qwen3TTS",
|
||||
"file": "__init__.py",
|
||||
"local_file": "../tts-reference/loader____init__.py",
|
||||
"commit": "f5c78cd3a7ef1ca030d64d36801adad7413aded6",
|
||||
"tree": "d46dea75db0e7a640a7a1462e02576f43de2bf6b",
|
||||
"url": "https://raw.githubusercontent.com/AICoderTudou/ComfyUI-TD-Qwen3TTS/f5c78cd3a7ef1ca030d64d36801adad7413aded6/__init__.py",
|
||||
"sha256": "7d1c52e999d89ba5cc77619c179d5917cedb8ba6f6445f5b27f765d2107a6f65",
|
||||
"git_blob_sha1": "3d998eae307a57377b852fc3fe321f91c8cd61d0",
|
||||
"license_file": "../tts-reference/loader__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified",
|
||||
"verified_at": "2026-10-30T19:50:07.161435+00:00",
|
||||
"acquisition_time": "unknown for reused cache; verification time above",
|
||||
"cached_bytes_reverified": true,
|
||||
"reused_bytes_from": "docs/hel-892/tts-reference/loader____init__.py"
|
||||
},
|
||||
{
|
||||
"id": "qwen",
|
||||
"repo": "AICoderTudou/ComfyUI-TD-Qwen3TTS",
|
||||
"file": "nodes.py",
|
||||
"local_file": "qwen__nodes.py",
|
||||
"commit": "f5c78cd3a7ef1ca030d64d36801adad7413aded6",
|
||||
"tree": "d46dea75db0e7a640a7a1462e02576f43de2bf6b",
|
||||
"url": "https://raw.githubusercontent.com/AICoderTudou/ComfyUI-TD-Qwen3TTS/f5c78cd3a7ef1ca030d64d36801adad7413aded6/nodes.py",
|
||||
"sha256": "0c3c59853a161d070eca158e3c0e539770a5af98be25fa89b3a0dd5804a78e6d",
|
||||
"git_blob_sha1": "faac9028ef17a7a2c0f56456ccd1fc0cb858b1d7",
|
||||
"license_file": "../tts-reference/loader__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified",
|
||||
"verified_at": "2026-10-30T19:50:07.161648+00:00",
|
||||
"acquisition_time": "unknown for reused cache; verification time above",
|
||||
"cached_bytes_reverified": true
|
||||
},
|
||||
{
|
||||
"id": "qwen",
|
||||
"repo": "AICoderTudou/ComfyUI-TD-Qwen3TTS",
|
||||
"file": "LICENSE",
|
||||
"local_file": "../tts-reference/loader__LICENSE",
|
||||
"commit": "f5c78cd3a7ef1ca030d64d36801adad7413aded6",
|
||||
"tree": "d46dea75db0e7a640a7a1462e02576f43de2bf6b",
|
||||
"url": "https://raw.githubusercontent.com/AICoderTudou/ComfyUI-TD-Qwen3TTS/f5c78cd3a7ef1ca030d64d36801adad7413aded6/LICENSE",
|
||||
"sha256": "c4a2cd14eb3abe621891b235bbe2cfd65f1f71afcfcd5c9b691bb016387dfe88",
|
||||
"git_blob_sha1": "377b1cfa01684d2d02891c9f149d32b44bded68f",
|
||||
"license_file": "../tts-reference/loader__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified",
|
||||
"verified_at": "2026-10-30T19:50:07.161828+00:00",
|
||||
"acquisition_time": "unknown for reused cache; verification time above",
|
||||
"cached_bytes_reverified": true,
|
||||
"reused_bytes_from": "docs/hel-892/tts-reference/loader__LICENSE"
|
||||
},
|
||||
{
|
||||
"id": "layer",
|
||||
"repo": "chflame163/ComfyUI_LayerStyle",
|
||||
"file": "__init__.py",
|
||||
"local_file": "../gif-images-reference/layer____init__.py",
|
||||
"commit": "89014d833d2ad0998d724090eff1456692692a1d",
|
||||
"tree": "338d8bf0ff7f1c01703b52b024fc03ffabaf49cb",
|
||||
"url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/__init__.py",
|
||||
"sha256": "952d1d20b52a8d9d544c12adad99a7ab633bd7dc9db4a352972eb127e10eb4a0",
|
||||
"git_blob_sha1": "fd50801f4dfafb2049c6755b14d5474f19cefa7a",
|
||||
"license_file": "../gif-images-reference/layer__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified",
|
||||
"verified_at": "2026-10-30T19:50:07.163443+00:00",
|
||||
"acquisition_time": "unknown for reused cache; verification time above",
|
||||
"cached_bytes_reverified": true,
|
||||
"reused_bytes_from": "docs/hel-892/gif-images-reference/layer____init__.py"
|
||||
},
|
||||
{
|
||||
"id": "layer",
|
||||
"repo": "chflame163/ComfyUI_LayerStyle",
|
||||
"file": "py/purge_vram.py",
|
||||
"local_file": "../storyboard-reference/layer__py__purge_vram.py",
|
||||
"commit": "89014d833d2ad0998d724090eff1456692692a1d",
|
||||
"tree": "338d8bf0ff7f1c01703b52b024fc03ffabaf49cb",
|
||||
"url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/purge_vram.py",
|
||||
"sha256": "52a910b44f5a63f3e41bc6d4b756977b5b47d2591198fd1b200c2058807dd215",
|
||||
"git_blob_sha1": "2777233ea435d3d32da7db12eda83700cae71365",
|
||||
"license_file": "../gif-images-reference/layer__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified",
|
||||
"verified_at": "2026-10-30T19:50:07.163603+00:00",
|
||||
"acquisition_time": "unknown for reused cache; verification time above",
|
||||
"cached_bytes_reverified": true,
|
||||
"reused_bytes_from": "docs/hel-892/storyboard-reference/layer__py__purge_vram.py"
|
||||
},
|
||||
{
|
||||
"id": "layer",
|
||||
"repo": "chflame163/ComfyUI_LayerStyle",
|
||||
"file": "py/imagefunc.py",
|
||||
"local_file": "../gif-images-reference/layer__py__imagefunc.py",
|
||||
"commit": "89014d833d2ad0998d724090eff1456692692a1d",
|
||||
"tree": "338d8bf0ff7f1c01703b52b024fc03ffabaf49cb",
|
||||
"url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/py/imagefunc.py",
|
||||
"sha256": "7722b4fcdb50398987bee2032fd0afe7fbe7880f142982f2bbe8dbdc774940f0",
|
||||
"git_blob_sha1": "f9ec0adfb653837a96802584b5ef36dfce4034ce",
|
||||
"license_file": "../gif-images-reference/layer__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified",
|
||||
"verified_at": "2026-10-30T19:50:07.164243+00:00",
|
||||
"acquisition_time": "unknown for reused cache; verification time above",
|
||||
"cached_bytes_reverified": true,
|
||||
"reused_bytes_from": "docs/hel-892/gif-images-reference/layer__py__imagefunc.py"
|
||||
},
|
||||
{
|
||||
"id": "layer",
|
||||
"repo": "chflame163/ComfyUI_LayerStyle",
|
||||
"file": "LICENSE",
|
||||
"local_file": "../gif-images-reference/layer__LICENSE",
|
||||
"commit": "89014d833d2ad0998d724090eff1456692692a1d",
|
||||
"tree": "338d8bf0ff7f1c01703b52b024fc03ffabaf49cb",
|
||||
"url": "https://raw.githubusercontent.com/chflame163/ComfyUI_LayerStyle/89014d833d2ad0998d724090eff1456692692a1d/LICENSE",
|
||||
"sha256": "5db9f53ef698ae099810ef003ef0668f644ebf4ffc041d5a2fffdaafc81569b0",
|
||||
"git_blob_sha1": "e2568121d079845a006a2935286b89d1721e9559",
|
||||
"license_file": "../gif-images-reference/layer__LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified",
|
||||
"verified_at": "2026-10-30T19:50:07.164385+00:00",
|
||||
"acquisition_time": "unknown for reused cache; verification time above",
|
||||
"cached_bytes_reverified": true,
|
||||
"reused_bytes_from": "docs/hel-892/gif-images-reference/layer__LICENSE"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "comfy_extras/nodes_audio.py",
|
||||
"local_file": "core__comfy_extras__nodes_audio.py",
|
||||
"commit": "9d273d3ab1fb1d2c8b34de4d54cabe50a5a3e5bc",
|
||||
"tree": "1e88df8d1a3937bba95b83979db43874a8332ecd",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/9d273d3ab1fb1d2c8b34de4d54cabe50a5a3e5bc/comfy_extras/nodes_audio.py",
|
||||
"sha256": "07cacf0764c5957416cd2158ebacb19bd53c8f2412282aab91b82daa745b0ba1",
|
||||
"git_blob_sha1": "15b3aa4019007e6efcda3fc02d43d4edd2b0dbe1",
|
||||
"license_file": "../background-reference/LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified",
|
||||
"verified_at": "2026-10-30T19:50:08.809608+00:00",
|
||||
"acquisition_time": "unknown for reused cache; verification time above",
|
||||
"cached_bytes_reverified": true
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "comfy_api/latest/_ui.py",
|
||||
"local_file": "../birefnet-reference/core__comfy_api__latest___ui.py",
|
||||
"commit": "9d273d3ab1fb1d2c8b34de4d54cabe50a5a3e5bc",
|
||||
"tree": "1e88df8d1a3937bba95b83979db43874a8332ecd",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/9d273d3ab1fb1d2c8b34de4d54cabe50a5a3e5bc/comfy_api/latest/_ui.py",
|
||||
"sha256": "c3ff901299ffb58e3aceb6ab672254d21e2e9822e346786c0ed3bba56b93d67f",
|
||||
"git_blob_sha1": "e238cdf3ce3cd4475deda2f59bc43823558d14aa",
|
||||
"license_file": "../background-reference/LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified",
|
||||
"verified_at": "2026-10-30T19:50:09.218902+00:00",
|
||||
"acquisition_time": "unknown for reused cache; verification time above",
|
||||
"cached_bytes_reverified": true,
|
||||
"reused_bytes_from": "docs/hel-892/birefnet-reference/core__comfy_api__latest___ui.py"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "comfy_api/latest/_io.py",
|
||||
"local_file": "core__comfy_api__latest___io.py",
|
||||
"commit": "9d273d3ab1fb1d2c8b34de4d54cabe50a5a3e5bc",
|
||||
"tree": "1e88df8d1a3937bba95b83979db43874a8332ecd",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/9d273d3ab1fb1d2c8b34de4d54cabe50a5a3e5bc/comfy_api/latest/_io.py",
|
||||
"sha256": "e7f48d231d6a9ff515ff02a4290138db6299c1e5b2b714786261befc9670d400",
|
||||
"git_blob_sha1": "4969d350643658bb6e7deeeaff3475a21b730391",
|
||||
"license_file": "../background-reference/LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified",
|
||||
"verified_at": "2026-10-30T19:50:09.634251+00:00",
|
||||
"acquisition_time": "unknown for reused cache; verification time above",
|
||||
"cached_bytes_reverified": true
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "nodes.py",
|
||||
"local_file": "core__nodes.py",
|
||||
"commit": "9d273d3ab1fb1d2c8b34de4d54cabe50a5a3e5bc",
|
||||
"tree": "1e88df8d1a3937bba95b83979db43874a8332ecd",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/9d273d3ab1fb1d2c8b34de4d54cabe50a5a3e5bc/nodes.py",
|
||||
"sha256": "329f0dfbaf7f692bed2b3706f06cd68456fb15742ba19cb8ddccb5a9829b1a2e",
|
||||
"git_blob_sha1": "cba8eacc2f149e30acdfd5ad404e0471aa58abe0",
|
||||
"license_file": "../background-reference/LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified",
|
||||
"verified_at": "2026-10-30T19:50:10.043696+00:00",
|
||||
"acquisition_time": "unknown for reused cache; verification time above",
|
||||
"cached_bytes_reverified": true
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "folder_paths.py",
|
||||
"local_file": "../rtx-reference/core__folder_paths.py",
|
||||
"commit": "9d273d3ab1fb1d2c8b34de4d54cabe50a5a3e5bc",
|
||||
"tree": "1e88df8d1a3937bba95b83979db43874a8332ecd",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/9d273d3ab1fb1d2c8b34de4d54cabe50a5a3e5bc/folder_paths.py",
|
||||
"sha256": "da62dbe3cc99c8d2bce4dd1df01c5a0ca149f9ed8522cc477e661629052ce112",
|
||||
"git_blob_sha1": "9c96540e3dd90626e9a6d4c1e3e00b80fffb2df8",
|
||||
"license_file": "../background-reference/LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified",
|
||||
"verified_at": "2026-10-30T19:50:10.427922+00:00",
|
||||
"acquisition_time": "unknown for reused cache; verification time above",
|
||||
"cached_bytes_reverified": true,
|
||||
"reused_bytes_from": "docs/hel-892/rtx-reference/core__folder_paths.py"
|
||||
},
|
||||
{
|
||||
"id": "core",
|
||||
"repo": "Comfy-Org/ComfyUI",
|
||||
"file": "LICENSE",
|
||||
"local_file": "../background-reference/LICENSE",
|
||||
"commit": "9d273d3ab1fb1d2c8b34de4d54cabe50a5a3e5bc",
|
||||
"tree": "1e88df8d1a3937bba95b83979db43874a8332ecd",
|
||||
"url": "https://raw.githubusercontent.com/Comfy-Org/ComfyUI/9d273d3ab1fb1d2c8b34de4d54cabe50a5a3e5bc/LICENSE",
|
||||
"sha256": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
||||
"git_blob_sha1": "f288702d2fa16d3cdf0035b15a9fcbc552cd88e7",
|
||||
"license_file": "../background-reference/LICENSE",
|
||||
"applicability": "源声明准确提交;发布包/目标安装绑定未知",
|
||||
"transport": "GitHub pinned raw text; blob verified",
|
||||
"verified_at": "2026-10-30T19:50:10.855457+00:00",
|
||||
"acquisition_time": "unknown for reused cache; verification time above",
|
||||
"cached_bytes_reverified": true,
|
||||
"reused_bytes_from": "docs/hel-892/background-reference/LICENSE"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user