A simple project detecting Thai phrases and keywords from system sound output, totally not intended for skipping classes.
- Install dependencies using
pip install requirements.txt
. - Install VB-Cable Virtual Audio Device from https://vb-audio.com/Cable/.
- Use CABLE Output and Speakers from VB-Cable Virtual Audio Device.
- Listen to CABLE Output using Headphones. (Current Limitation)
- Generate token for LINE Notify in https://notify-bot.line.me/en/.
- Add LINE Notify to target chat/group for notification.
- Assign token to TOKEN in dodja.py.
To run the script (for now), type in cmd:
python dodja.py [-h/--help] [--v] <w1> <w2> <w3> ...
When any phrase or keyword <w>
is found, report(.)
currently plays siren SFX and sends post request to LINE Notify API. Feel free to edit report(.)
or anything within the script. Just be sure to include the original license.