Made a tool to search through Twitch chats

osx is for Mac if you did not know.

Lol yes

I figured you did, but didn’t want to assume.

I’m having trouble with this on Windows, but I think it is more aligned with my system. I am able to see the options, but it keeps putting me back to the root drive

Make sure you start out from your shell, then launch the program.

For windows users: this would be opening up your terminal/command prompt, dragging and dropping chat_reader.exe into your terminal window. It should show a \path\to\chat_reader.exe Once you see that you can add some statements asking what you want chat_reader to do. Ex: \path\to\chat_reader.exe -f "(?i)(burp|excuse me)" twitch channel lunalovebad --clips --transcribe. Which will transcribe all the clips from lunalovebad’s channel, filtering for “burp” and “excuse me” case insensitively

For mac users: you’ll want to open up Terminal and you should land in your home directory (it’ll be labeled as % ~ or % /home/yourusername). Next you’ll want to change your directory into the folder with chat_reader_osx. Most of the time, it’ll be in Downloads You can go to it by running cd Downloads and pressing enter. Now, since macos is unix based, there are a few safeguards to prevent you from executing file you got from other places. By default your computer will not execute chat_reader_osx, but we can change this by doing chmod +x chat_reader_osx and pressing enter to add a bit to the file telling macos that you’ve approved this file to run on your computer. After that you can do ./chat_reader_osx with options appended to it to run. Do note that unlike the Linux and Windows versions, Mac’s do not support cuda, so the pytorch backend will most likely be using your CPU, not your GPU.
In total you should be running something that looks like this for Macos:

cd Downloads
chmod +x chat_reader_osx
./chat_reader -f "(?i)(excuse me|burp|belch)" twitch channel lunalovebad --clips --transcribe

Also, you only need to run chmod +x chat_reader_osx once. On further uses, you can simply omit it

For Linux users: You probably know what you’re doing lol, and if you don’t, the mac guide is probably good enough to guide you

Lemme know if the guide sucked, I’ll be happy to provide some more help

1 Like

Exactly what I needed thanks!

1 Like

Right now, the solution I have in place for getting whisper to work with cohesion is not perfect, example: Every run requires the python runtime to be restarted and the model to be reloaded onto your gpu. While it is fairly negligible for a few runs, does stack up for many long workloads

Additionally, I’ve posted the source here for anyone who does not have a platform release, the curious, and those who would like to help out!
https://drive.google.com/drive/folders/16l0Vy4xgEDbhW-EN2s5EqCBrvmmHd9Sq?usp=sharing

mine only show “installation sucessful” and does nothing

Are you using a filter? chat_reader will only output filter matches. You can try it by removing the filter flags

Example

./chat_reader twitch channel lunalovebad --clips --transcribe

You should also notice your cpu usage go up a bit while it’s transcribing

it takes how much time? maybe im just not waiting

1 Like

Ah, no there’s a bug with how I am installing whisper. I’ll reupload some fixed builds, my bad

Changes have been added and the files have been updated

ok, what should i do now haha, already downloaded new archive

Do the same thing as what you did before and it should give a slightly different prompt with instructions

says i dont have git installed, but i already installed it

When you type in git into your terminal does anything happen?

how do i type in git?

git

just type that into the terminal. If it does something them there’s something up with how im checking for git

chat_reader.exe -f “(?i)(burp|excuse me)” twitch channel lunalovebad --clips --transcribe
Utilizing Python 3.9.6
Error: Whisper is not installed
Would you like to install it (y/N)? y
Error: program not found Git was not found, ensure you have git installed: Redirecting…
this is what i get

yes when i type git this appears
git [-v | --version] [-h | --help] [-C ] [-c =]
[–exec-path[=]] [–html-path] [–man-path] [–info-path]
[-p | --paginate | -P | --no-pager] [–no-replace-objects] [–bare]
[–git-dir=] [–work-tree=] [–namespace=]
[–super-prefix=] [–config-env==]
[]

These are common Git commands used in various situations:

start a working area (see also: git help tutorial)
clone Clone a repository into a new directory
init Create an empty Git repository or reinitialize an existing one

work on the current change (see also: git help everyday)
add Add file contents to the index
mv Move or rename a file, a directory, or a symlink
restore Restore working tree files
rm Remove files from the working tree and from the index

examine the history and state (see also: git help revisions)
bisect Use binary search to find the commit that introduced a bug
diff Show changes between commits, commit and working tree, etc
grep Print lines matching a pattern
log Show commit logs
show Show various types of objects
status Show the working tree status

grow, mark and tweak your common history
branch List, create, or delete branches
commit Record changes to the repository
merge Join two or more development histories together
rebase Reapply commits on top of another base tip
reset Reset current HEAD to the specified state
switch Switch branches
tag Create, list, delete or verify a tag object signed with GPG

collaborate (see also: git help workflows)
fetch Download objects and refs from another repository
pull Fetch from and integrate with another repository or a local branch
push Update remote refs along with associated objects

‘git help -a’ and ‘git help -g’ list available subcommands and some
concept guides. See ‘git help ’ or ‘git help ’
to read about a specific subcommand or concept.
See ‘git help git’ for an overview of the system

hmm, run pip install git+https://github.com/openai/whisper.git then run the program again

Now only shows utlizing python 3.9.6 and does nothing :skull: