New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Client-side Events

Event log

The WebForms SpeechToTextButton supports a comprehensive set of events which enable you to provide fluent experience and smooth interaction with the component.

This demo shows how to use and handle the start event, the end event, and the result event which is triggered respectively when the speech recognition service has begun, ended listening to incoming audio and when the speech recognition service returns a result.

  • DefaultVB.aspx
  • DefaultVB.aspx.vb
  • script.js
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="DefaultVB.aspx.vb"  Inherits="SpeechToTextButton_Client_Side_Programming_ClientSideEvents_DefaultVB" %>

<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
    <script src="script.js"></script>
</head>

<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <div class="demo-container no-bg flex-center" runat="server">
        <telerik:RadSpeechToTextButton ID="RadSpeechToTextButton1" runat="server" ThemeColor="Base">
            <ClientEvents OnLoad="onLoad" OnStart="onStart" OnEnd="onEnd" OnResult="onResult" />
        </telerik:RadSpeechToTextButton>
    </div>

    <qsf:EventLogConsole ID="EventLogConsole1" runat="server" AllowClear="true" Height="300px"></qsf:EventLogConsole>
    </form>
</body>
</html>

Support & Learning Resources

Find Assistance