Serve text-to-speech MP3 over a webhook with Smallest.ai
UnknownWhat this workflow does
This workflow has 9 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Smallestai (community).
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Check if request has text (If): checks a condition and branches into true / false
- Apply Defaults from Input (Edit Fields (Set)): sets 2 fields: text, voice
- Return Error if text is empty (Respond to Webhook): sends the response back to the webhook caller
- Check if request has voice id (If): checks a condition and branches into true / false
- Generate audio with custom voice id (Smallestai): uses Smallestai
- Generate audio with default voice id (Smallestai): uses Smallestai
- Success (Respond to Webhook): sends the response back to the webhook caller
- Return Error if TTS is failed (Respond to Webhook): sends the response back to the webhook caller
Services it uses
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that n8n-nodes-smallestai is verified or supports 3.0 (used in Generate audio with custom voice id, Generate audio with default voice id).
Nodes used (5)
- Webhook
n8n-nodes-base.webhook - If
n8n-nodes-base.if - Smallestai
n8n-nodes-smallestai.smallestai - Respond to Webhook
n8n-nodes-base.respondToWebhook - Edit Fields (Set)
n8n-nodes-base.set
From the author
Quick Overview This workflow exposes a POST webhook that converts incoming text into an MP3 audio stream using Smallest.ai, optionally using a provided custom voice ID, and returns the audio inline in the same HTTP response. How it works 1. Receives a POST…