Skip to content

TTS Redeem

alt text

alt text

alt text

// Get the TTS message from user input
const message = event.userInput;
// Acknowledge the request
api.twitch.sendChat("Generating TTS message.....");
// Generate the TTS message
const urls = await api.integrations.tts_monster.generateParsed(message);
// Play the TTS message sounds
await api.vtftk.playSoundSeq(
urls.map((url) => ({
src: url,
volume: 1,
}))
);
await api.twitch.sendChat(`Playing TTS message: ${message}`);