Class RealtimeInputConfig
Marks the end of user activity. This can only be sent if automatic (i.e. server-side) activity detection is disabled.
public record RealtimeInputConfig : IEquatable<RealtimeInputConfig>
- Inheritance
-
RealtimeInputConfig
- Implements
- Inherited Members
Properties
ActivityHandling
Defines what effect activity has.
[JsonPropertyName("activityHandling")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public ActivityHandling? ActivityHandling { get; set; }
Property Value
AutomaticActivityDetection
If not set, automatic activity detection is enabled by default. If automatic voice detection is disabled, the client must send activity signals.
[JsonPropertyName("automaticActivityDetection")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public AutomaticActivityDetection? AutomaticActivityDetection { get; set; }
Property Value
TurnCoverage
Defines which input is included in the user's turn.
[JsonPropertyName("turnCoverage")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public TurnCoverage? TurnCoverage { get; set; }
Property Value
Methods
FromJson(string, JsonSerializerOptions?)
Deserializes a JSON string to a RealtimeInputConfig object.
public static RealtimeInputConfig? FromJson(string jsonString, JsonSerializerOptions? options = null)
Parameters
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- RealtimeInputConfig
The deserialized RealtimeInputConfig object, or null if deserialization fails.