Generate Audio from Text using OpenAI's Text-to-Speech
detail.loadingPreview
This n8n workflow automates the generation of audio files from text input using OpenAI's text-to-speech API. Triggered by a webhook, it converts text to speech and responds with the audio binary.
🚀Ready to Deploy This Workflow?
About This Workflow
Overview
This workflow leverages the power of OpenAI's Text-to-Speech API to convert written text into spoken audio. It's designed to be triggered via a webhook, making it ideal for real-time audio generation needs. The workflow takes text input from the webhook request, sends it to the OpenAI node for audio conversion, and then responds to the webhook with the generated audio file.
Key Features
- Trigger workflow via webhook.
- Convert text to speech using OpenAI API.
- Supports different OpenAI voices (e.g., 'fable').
- Responds to webhook with audio binary data.
How To Use
- Configure the Webhook node: Set the desired path (e.g.,
/generate_audio) and HTTP method (POST). - Configure the OpenAI node: Connect your OpenAI API credentials and ensure the
resourceis set toaudio. Map the text input from the webhook body ($json.body.text_to_convert) to theinputparameter. - Configure the Respond to Webhook node: Ensure it's set to respond with
binary. - Activate the workflow: Toggle the workflow to active to get a production URL, or use the test URL for immediate testing.
- Send a POST request to the webhook URL with a JSON body containing
"text_to_convert": "Your text here".
Apps Used
Workflow JSON
{
"id": "d2b49be1-0464-4161-8e55-be7a3eda4cc8",
"name": "Generate Audio from Text using OpenAI's Text-to-Speech",
"nodes": 0,
"category": "OpenAI and LLMs",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: d2b49be1-0464...
About the Author
Crypto_Watcher
Web3 Developer
Automated trading bots and blockchain monitoring workflows.
Statistics
Verification Info
Related Workflows
Discover more workflows you might like
Generate Images with OpenAI via Webhook
This workflow leverages the Webhook and OpenAI nodes to generate images based on user prompts. It's ideal for quickly creating visual content via simple URL requests.
LangChain Workflow Retriever: Q&A on Workflow Data with OpenAI
This n8n workflow demonstrates how to use the LangChain Retriever node to query data generated by another workflow. It leverages an OpenAI Chat Model for question answering, providing a powerful way to interact with your automated processes.
Automated AI Email Responder with Summarization and Vector Search
This workflow automatically responds to incoming emails by summarizing them, retrieving relevant information from a Qdrant vector store, and generating a concise, professional reply using AI. It leverages 'Email Trigger (IMAP)', 'DeepSeek R1', and 'Send Email' nodes for core email handling.