docs: add audio captcha example

This commit is contained in:
Hsiaoming Yang
2024-07-18 22:20:52 +09:00
parent 2e06d59267
commit c1d5f1a930

View File

@@ -24,6 +24,13 @@ Generating audio CAPTCHA with the :class:`AudioCaptcha`` class is remarkably sim
captcha = AudioCaptcha()
data: bytearray = captcha.generate('1234')
Here is an example of an audio captcha:
.. raw:: html
<audio controls="controls">
<source src="https://github.com/lepture/captcha/releases/download/v0.5.0/demo.wav" type="audio/wav">
</audio>
Voice library
-------------