Squiso is a free, powerful automation tool that lets you customize your Twitch stream using simple scripts.
How to play TTS on Ko-Fi Donations
This script example plays a customized TTS message when someone donates to you on Ko-Fi.
Script Example
import com.squiso.*;
import com.squiso.exception.*;
import com.squiso.scripting.*;
import com.squiso.scripting.data.*;
import com.squiso.keyboard.*;
import com.squiso.twitch.*;
import com.squiso.datatypes.*;
import com.squiso.utils.*;
// Important - Please do not change the row below - otherwise you will get a compilation error!
public class Script_Example extends SquisoScript {
@Override
public void onKofiDonation(OnKofiDonationData data, API api) throws SquisoException {
// Specify the TTS voice
// All voices can be found here: https://www.squiso.com/voices/
String voiceID = "y1whgzx7";
// Compose a TTS message
SquisoString ttsMessage = new SquisoString(data.getUsername() + " just donated " + data.getAmount() + " on Ko-Fi: " + data.getMessage());
// Speak the TTS
api.speak(voiceID, ttsMessage);
}
}