Ever play Unholy Trinity and wish you could have that "MORTIS" style TTS in your twitch chat? This is what you need! It takes Discordier's SamJs (Software Automatic Mouth), a JS port of the C64 voice synth and the same package used to generate the voices in the Unholy Trinity games - and Twurple for Twitch integration, and smashes them together. Data is sent via Socket-IO Socket Server, and rendered in an html page rendered via ejs template through Express.
- Rename
botconfig_TEMPLATE.json
tobotconfig.json
- Edit
botconfig.json
with your info:- Username: username of the puppet account
- serverAddress: the IP or URL of your webserver (http and socket use the same address & port)
- serverPort: the port for your server (http and socket use the same address & port)
- channels: Array of the channels that your bot will listen in on
- client_id: The ClientID for your puppet account*
- client_secret: The Client Secret for your puppet account*
- access_token: The Access Token for your puppet account*
- refresh_token: The Refresh Token for your puppet account*
- Check out this page for info on how to obtain: https://twurple.js.org/docs/examples/chat/basic-bot.html
- Run
npm install
to grab the packages yo uneed - Initiate script via `node mortts-server.js
- Point a browser source to the same IP address and Port. You may need to "Interact" with this layer to allow the sound to work
- Kill the script with ctrl+c
The bot is triggered in-chat with !mortis
or !mortts
or a few other things you'll see if you dig into the server code a bit ;)
*Note: This has only been tested locally on a Linux computer. YMMV