Squiso is a free, powerful automation tool that lets you customize your Twitch stream using simple scripts.
How to Play a Sound Effect Audio for a Specific Twitch Channel Point Reward
This script example plays a specific mp3 audio file on disk when a specific Twitch Channel Point is redeemed.
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 onTwitchChannelPointRedeem(OnTwitchChannelPointRedeemData data, API api) throws SquisoException {
// If the reward name equals "SFX: Zelda Secret Found"
if (data.getRewardName().equals("SFX: Zelda Secret Found")) {
api.playAudio("zelda.mp3");
}
}
}