This sample demonstrates the integration of Speech-to-Text functionality with the AI AssistView component. It allows users to convert spoken input into text using the device's microphone and the browser's SpeechRecognition API.
In this example, the AI AssistView component is integrated with the built-in SpeechToText component to enable voice-based interaction.
The sample demonstrates the following features:
footerToolbarSettings to customize the footer options with speech to text, attachments and a send icon.
speechToTextSettings adds the speech to text button at the footer to captures voice input and transcribes it into text.
attachmentSettings to allow file uploads for the attached files.
toolbarSettings adds a right-aligned Refresh button to clear previous prompts.
addPromptResponse method for a real-time experience.
Marked plugin.