ElevenLabs: Texto a voz

This ComfyUI workflow leverages the power of ElevenLabs to transform written text into ultra-realistic speech. Utilizing nodes like ElevenLabsTextToSpeech and ElevenLabsVoiceSelector, users can either select from a range of preset voices or upload a sample to clone a specific voice for synthesis. The workflow is versatile, allowing for both text-to-speech conversion and voice cloning, making it a powerful tool for content creators, educators, and developers who need high-quality audio outputs. By integrating nodes such as LoadAudio and SaveAudioMP3, users can manage audio inputs and outputs efficiently, ensuring a seamless experience from text input to audio file generation.

API

Usa este flujo de trabajo desde código

Cada flujo de trabajo de Comfy es un grafo JSON. El siguiente payload es este flujo de trabajo, exactamente como lo ejecuta ComfyUI: descárgalo desde la URL, guárdalo en control de versiones o cárgalo en ComfyUI y ejecútalo nodo por nodo.

api_elevenlabs_text_to_speech.json
Obteniendo JSON del flujo de trabajo…

Ejecuta desde TypeScript o Python con el Comfy SDK. El mismo código funciona en Comfy Cloud o en un ComfyUI propio: solo cambia la URL base.

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

// Run "ElevenLabs: Texto a voz" (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("218")[0].toFile("output.png"); // SaveAudioAdvanced

El SDK utiliza un flujo de trabajo en formato API: abre este flujo de trabajo en ComfyUI y usa Archivo → Exportar flujo de trabajo (API).

El acceso a la API de Comfy Cloud requiere un plan con clave API.

Preguntas frecuentes

Preguntas Frecuentes

Ver todos los workflows
Showing 30 of 30 templates