speak

Speaks the Captcha's text - triggers the audioHandler action. The returned promise is resolved when audio's ended event is triggered.

Example

<input id="captcha" />
<script>
    var captcha = $("#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);
        }
    }).data("kendoCaptcha");

    // call the speak method
    //captcha.speak().done(function () {
       // console.log("Audio ended");
    //});
</script>

Returns

In this article