Table of Contents

Struct VoiceActivityType

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll

The type of the voice activity signal.

[JsonConverter(typeof(VoiceActivityTypeConverter))]
public readonly record struct VoiceActivityType : IEquatable<VoiceActivityType>
Implements
Inherited Members

Properties

ActivityEnd

End of sentence signal.

public static VoiceActivityType ActivityEnd { get; }

Property Value

VoiceActivityType

ActivityStart

Start of sentence signal.

public static VoiceActivityType ActivityStart { get; }

Property Value

VoiceActivityType

AllValues

public static IReadOnlyList<VoiceActivityType> AllValues { get; }

Property Value

IReadOnlyList<VoiceActivityType>

TypeUnspecified

The default is VOICE_ACTIVITY_TYPE_UNSPECIFIED.

public static VoiceActivityType TypeUnspecified { get; }

Property Value

VoiceActivityType

Value

public string Value { get; }

Property Value

string

Methods

Equals(VoiceActivityType)

public bool Equals(VoiceActivityType other)

Parameters

other VoiceActivityType

Returns

bool

FromString(string)

public static VoiceActivityType FromString(string value)

Parameters

value string

Returns

VoiceActivityType

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

implicit operator VoiceActivityType(string)

public static implicit operator VoiceActivityType(string value)

Parameters

value string

Returns

VoiceActivityType