Speaker.bot TTS Finished Trigger


Adds a custom Text-to-Speech Finished trigger that fires when Speaker.bot is finished speaking.

Import Code

This plugin is for use with Streamer.bot 0.2.0-0.2.2, and Speaker.bot 0.1.1 ONLY. It will be deprecated once Streamer.bot 0.2.3 reaches Stable release as new interoperability between Streamer.bot 0.2.3 and Speaker.bot 0.1.2 includes similar functionality. Because Speaker.bot 0.1.2 made changes to the timing of when the audio file is saved, this trigger does not fire at the correct time when using that version.

Speaker.bot TTS Finished Trigger by Sinistral2099.sb (1.9 KB)


  1. In Streamer.bot click on Import

  1. Drag the Import File into Import String.

  1. Once the code is imported, make sure the Execute Code Sub Actions compile for both Actions.



  1. In Speaker.bot, go to Settings.
  2. If you are not already on it, go to the General tab.
  3. Enable Save TTS audio to file.
  4. Choose a directory for the files to be saved to.


  1. Next, go to the Speaker.bot TTS Finished Trigger Action, and double click on the File Watcher trigger.
  2. Click the Create New Trigger button.


  1. Choose the folder that you chose to save the TTS audio files to in Speaker.bot.
  2. Change the filter text to “*.wav” and click OK.


  1. The new File Watcher should now be selected. If so, click OK.
  2. Done.

If the directory that you chose in Speaker.bot and the directory that you chose in the Streamer.bot File Watcher do not match, this trigger will not work.

How It Works

Speaker.bot only creates the WAV file after it is finished speaking the voice, so this extension watches for the creation of that file, activates the Trigger, and then deletes the WAV file.

The new Trigger can be found under Custom → Speaker.bot → Text-to-Speech Finished.

Now you can trigger Actions when Speaker.bot is finished speaking, rather than rely on an estimated delay calculation.


Only things I see here so far is just adding a Table of Contents into your post and unless you’re shouting out other contributors you wouldn’t really need that section. I know @pwnyy had that in the template but I believe he’s altering that cause with this system the dev owns the post and socials in the profile can be found quickly by hovering over their pfp.

Other than that I think this looks fine to me.

I removed the contributors section. The TOC was already in there at the bottom, but it displays on the upper right next to the listing? It’s easy to miss. :confused:

You’re good. My bad, I didn’t actually want to edit your post so I didn’t even notice it was at the bottom so that’s good to know that works. Cause I always do it at the top first thing lol.

Is there a next step that I need to take to get it approved and on the Extensions list?

Nope you’re good. I’ll poke the others to mark their approval or comments. I know 2 of us have voted just waiting on a couple more and then we’ll move it. Trying not to have me be the deciding person here :joy:

Seems to work for me. :+1: