The moment it happens
Turn text into an MP3
Text you post to a link is read out by an OpenAI voice and the audio file is emailed to you.
- Runs
- The moment it happens
- Apps
- OpenAI
- AI
- Not needed
- Access
- API key
Send this to your assistant
Create a ClickRuntime automation: give me a link that turns any text I send into an MP3 using OpenAI's alloy voice, then emails me a link to the file.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
A course creator publishes written lessons but learners keep asking for audio versions to listen to on a commute. Recording every lesson is a project in itself, and a free text-to-speech website means pasting text, waiting, downloading and uploading the file again. A support team wants a spoken status message for a voicemail system, and a developer wants audio notifications in an app. Each of them needs speech from text on demand.
When text is posted to your link, it is received immediately and sent to OpenAI's speech endpoint with the voice you picked. The MP3 that comes back is stored and its link is emailed to you, usually within a minute, so a lesson, a notification or a message becomes audio without opening a recording tool.
It also works for accessibility, narrated articles and audio previews of newsletters.
What you get out of it
Audio versions with no recording session
A written lesson or article becomes listenable in a minute. That opens your content to people who learn by listening, and it costs far less than hiring a narrator. It also makes it easy to offer audio on every new lesson.
Any tool can request speech
Because the input is a simple link, forms, scripts and other automations can all send text and get audio back. One setup serves the whole team and many different projects.
Accessibility improves quickly
Spoken versions of pages help readers with low vision or dyslexia, and anyone who prefers listening. Providing them takes seconds once the link is in place. That makes written content reach commuters, drivers and people who learn best by listening, without extra recording sessions.
Consistent voice across everything
Using the same voice setting for all requests means every clip sounds like the same narrator. That helps courses, product tours and voice messages feel professionally produced. Because audio comes back so fast, you can test several phrasings of an announcement and keep the one that sounds natural.
Fast iteration on wording
If a sentence sounds awkward when spoken, you fix the text and send it again. Hearing the result within a minute makes tuning scripts quick compared with re-recording. This is far quicker than booking time, recording, editing and exporting again for every small edit.
How it works
What happens, step by step
When text is sent to your ClickRuntime link, the automation starts straight away.
An OpenAI voice reads the text aloud and creates an MP3.
The file is saved to your Google Drive and you get an email with the text and a link to the audio.
Before it runs live
- Connect OpenAI
- Paste your automation's link into the other app's webhook settings
What you get
Build your own
Need it to work differently?
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
Changes you can ask for
- Act only on the items that match your own rules, and skip the rest
- Add an AI step, for example to summarize, sort or draft a reply
- Add another app, for example also send it to Slack
- Combine it with other OpenAI steps into one automation
Under the hood
The code that runs this automation
import json
from clickruntime import on_event, credentials, http, notify
@on_event
def handle(event):
text = (event.json or {}).get("text") or event.body
if not text:
return {"error": "nothing to read"}
mp3 = http.post("https://api.openai.com/v1/audio/speech", timeout=120,
headers={"Authorization": f"Bearer {credentials.secret('OPENAI_API_KEY')}"},
json={"model": "tts-1", "voice": "alloy", "input": text[:4096]})
mp3.raise_for_status()
# Store the MP3 in Google Drive so the email can link to it.
meta = json.dumps({"name": f"speech-{event.event_id}.mp3"})
link = http.post("https://www.googleapis.com/upload/drive/v3/files",
params={"uploadType": "multipart", "fields": "webViewLink"},
headers={"Authorization": f"Bearer {credentials.connection('google', 'work')}"},
files={"metadata": ("m", meta, "application/json"),
"file": ("f", mp3.content, "audio/mpeg")}).json()["webViewLink"]
notify.email_me("Your MP3 is ready", f"{text[:200]}\n\n{link}")
return {"link": link}FAQ
Common questions
Which voices and languages are available?
Is there a length limit for the text?
Does it need an OpenAI key?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Turn voice notes into text and action items
Any recording you send to your link comes back as a transcript, a short summary and a list of to-dos.
See how it worksPull the details out of receipt photos
Photos or screenshots you send are read and returned as tidy fields, like merchant, date and total.
See how it worksTranslate recordings into English
Audio in another language comes back as an English transcript, with an optional spoken version.
See how it worksKeep exploring
Set up “Turn text into an MP3” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.