speechToTextError

Fires when a speech recognition error occurs.

Event Data

e.error String

The error type or message from the speech recognition service.

Example

<div id="promptbox"></div>
<script>
$("#promptbox").kendoPromptBox({
    speechToTextButton: true,
    placeholder: "Try speech recognition...",
    speechToTextError: function(e) {
        console.log("Speech recognition error:", e.error);
        alert("Speech recognition failed: " + e.error);
    }
});
</script>
In this article
speechToTextError
Not finding the help you need?
Contact Support