TTS Tampermonkey Script for TiTS and CoC2

Someguysalt

New Member
Dec 9, 2025
1
0
25
So, first time posting in this forum and also first time making a script like this so please don't kill me if I did something wrong. Also, I don't know if this is even the right place for this post, not sure where else to post it.

I made this Tampermonkey script that allows you to use a text-to-speech (TTS) server to get automatic AI voice over for the browser versions of TiTS and CoC2. Before anyone blames me for this, yes I have used AI to make this script but there still went some effort in there from my side. I simply do not have much experience with web development yet. Feel free to point out any mistakes or make suggestions, however, I can't guarantee I'll fix any of them - you can just take the script and modify it yourself if you want. This script has only been tested on my pc, it's possible that it won't work properly on other hardware.


Features of the script

  • May work with any TTS server that uses the standard OpenAI API. I used TTS WebUI
  • GUI in the bottom right of the page which has some options like speed, model, voice, custom url, etc.


How to install

Setting up TTS WebUI - You may skip to "Installing the extension" if you already have it set up or are using different software
1. Follow the installation instructions on the TTS WebUI GitHub page to install TTS WebUI
2. Once installed and ready, go to the Gradio window that opens upon start
3. Go to the tab "Tools" -> "OpenAI TTS API" and install and active the API. You may also want to toggle "Auto start API" at the bottom
4. Go to the tab "Text-To-Speech" and install any model you want to use there. I recommend using "Kokoro" which is also the default configuration for the extension. Make sure to also download the UniDic Dictionary on that page if you want to use Kokoro
5. That's it. You can close all browser windows but make sure to let the console window keep running in the background

Installing the extension
1. Install the Tampermonkey extension for your browser
2. Install the script from this link
3. If you now go to the web versions of TiTS or CoC2, you will see a configuration window in the bottom right corner. There you can configure the API URL, the model, the voice, speed, etc. If you're using TTS WebUI with Kokoro and want to use Heart's voice, you won't need to make any changes here.
4. Start the game and enjoy TTS
 
Last edited: