Squiso is een gratis, krachtige automatiseringstool waarmee je je Twitch-stream kunt aanpassen met behulp van eenvoudige scripts.
How to Play an Audio File When Someone Cheers With Twitch Bits
This script example listens to Twitch Channel cheers and then plays a custom TTS message.
Scriptvoorbeeld
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 onTwitchCheer(OnTwitchCheerData data, API api) throws SquisoException {
// Create the TTS message that should be spoken
SquisoString ttsMessage = new SquisoString(data.getUserName() + " just cheered " + data.getBits() + " with the message: " + data.getMessage());
// Speak the TTS
// You can find all voices here: https://www.squiso.com/voices/
api.speak("zto16fk0", ttsMessage);
}
}