speechToTextBoolean|Object
(default: false)
Configures speech-to-text functionality for the prompt input. When true
, enables speech-to-text with default settings. When false
, disables the feature. When an object, configures custom speech-to-text options.
Example - Enable with default settings
<div id="aiprompt"></div>
<script>
$("#aiprompt").kendoAIPrompt({
speechToText: true
});
</script>
Example - Custom configuration
<div id="aiprompt"></div>
<script>
$("#aiprompt").kendoAIPrompt({
speechToText: {
integrationMode: "webSpeech",
lang: "en-US",
continuous: false,
interimResults: true,
maxAlternatives: 1
}
});
</script>
Example - Disable speech-to-text
<div id="aiprompt"></div>
<script>
$("#aiprompt").kendoAIPrompt({
speechToText: false
});
</script>
In this article