Squiso is a free, powerful automation tool that lets you customize your Twitch stream using simple scripts.

How to Play an Audio File When a Twitch Hype Train Starts

This is a simple example that simply plays an mp3 audio file as soon as a Twitch Hype Train starts in the channel.

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 onTwitchHypeTrainStarted(OnTwitchHypeTrainStartedData data, API api) throws SquisoException { // Play an mp3 api.playAudio("choo_choo_hype_train_started.mp3"); } }