OpenAI Text-to-Speech Generation
detail.loadingPreview
Generate audio from text using OpenAI's TTS API.
About This Workflow
This workflow demonstrates how to use the OpenAI Text-to-Speech API to convert written text into spoken audio. It's a straightforward implementation that takes plain text, specifies a voice, and sends it to the OpenAI API to receive an audio file.
Key Features
- Integrates with OpenAI's Text-to-Speech (TTS) API.
- Supports selecting different TTS voices.
- Configurable input text and voice parameters.
- Outputs an MP3 audio file.
How To Use
- Trigger: The workflow starts with a manual trigger, which can be replaced with any other n8n trigger.
- Set Input Text and TTS Voice: Use the 'Set input text and TTS voice' node to define the text you want to convert to speech and select the desired voice (e.g., 'alloy', 'echo', 'fable', 'onyx', 'nova', 'shimmer'). The
jsonOutputfield should contain a JSON object withinput_textandvoicekeys. - Send HTTP Request to OpenAI's TTS Endpoint: This node makes the actual API call to OpenAI. Ensure you have a valid OpenAI credential configured in n8n with the necessary API key. The node is pre-configured to send a POST request to
https://api.openai.com/v1/audio/speechwith the model, input text, and voice. - Output: The output from the OpenAI API is an MP3 audio file, which will be available in the workflow's execution results.
Apps Used
Workflow JSON
{
"id": "4c0a9e84-3945-408c-8a2b-aa96a327af4a",
"name": "OpenAI Text-to-Speech Generation",
"nodes": 22,
"category": "Media",
"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: 4c0a9e84-3945...
About the Author
SaaS_Connector
Integration Guru
Connecting CRM, Notion, and Slack to automate your life.
Statistics
Related Workflows
Discover more workflows you might like
Automate Local Business Outreach with AI-Powered Yelp Scraper
This workflow automates the process of scraping local business details from Yelp using AI, then leverages that data to send personalized partnership proposals via Gmail. It's perfect for sales and marketing teams looking to streamline lead generation and outreach campaigns.
Automate Getty Images Editorial Search & CMS Integration
This n8n workflow automates searching for editorial images on Getty Images, extracts key details and embed codes, and prepares them for seamless integration into your Content Management System (CMS), streamlining your content creation process.
Universal CSV to JSON API Converter
Effortlessly transform CSV data into structured JSON with this versatile n8n workflow. Integrate it into any application as a custom API endpoint, supporting various input methods including file uploads and raw text.