VoiceService class
Provider-agnostic voice mode service.
Manages the enabled/disabled lifecycle, pre-flight checks (auth, feature flag, mic permission), and language resolution. Does not embed any specific STT or TTS provider — callers inject those via VoiceServiceConfig.
Constructors
- VoiceService(VoiceServiceConfig config)
-
Creates a VoiceService with the given
config.
Properties
- config → VoiceServiceConfig
-
Configuration injected at construction time.
final
- hasAuth → bool
-
Whether the user has valid voice-streaming auth.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isFeatureEnabled → bool
-
Whether the feature flag allows voice mode to be visible.
no setter
- isVoiceModeEnabled → bool
-
Full runtime gate: feature flag and auth.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state ↔ VoiceState
-
Current voice interaction state.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toggle(
) → Future< VoiceToggleResult> - Toggle voice mode on or off.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited