VoiceLiveModelFactory.StaticInterimResponseConfig Method

Definition

Configuration for static interim response generation. Randomly selects from configured texts when any trigger condition is met.

public static Azure.AI.VoiceLive.StaticInterimResponseConfig StaticInterimResponseConfig(System.Collections.Generic.IEnumerable<Azure.AI.VoiceLive.InterimResponseTrigger> triggers = default, int? latencyThresholdMs = default, System.Collections.Generic.IEnumerable<string> texts = default);
static member StaticInterimResponseConfig : seq<Azure.AI.VoiceLive.InterimResponseTrigger> * Nullable<int> * seq<string> -> Azure.AI.VoiceLive.StaticInterimResponseConfig
Public Shared Function StaticInterimResponseConfig (Optional triggers As IEnumerable(Of InterimResponseTrigger) = Nothing, Optional latencyThresholdMs As Nullable(Of Integer) = Nothing, Optional texts As IEnumerable(Of String) = Nothing) As StaticInterimResponseConfig

Parameters

triggers
IEnumerable<InterimResponseTrigger>

List of triggers that can fire the interim response. Any trigger can activate it (OR logic). Supported: 'latency', 'tool'.

latencyThresholdMs
Nullable<Int32>

Latency threshold in milliseconds before triggering interim response. Default is 2000ms.

texts
IEnumerable<String>

List of interim response text options to randomly select from.

Returns

A new StaticInterimResponseConfig instance for mocking.

Applies to