isVoiceMode property
bool
get
isVoiceMode
Returns true
, when the voice mode is ready and working.
If you need to show to the user a progress indicator, see
voideModeProvider.isLoadingVoiceMode
.
Implementation
bool get isVoiceMode {
var p = voiceModeProvider;
if (p.isInVoiceMode && !voiceModeProvider.isLoadingVoiceMode) {
return true;
}
return switch (status) {
ChatStatus.answeringAndSpeaking => true,
ChatStatus.listeningToUser => true,
ChatStatus.transcribing => true,
ChatStatus.speaking => true,
_ => false,
};
}