Templates / Serve text-to-speech MP3 over a webhook with Smallest.ai

Serve text-to-speech MP3 over a webhook with Smallest.ai

Unknown

by Zain Khan ✓ · 25 views · created 2026-07-03 · Content Creation, Multimodal AI

Unknown. This template uses community nodes we can't verify statically. Uses community nodes that can't be verified statically (unverified community packages are off by default in 3.0). Static check, last run 2026-10-19.

Community nodes

These come from third-party npm packages. In n8n 3.0 unverified community packages are off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).

Nodes used (5)

What it does

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 request on the /text-to-speech webhook endpoint with a JSON body. 2. Checks whether the request includes a voice field to indicate a custom voice ID. 3. If a custom voice ID is provided, sends the text and voice ID to Smallest.ai to generate an MP3 with that voice. 4. If no voice ID is provided, sends the text to Smallest.ai to synthesize an MP3 using the default voice settings. 5. Returns the generated MP3 as binary data to the caller with Content-Type: audio/mpeg and an inline filename of speech.mp3. Setup 1. Add your Smallest.ai API credentials in both Smallest.ai speech generation steps. 2. Activate the workflow and copy the production webhook URL, then configure your client to POST to /text-to-speech. 3. Send requests with a JSON payload containing text (required) and voice (optional custom voice ID).

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.