speechToTextButtonBoolean|Object(default: true)
Configures the Speech to Text button in the end affix. The button is always visible. When null or not configured, the button is enabled by default. Use { enable: false } to disable it.
Example
<div id="promptbox"></div>
<script>
$("#promptbox").kendoPromptBox({
speechToTextButton: {
enable: true
},
placeholder: "Click the microphone to speak...",
speechToTextResult: function(e) {
console.log("Speech result:", e.transcript);
}
});
</script>
Example - Disable speech to text button
<div id="promptbox"></div>
<script>
$("#promptbox").kendoPromptBox({
speechToTextButton: {
enable: false
},
placeholder: "Speech recognition disabled..."
});
</script>