VoiceModeProvider class
- Mixed-in types
Constructors
-
VoiceModeProvider.new({required void notifyListeners(), required bool isVoiceMode(), required void setStatus(ChatStatus status), required ChatStatus getStatus(), required Future<
void> send({required void onChunk(String chunk), required String text}), required void errorReporter(String context, String message)})
Properties
-
audioVolumeStream
↔ Stream<
double> ? -
Retuns the current audio volume.
getter/setter pairoverride-getter
- errorReporter → void Function(String context, String message)
-
final
- getStatus → ChatStatus Function()
-
final
- 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
- isVoiceMode → bool Function()
-
final
- micSendMode ↔ MicSendMode?
-
getter/setter pair
- notifyListeners → void Function()
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
send
→ Future<
void> Function({required void onChunk(String chunk), required String text}) -
final
- transcriber ↔ TranscribeModel?
-
getter/setter pair
Methods
-
dispose(
) → void -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setStatus(
ChatStatus status) → void -
override
-
startVoiceMode(
) → Future< RealtimeModel?> -
override
-
stopVoiceInteraction(
) → Future< void> -
If the provider is listening to the microphone, it stops recording.
override
-
stopVoiceMode(
) → Future< void> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited