RealtimeVoiceModeProvider class
- Mixed-in types
Constructors
-
RealtimeVoiceModeProvider.new({required void setStatus(ChatStatus status), required void onError(String errorMessage), required Future<
void> onStart(), void onTranscriptionStart(TranscriptionStart transcriptionStart)?, void onTranscription(TranscriptionItem transcriptionItem)?, void onTranscriptionEnd(TranscriptionEnd transcriptionEnd)?, void onResponse(RealtimeResponse response)?, void onSpeechEnd(SpeechEnd speechEnd)?})
Properties
-
audioVolumeStream
→ Stream<
double> ? -
Retuns the current audio volume.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- isInVoiceMode → bool
-
Indicates the voice mode is active or not.
no setteroverride
- isLoadingVoiceMode → bool
-
Indicates the voice mode is being started or exited.
no setteroverride
- isPaused ↔ bool
-
getter/setter pair
- onError → void Function(String errorMessage)
-
Called when any error happens. Useful to update the UI.
final
- onResponse → void Function(RealtimeResponse response)?
-
final
- onSpeechEnd → void Function(SpeechEnd speechEnd)?
-
final
-
onStart
→ Future<
void> Function() -
Called once the voice mode was started by the user.
final
- onTranscription → void Function(TranscriptionItem transcriptionItem)?
-
Called when a transcription data is received.
final
- onTranscriptionEnd → void Function(TranscriptionEnd transcriptionEnd)?
-
final
- onTranscriptionStart → void Function(TranscriptionStart transcriptionStart)?
-
Called when a transcription starts. Either from the user or the assistant.
final
- realtimeModel ↔ RealtimeModel?
-
getter/setter pair
- realtimePlayer ↔ RealtimeAudioPlayer?
-
getter/setter pair
- recorder → VitAudioRecorder
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → Future< void> -
override
-
muteMic(
) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setStatus(
ChatStatus status) → void -
override
-
startVoiceMode(
) → Future< RealtimeModel> -
override
-
stopVoiceInteraction(
) → void -
Stops the current voice interaction.
override
-
stopVoiceMode(
) → Future< void> -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
unmuteMic(
) → Future< void>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited