- Clone or Download GitHub Repository
- Install portaudio system wide using homebrew:
brew install portaudio
- Create a venv for the project in terminal, in the project folder, run:
python -m venv venv
- Activate the venv with:
source venv/bin/activate
- install requirements.txt
pip install -r requirements.txt
- First import with:
import audio-captcha
- To run the program:
verify_human()
- You can also run the audiocaptcha.py file, which will return the same as running the method
- audiocaptcha and verify_human will return one of 3 exit codes:
- 0 (successful exit)
- 77 (access denied)
- 66 (unrecognisable input)
- Only works online, if it can't reach the server, the speech recognition used raises an exception
- If you keep getting error code 66 (unrecognisable input), try decreasing any background noise, and speaking as clearly as possible