Usage
Connector Options
Whether to trigger a search for each interim transcript.
- When
true: Search updates as you speak (interim results) - When
false: Search only triggers when you finish speaking (final result)
The language for voice recognition, as a BCP 47 language tag (e.g.,
en-US, fr-FR).If not specified, defaults to the browser’s language.Function to pass additional search parameters when a voice query is performed.
Custom function to create the voice search helper. This is useful if you want to use a custom voice recognition implementation.By default, uses the browser’s Web Speech API.
Render Options
Indicates whether the browser supports the Web Speech API for voice recognition.
Indicates whether the voice recognition is currently active and listening.
Toggles the voice listening state. If currently listening, stops listening. If not listening, starts listening.This function does nothing if the browser doesn’t support voice recognition.
An object containing the current state of voice recognition:
status(string): Current status (initial,askingPermission,waiting,recognizing,finished,error)transcript(string): The recognized text transcriptisSpeechFinal(boolean): Whether the speech recognition is finalerrorCode(string): Error code if an error occurred
The options passed to the connector.