Audio Captcha Generator
Audio Captcha Generator
Description
This snippet of code will Generate Audio-Captcha (Numbers).
Requirements
$ pip install captcha
Steps To Execution
- Fork this repo and navigate to ShortenLinks folder
- Run this code.py
$ python code.py - Boom !!! captcha with .mp3 extension will be generate in dir.
- Enjoy the Audio Captcha Thing !!!!!
Code Output

Source Code: code.py
from captcha.audio import AudioCaptcha
from random import randint
audio = AudioCaptcha()
num = randint(100000,999999)
data = audio.generate(str(num))
audio.write(str(num), str(num)+'.mp3')
print(num)