Para ejecutar el script speech.py e necesario instalar las siguientes dependencias
sudo apt-get install python3 python3-pip vlc
sudo pip3 install -r requirements.txtusage: speech.py [-h] [-t TEXT] [-r [RANDOM]] [-l] [-m MP3]
optional arguments:
-h, --help show this help message and exit
-t TEXT, --text TEXT Text to reproduce
-r [RANDOM], --random [RANDOM]
Reproduce random sentence from ./topics/RANDOM.
Without argument, reproduce random sentence from
random topic
-l, --list List available topics
-m MP3, --mp3 MP3 MP3 file of list. User -l to see available mp3
pip3 install -r requirements.txtEs necesario tener un fichero json con el token del bot de telegram y la lista de ids de telegram autorizados. El formato debe ser el siguiente:
{
"token": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"admin": [
"1111111",
"4444444"
],
"authorized_ids": [
"1111111",
"2222222",
"3333333",
"4444444",
"5555555",
"6666666"
],
"moderation_mode": false
}nohup /usr/local/bin/datiops_bot.py -c /home/pi/PIOPS/secrets.json &usage: datiops_bot.py [-h] -c CONFIG
optional arguments:
-h, --help show this help message and exit
-c CONFIG, --config CONFIG
Define el fichero json de configuracion del script