VoiceModeProvider class
Constructors
-
VoiceModeProvider({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> ? -
A Stream of volumes either from the microphone or speaker, depending
if the providder is listening from the user, or the AI is speaking.
getter/setter pair
- errorReporter → void Function(String context, String message)
-
final
- getStatus → ChatStatus Function()
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isInVoiceMode ↔ bool
-
Necessary because
ChatStatus.sendingPrompt
andChatStatus.answering
does not tell if voice mode is on.getter/setter pair - 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
- setStatus → void Function(ChatStatus status)
-
final
- transcriber ↔ TranscribeModel?
-
getter/setter pair
Methods
-
dispose(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
startVoiceMode(
) → Future< void> -
stopVoiceInteraction(
) → Future< void> - If the provider is listening to the microphone, it stops recording.
-
stopVoiceMode(
) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited