优化tts逻辑

This commit is contained in:
puke
2025-10-29 21:40:37 +08:00
parent 8c03bd1bcd
commit fb18adf318
16 changed files with 505 additions and 318 deletions

View File

@@ -0,0 +1,155 @@
{
"29": {
"inputs": {
"seed": 362283278588365,
"steps": 20,
"cfg": 1.5,
"sampler_name": "euler",
"scheduler": "simple",
"denoise": 1,
"model": [
"30",
0
],
"positive": [
"35",
0
],
"negative": [
"33",
0
],
"latent_image": [
"43",
0
]
},
"class_type": "KSampler",
"_meta": {
"title": "KSampler"
}
},
"30": {
"inputs": {
"ckpt_name": "flux1-dev-fp8.safetensors"
},
"class_type": "CheckpointLoaderSimple",
"_meta": {
"title": "Load Checkpoint"
}
},
"31": {
"inputs": {
"text": [
"46",
0
],
"clip": [
"30",
1
]
},
"class_type": "CLIPTextEncode",
"_meta": {
"title": "CLIP Text Encode (Prompt)"
}
},
"33": {
"inputs": {
"conditioning": [
"31",
0
]
},
"class_type": "ConditioningZeroOut",
"_meta": {
"title": "ConditioningZeroOut"
}
},
"35": {
"inputs": {
"guidance": 3.5,
"conditioning": [
"31",
0
]
},
"class_type": "FluxGuidance",
"_meta": {
"title": "FluxGuidance"
}
},
"36": {
"inputs": {
"filename_prefix": "ComfyUI",
"images": [
"37",
0
]
},
"class_type": "SaveImage",
"_meta": {
"title": "Save Image"
}
},
"37": {
"inputs": {
"samples": [
"29",
0
],
"vae": [
"30",
2
]
},
"class_type": "VAEDecode",
"_meta": {
"title": "VAE Decode"
}
},
"41": {
"inputs": {
"value": 512
},
"class_type": "easy int",
"_meta": {
"title": "$width.value"
}
},
"42": {
"inputs": {
"value": 512
},
"class_type": "easy int",
"_meta": {
"title": "$height.value"
}
},
"43": {
"inputs": {
"width": [
"41",
0
],
"height": [
"42",
0
],
"batch_size": 1
},
"class_type": "EmptyLatentImage",
"_meta": {
"title": "Empty Latent Image"
}
},
"46": {
"inputs": {
"value": "a dog"
},
"class_type": "PrimitiveStringMultiline",
"_meta": {
"title": "$prompt.value!"
}
}
}

View File

@@ -0,0 +1,78 @@
{
"1": {
"inputs": {
"text": [
"3",
0
],
"voice": [
"5",
0
],
"speed": [
"8",
0
],
"pitch": 0
},
"class_type": "EdgeTTS",
"_meta": {
"title": "Edge TTS 🔊"
}
},
"3": {
"inputs": {
"value": "床前明月光,疑是地上霜。"
},
"class_type": "PrimitiveStringMultiline",
"_meta": {
"title": "$text.value!"
}
},
"4": {
"inputs": {
"filename_prefix": "audio/ComfyUI",
"quality": "V0",
"audioUI": "",
"audio": [
"1",
0
]
},
"class_type": "SaveAudioMP3",
"_meta": {
"title": "Save Audio (MP3)"
}
},
"5": {
"inputs": {
"text": "[Chinese] zh-CN Yunjian",
"anything": [
"7",
0
]
},
"class_type": "easy showAnything",
"_meta": {
"title": "Show Any"
}
},
"7": {
"inputs": {
"value": "[Chinese] zh-CN Yunjian"
},
"class_type": "PrimitiveStringMultiline",
"_meta": {
"title": "$voice.value"
}
},
"8": {
"inputs": {
"value": 1
},
"class_type": "easy float",
"_meta": {
"title": "$speed.value"
}
}
}