π¬ Generate sound effects from chat with Groq, ElevenLabs and Google Drive
β‘ 18 views Β· π¬ Content Creation & Video
Description
Quick Overview
This workflow turns an n8n Chat message into a generated sound effect using Groq (Llama 3.3) to refine the prompt, calls the ElevenLabs sound-generation API to create an MP3, uploads the file to Google Drive, and replies in chat with a shareable link.
How it works
- Receives a message in an n8n Chat trigger containing the userβs description of a sound.
- Uses Groq (Llama 3.3) to rewrite the description into a single detailed ElevenLabs sound-effects prompt and choose duration and prompt-influence settings.
- Parses the modelβs JSON response and clamps duration (0.5β30s) and prompt influence (0β1), falling back to the original message if parsing fails.
- Sends the prompt and settings to the ElevenLabs sound-generation API and downloads the generated MP3.
- Uploads the MP3 to Google Drive with a timestamped filename based on the prompt text.
- Responds in chat with the prompt used, the final settings, and a Google Drive link, or returns a friendly error message if generation fails.
Setup
- Create an ElevenLabs API credential using HTTP Header Auth (header name
xi-api-key) and select it on the ElevenLabs request. - Add a Groq API credential and select it on the Groq Llama model node.
- Connect your Google Drive OAuth2 account and choose the target Drive and folder for uploads (root by default).
- If you want external apps to initiate requests, enable and copy the chat trigger/webhook URL and configure it in your chat client or integration.
π Nodes Used
HTTP Request, Google Drive, Basic LLM Chain, Chat Trigger, Groq Chat Model
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File