This repository provides an automated solution for participating in contests hosted by Portugal's national radio broadcaster, Radio Comercial. Participants are required to call in promptly after hearing a specific sound to win vouchers for fuel stations.
The sound to be detected is included in the repository and will be loaded into Dejavu upon startup for seamless operation.
- Sound Detection: Utilizes the Dejavu library to detect the designated sound played during the contest.
- Automated Calling: Initiates the call automatically upon detecting the specified sound.
- To perform the call, it requires a GSM Modem with a SIM card to be connected for making the call.
- It is recommended to connect an analog radio directly to an input jack of the device for minimal delay.
-
Install the necessary Python dependencies:
pip install -r requirements.txt
-
Start the MySQL server using Docker Compose:
docker-compose up -d
-
Run the script
python main.py
Keep in mind that if your phone number wins the contest they will call you back shortly. That means that you need some strategy to be able to pick up the call (forward it to another number, for example).