smartBox.aiAssistantSettings.speechToTextButtonBoolean|Object(default: false)

Sets the settings for the Speech to Text button in AI Assistant mode. When set to true, enables speech-to-text with default settings.

Example - enable speech to text button

<div id="grid"></div>
<script>
$("#grid").kendoGrid({
  columns: [
    { field: "ProductName" },
    { field: "UnitPrice" }
  ],
  dataSource: {
    data: [
      { ProductName: "Tea", UnitPrice: 10 },
      { ProductName: "Coffee", UnitPrice: 15 }
    ]
  },
  search: {
    fields: [{ name: "ProductName", operator: "contains" }]
  },
  toolbar: ["smartBox"],
  smartBox: {
    activeMode: "AIAssistant",
    aiAssistantSettings: {
      enabled: true,
      speechToTextButton: true,
      service: "https://demos.telerik.com/service/v2/ai/grid/smart-state"
    }
  }
});
</script>

Example - configure speech to text with custom settings

<div id="grid"></div>
<script>
$("#grid").kendoGrid({
  columns: [
    { field: "ProductName" },
    { field: "UnitPrice" }
  ],
  dataSource: {
    data: [
      { ProductName: "Tea", UnitPrice: 10 },
      { ProductName: "Coffee", UnitPrice: 15 }
    ]
  },
  search: {
    fields: [{ name: "ProductName", operator: "contains" }]
  },
  toolbar: ["smartBox"],
  smartBox: {
    activeMode: "AIAssistant",
    aiAssistantSettings: {
      enabled: true,
      speechToTextButton: {
        integrationMode: "webSpeech",
        lang: "en-US",
        continuous: false,
        interimResults: true,
        maxAlternatives: 1
      },
      service: "https://demos.telerik.com/service/v2/ai/grid/smart-state"
    }
  }
});
</script>