Blazor AI AssistView Example - Speech To Text
This sample demonstrates integrating Speech-to-Text functionality with the AI AssistView component, allowing users to convert spoken input captured via the device microphone and the browser’s SpeechRecognition API into text that is passed to the AssistView for AI-generated responses.
Key Features:
- The
SpeechToTextcomponent captures voice input and transcribes it into text, which is then passed to the AI AssistView for generating contextual responses. - The
footerTemplateincludes a content-editable area and a microphone button for initiating voice input. - The
toolbarSettingsadds a right-alignedRefreshbutton to clear previous prompts. - Responses are streamed dynamically using the
addPromptResponsemethod for a real-time experience. - Markdown content in the response is rendered using the
Markedplugin for rich formatting.