Coder Social home page Coder Social logo

z6m / donoduck Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 144 KB

Simple and free custom voice text-to-speech client for live streamers.

Python 99.77% Batchfile 0.23%
tts text-to-speech voice speech-synthesis python uberduck twitch live-streaming uberduck-ai

donoduck's Introduction

Duck lol

Donoduck

Simple and free custom text-to-speech client for live streamers with over 2200 voices that I'm stealing from powered by Uberduck.

Setup Guide

Go to the releases page, download the latest "Donoduck.zip" from the assets list, and unzip it. You can make a shortcut if you want to put it on your desktop or whatever.

Run the executable and let it sit in the background while you stream so that it may scream in the funny voices of your choosing whenever you convince someone to give you money. Chatters can choose which voice their message will play with by formatting their message like this:

"!voice-name-here: message text here" 

(NOTE: ff you have some other TTS thing turn it off or they'll both play at once) (ALSO NOTE: If there's a delay between alerts popping up and messages being played you can compensate for it by setting the alert delay to like 2-5 seconds. Can't do much about that on my end for now.)

duck_cfg

token.txt

is your socket token that will get incoming data from Streamlabs/Streamelements. Get that here:

https://streamlabs.com/dashboard#/settings/api-settings

voices.txt

contains the voice(s) the program will default to if a voice isn't chosen (will pick at random if list contains multiple entries). Some voices are way better than others, you will probably want to customize this. The full list of supported voices can be found in duckvoices.py:

https://github.com/z6m/donoduck/blob/main/duckvoices.py

user_config.txt

contains everything else.

"skip_key" is the hotkey that you can use to skip donations if voices glitch out or whatever. By default it's set to RIGHT SHIFT since it's the most useless key I can think of that most keyboards have and won't mess anything up in most programs. You can find all the aliases for the different keys here if you want to change it:

https://pynput.readthedocs.io/en/latest/keyboard.html#pynput.keyboard.Key

"min_bits" is the minumum number of bits someone has to tip to play tts. This is just to avoid spam. It's 100 by default.

Nightbot Command

Really easy copypaste rundown for lazy people (like me) to add as a command to nightbot:

!addcom !tts Donoduck is a free text-to-speech client with over 2200 voices. To have your message read in a custom voice, put !name-of-voice: at the start of your message. Full list of voices here: https://github.com/z6m/donoduck/blob/main/duckvoices.py

Compiling from source

If you're into that kinda thing (path to pyfiglet may vary and you'll need to get your own uberduck api tokens):

pyinstaller --add-data "C:\Users\*****\AppData\Local\Programs\Python\Python310\Scripts;./pyfiglet" -i "logo.ico" -n Donoduck --onefile donoduck.py

*Alternatively you can just run the batch files from wherever you cloned the directory to if you find that easier than copypasting this command.


OTHER NOTE: Right now I'm totally freeloading so there could be several seconds of lag between some alerts and them being read out. If people actually start using this I'll shell out so you can get that sweet unthrottled api access on my dime (or you can compile yourself/hit me up on twitter and I'll make you a custom build with your own premium keys if you got 'em).

donoduck's People

Contributors

z6m avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.