Quick Overview
This workflow receives a webhook request with an audio sample URL, voice name, and script, clones a voice and generates a matching voiceover using Smallest AI, uploads the MP3 to Google Drive, logs the voice ID in Google Sheets, and returns a public link in the webhook response.
How it works
- Receives a POST webhook request containing an
audio_url, voice_name, and script text.
- Downloads the provided voice sample file from the
audio_url.
- Sends the sample to Smallest AI Voice Cloning to create a new voice profile and extracts the returned
voiceId.
- Truncates the script text to a safe length and synthesizes speech with Smallest AI using the cloned voice ID.
- Uploads the generated MP3 voiceover to Google Drive and updates its sharing settings to be publicly readable.
- Appends the cloned voice ID and voice name to a Google Sheets “voice library” spreadsheet and returns a JSON response with the voice ID, Drive link, and timestamp.
Setup
- Create a Smallest AI API key, store it securely in n8n, and replace the hardcoded
Authorization: Bearer ... header used for voice cloning.
- Add a Smallest AI credential in n8n for the speech synthesis step and ensure it has access to the same Smallest AI workspace.
- Connect your Google Drive and Google Sheets credentials, and update the target Drive folder and spreadsheet/sheet IDs if you don’t want to use the preconfigured locations.
- Activate the workflow, copy the production webhook URL, and send POST requests that include
body.audio_url, body.voice_name, and body.script.