ElevenLabs:文生语音

本 ComfyUI 工作流利用 ElevenLabs 强大的语音合成能力,将书面文本转化为超逼真语音。通过 ElevenLabsTextToSpeech 和 ElevenLabsVoiceSelector 等节点,用户可选择预设声音或上传样本进行声音克隆。该工作流支持文本转语音和声音克隆,适合内容创作者、教育者和开发者需要高质量音频输出的场景。集成 LoadAudio 和 SaveAudioMP3 节点,便于音频输入输出管理,实现从文本到音频文件的高效流程。

API

Use this workflow from code

Every Comfy workflow is a JSON graph. The payload below is this workflow, exactly as ComfyUI runs it — fetch it from the URL, keep it in version control, or load it in ComfyUI and run it node by node.

api_elevenlabs_text_to_speech.json
Fetching workflow JSON…

Run it from TypeScript or Python with the Comfy SDK. The same code targets Comfy Cloud or a ComfyUI you host yourself — only the base URL changes.

// Install (beta)
npm i @comfyorg/sdk

// Run "ElevenLabs:文生语音" (TypeScript)
import { Comfy } from "@comfyorg/sdk";

const client = new Comfy({ apiKey: "comfyui-..." });

// This workflow, exported in API format (see note below)
const wf = await client.workflows.fromFile("api_elevenlabs_text_to_speech_api.json");

const job = await client.run(wf);
await job.getOutputs("215")[0].toFile("output.png"); // SaveAudioMP3

The SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API).

Comfy Cloud API access requires a plan with an API key.

常见问题

常见问题

查看所有工作流
Character
Cinematic
Image to Video
Lip Sync
Multiple Angles
Portrait
Style Reference
Style Transfer
Text to Video
Video Generation
Video
Showing 30 of 30 templates