Alerts and text-to-speech
This page is for a streamer who wants paid support to show on stream. After reading it you can put alerts into OBS and have tip messages read aloud in a voice of your choice.
When someone pays to support you, on your site or on a platform you stream to, your site makes an alert. The alert shows as a card in your site's chat, and as a pop-up on your stream if you add the alert overlay to OBS. With text-to-speech (TTS) switched on, the supporter's message is also read aloud on your stream.
What makes an alert
An alert comes from a paid event. Platforms you have connected send their events to your site as they happen. Payment services tell your site through a webhook: a short message sent to an address on your site each time a payment happens.
| Where | Events that make an alert |
|---|---|
| Your site | Tips, Supporter subscriptions and gifted subscriptions, paid by card (Stripe) or PayPal |
| Twitch | Subs, resubs, gifted subs (one or many at once), cheers (bits), Prime and gift-sub upgrades, pay-it-forward |
| YouTube | Super Chats, Super Stickers, new memberships, membership milestones, gifted memberships |
| Kick | Subs, resubs, gifted subs, Kicks |
| Ko-fi, Patreon, Streamlabs | Donations and pledges, once each one is connected |
Follows and raids do not make an alert. Only events that carry money do, because each alert also moves the support bar and the stream timer, which count money.
To get alerts from a platform, connect it first: see Connect your platforms. Payment setup is on Tips, store and subscriptions.
The alert card in chat
Each alert is a card in your site's chat with the supporter's name, what they did ("subscribed ยท Tier 1", "gifted 5 subs", "super chat") and their message. Tip cards show the amount, and so do cards for payments made on your own site. Cards for platform subs (Twitch, YouTube, Kick) show no dollar figure: your site only knows an estimate of what such a sub is worth to you, and an estimate should not be shown publicly as if it were the price. When the stream timer gets time from the payment, the card also shows how much time was added.
Messages pass the same word filter as ordinary chat, so a blocked word in a donation message is masked on the card too.
๐ผ Image: a tip alert card in site chat, with the name, amount, message and "time added".
Each event makes one alert, even if the platform sends it twice. Your site remembers each event's own ID and ignores a repeat, so a retry never shows a second card or counts the money twice.
The alert overlay in OBS
The alert overlay pops each alert up on your stream: the person, what they did, the amount and their message. Alerts queue and show one at a time, and a long message stays up long enough to read. The overlay is see-through and shows nothing between alerts.
- Open Admin Panel โ Utility โ Effects (under OBS in the Admin Panel's list). On the In OBS card, press Copy beside the Alerts address. It is on your site's
api.address, for examplehttps://api.example.com/overlay/alert. - In OBS, under Sources, click + and choose Browser (OBS: browser source).
- Paste the address into URL. Set width 1920 and height 1080.
- Put the source in every scene you stream from, or in one scene you nest into each.
The other overlays work the same way. The support bar's address is on Utility โ Support bar, and the support bubble, poll and sticker addresses are on Utility โ OBS: see The support bar and the stream timer and OBS.
On a new install, alerts show without a sound clip, and there is no switch for clips yet: playing them through OBS is where the work is. Spoken alerts work today: switch on text-to-speech below and each alert's message is read aloud on your stream.
Text-to-speech
TTS turns text into speech with a voice from ElevenLabs, a paid text-to-speech service. Your site sends ElevenLabs the text, gets an audio clip back and plays it into your stream through the rig page, a browser source in OBS. Links and emote codes are left out of what is read.
With TTS on, your site reads:
- the message on an alert
- a chat message a viewer has paid points for with Read a message aloud (see Points)
- the chat bot, when it speaks
How much of a tip's message is read depends on how much the person paid. A long message read aloud takes air time, so a bigger tip buys more of it:
| Tip | Characters read |
|---|---|
| Under $5 | 50 |
| $5 or more | 150 |
| $10 or more | 300 |
| $25 or more | 500 |
The tip form uses the same limit for its message box and shows a counter, so a tipper knows what will be read before paying. Other alerts read up to 500 characters of their message.
TTS is off on a new install, so nothing plays into your stream before you have checked your audio. While it is off, Read a message aloud shows as unavailable in the store, greyed out with a reason, and viewers are never charged for it.
Switching TTS on
- Make an ElevenLabs account and an API key: in ElevenLabs, open your profile, then API Keys (ElevenLabs: API keys). Anyone who has the key can spend your ElevenLabs credits, so never share it.
- Pick a voice in ElevenLabs on its Voices page and copy its voice ID.
- Open Admin Panel โ Utility โ TTS. The page has the same steps in a How to set up Read-aloud voice (ElevenLabs) guide. On the Voice card, paste the key in ElevenLabs API key and the voice ID in Voice. The key is stored encrypted.
- Add the rig page to OBS if you have not yet: switch on OBS control, the OBS module, at the top of Admin Panel โ Utility โ OBS, then follow OBS. Tick Control audio via OBS on the source, so the voice goes into your stream and not only to your own speakers.
- Open Admin Panel โ Utility โ OBS and press Test voice. It plays a short run of tones down the real path, and the avatar on the rig page moves while it plays. If you hear nothing, check that the page shows the rig page as connected and that Control audio via OBS is ticked.
- Back on Utility โ TTS, switch on Speak alerts and paid messages and save.
- This switch applies when the chat service restarts. The page shows Pending restart; press Restart the chat service. Spoken alerts start once it is back, after a few seconds.
Recommended: send yourself a small test tip before your next stream, to hear the voice and its volume in your stream mix.
ElevenLabs charges by the amount of text turned into speech. See ElevenLabs pricing for its plans.
To turn TTS off again, switch off Speak alerts and paid messages and restart the chat service the same way.
More voice settings
The Voice card also has Loud voice, and the Playback card has three more settings. Most streamers leave all of them empty or off.
| Setting | What it does |
|---|---|
| Loud voice | A second ElevenLabs voice ID for shouted lines, used with Loud voice for shouting. Empty means the main voice |
| Loud voice for shouting | Reads ALL-CAPS and "!!" sentences in the loud voice and everything else in the normal one |
| Speech output | Which audio output on the server the voice plays into. It matters only for a server that plays audio itself, not when the rig page plays it in OBS |
| Voice clips folder | A folder of short sounds (breaths, laughs) for the bot's voice |