RevVoiceInput class
Main class for Reverie Voice Input Flutter SDK.
This class provides speech-to-text functionality using Reverie's AI technology. It supports real-time voice input processing with configurable languages, domains, and timeout settings.
Example usage:
final voiceInput = RevVoiceInput(
'your_api_key',
'your_app_id',
onDataReceived: (data) {
print('Transcription: ${data.text}');
},
onErrorOccurred: (error) {
print('Error: $error');
},
);
// Start voice input
voiceInput.startVoiceInput(
lang: Languages.ENGLISH,
domain: Domain.GENERIC,
);
// Stop and get final result
voiceInput.finishInput();
Constructors
- RevVoiceInput(String _apiKey, String _appID, {OnDataReceived? onDataReceived, OnErrorOccurred? onErrorOccurred, OnRecordingStart? onRecordingStart, OnRecordingEnd? onRecordingEnd})
- Creates a new instance of RevVoiceInput.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
finishInput(
) → void - Finishes the voice input session and requests final transcription results.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setLogging(
String logging) → void - Sets the logging configuration for the SDK.
-
setNoInputTimeout(
double noInputTimeout) → void - Sets the no-input timeout in seconds.
-
setSilence(
double silence) → void - Sets the silence detection timeout in seconds.
-
setTimeout(
double timeout) → void - Sets the overall session timeout in seconds.
-
startVoiceInput(
{String lang = Languages.ENGLISH, String domain = Domain.GENERIC}) → void - Starts voice input processing with the specified language and domain.
-
stopVoiceInput(
) → void - Stops voice input processing immediately without getting final results.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited