AutomaticActivityDetection

@Serializable
data class AutomaticActivityDetection(val disabled: Boolean? = null, val startOfSpeechSensitivity: StartSensitivity? = null, val endOfSpeechSensitivity: EndSensitivity? = null, val prefixPaddingMs: Int? = null, val silenceDurationMs: Int? = null)

Configures automatic detection of activity.

Constructors

Link copied to clipboard
constructor(disabled: Boolean? = null, startOfSpeechSensitivity: StartSensitivity? = null, endOfSpeechSensitivity: EndSensitivity? = null, prefixPaddingMs: Int? = null, silenceDurationMs: Int? = null)

Properties

Link copied to clipboard
val disabled: Boolean? = null

If enabled, detected voice and text input count as activity. If disabled, the client must send activity signals.

Link copied to clipboard

Determines how likely detected speech is ended.

Link copied to clipboard
val prefixPaddingMs: Int? = null

The required duration of detected speech before start-of-speech is committed. The lower this value the more sensitive the start-of-speech detection is and the shorter speech can be recognized. However, this also increases the probability of false positives.

Link copied to clipboard
val silenceDurationMs: Int? = null

The required duration of detected non-speech (e.g. silence) before end-of-speech is committed. The larger this value, the longer speech gaps can be without interrupting the user's activity but this will increase the model's latency.

Link copied to clipboard

Determines how likely speech is to be detected.