Class VoiceActivity
Voice activity signal.
public record VoiceActivity : IEquatable<VoiceActivity>
- Inheritance
-
VoiceActivity
- Implements
- Inherited Members
Properties
AudioOffset
The time voice activity detected in audio time, relative to the start of the audio stream.
[JsonPropertyName("audioOffset")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? AudioOffset { get; set; }
Property Value
VoiceActivityType
The type of the voice activity signal.
[JsonPropertyName("voiceActivityType")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public VoiceActivityType? VoiceActivityType { get; set; }
Property Value
Methods
FromJson(string, JsonSerializerOptions?)
Deserializes a JSON string to a VoiceActivity object.
public static VoiceActivity? FromJson(string jsonString, JsonSerializerOptions? options = null)
Parameters
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- VoiceActivity
The deserialized VoiceActivity object, or null if deserialization fails.