VoiceSessionConfig class
Configuration for voice session behavior Matches iOS VoiceSessionConfig from RunAnywhere+VoiceSession.swift
Constructors
- VoiceSessionConfig({double silenceDuration = 1.5, double speechThreshold = 0.03, bool autoPlayTTS = true, bool continuousMode = true})
-
const
Properties
- autoPlayTTS → bool
-
Whether to auto-play TTS response
final
- continuousMode → bool
-
Whether to auto-resume listening after TTS playback
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- silenceDuration → double
-
Silence duration (seconds) before processing speech
final
- speechThreshold → double
-
Minimum audio level to detect speech (0.0 - 1.0)
Default is 0.03 which is sensitive enough for most microphones.
Increase to 0.1 or higher for noisy environments.
final
Methods
-
copyWith(
{double? silenceDuration, double? speechThreshold, bool? autoPlayTTS, bool? continuousMode}) → VoiceSessionConfig - Create a copy with modified values
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultConfig → const VoiceSessionConfig
- Default configuration