python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
wget https://alphacephei.com/vosk/models/vosk-model-en-us-0.22.zip
sudo apt-get install unzip
unzip vosk-model-en-us-0.22.zip
mv vosk-model-en-us-0.22/ vosk-model/
mv .env.example .env
vim .env- Create a Pexels API Account at: https://www.pexels.com/api/
- Insert your Pexels API Key into the
.envfile:
VIDEO_API_KEY=# Replace with API Key from https://www.pexels.com/api/Music folder (music/)
Fact file (facts.txt)
Python is an awesome programming language!
Using this bot makes a lot of fun!
python3 bot.pyIf the program ends with the word Killed then your free memory space is too low.
To fix this, consider unsing the smaller vosk-model:
wget https://alphacephei.com/vosk/models/vosk-model-small-en-us-0.15.zip
unzip vosk-model-small-en-us-0.15.zip
mv vosk-model-small-en-us-0.15/ vosk-model/
