VoiceLiveModelFactory.StaticInterimResponseConfig Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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'.
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.