audioHandlerString|Function|Object

The URL, AJAX settings or function that fetches the audio of the captcha. When used with function, call the args.success method with the source of the audio.

Example

<input id="captcha" />
<script>
    $("#captcha").kendoCaptcha({
        handler: "https://demos.telerik.com/kendo-ui/captcha/reset",
        audioHandler: "https://demos.telerik.com/kendo-ui/captcha/audio"
    });
</script>

Set the audio handler as function

pseudo
    <input id="captcha" />
    <script>
        $("#captcha").kendoCaptcha({
            handler: "https://demos.telerik.com/kendo-ui/captcha/reset",
            audioHandler: function (args) {
                args.success("https://demos.telerik.com/kendo-ui/captcha/audio?captchaId=" + args.data.captchaId);
            }
        });
    </script>

Set the Audio Handler as URL or AJAX

pseudo
    <input id="captcha" />
    <script>
        $("#captcha").kendoCaptcha({
            handler: "https://demos.telerik.com/kendo-ui/captcha/reset",
            // audioHandler: "url-to-audio" // Response should return the audio source - base64 stream or url to the audio file
        });
    </script>
In this article
audioHandler
Not finding the help you need?
Contact Support