Del via


TextToSpeechResponseUpdateKind Struct

Definition

Describes the intended purpose of a specific update during streaming of text to speech updates.

public value class TextToSpeechResponseUpdateKind : IEquatable<Microsoft::Extensions::AI::TextToSpeechResponseUpdateKind>
[System.Diagnostics.CodeAnalysis.Experimental("MEAI001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")]
[System.Text.Json.Serialization.JsonConverter(typeof(Microsoft.Extensions.AI.TextToSpeechResponseUpdateKind+Converter))]
public readonly struct TextToSpeechResponseUpdateKind : IEquatable<Microsoft.Extensions.AI.TextToSpeechResponseUpdateKind>
[System.Text.Json.Serialization.JsonConverter(typeof(Microsoft.Extensions.AI.TextToSpeechResponseUpdateKind+Converter))]
public readonly struct TextToSpeechResponseUpdateKind : IEquatable<Microsoft.Extensions.AI.TextToSpeechResponseUpdateKind>
[<System.Diagnostics.CodeAnalysis.Experimental("MEAI001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")>]
[<System.Text.Json.Serialization.JsonConverter(typeof(Microsoft.Extensions.AI.TextToSpeechResponseUpdateKind+Converter))>]
type TextToSpeechResponseUpdateKind = struct
[<System.Text.Json.Serialization.JsonConverter(typeof(Microsoft.Extensions.AI.TextToSpeechResponseUpdateKind+Converter))>]
type TextToSpeechResponseUpdateKind = struct
Public Structure TextToSpeechResponseUpdateKind
Implements IEquatable(Of TextToSpeechResponseUpdateKind)
Inheritance
TextToSpeechResponseUpdateKind
Attributes
Implements

Constructors

Name Description
TextToSpeechResponseUpdateKind(String)

Initializes a new instance of the TextToSpeechResponseUpdateKind struct with the provided value.

Properties

Name Description
AudioUpdated

Gets when an audio chunk has been fully generated.

AudioUpdating

Gets when the audio update is in progress.

Error

Gets when a non-blocking error occurs during text to speech updates.

SessionClose

Gets when the generated audio speech session is closed.

SessionOpen

Gets when the generated audio speech session is opened.

Value

Gets the value associated with this TextToSpeechResponseUpdateKind.

Methods

Name Description
Equals(Object)

Indicates whether this instance and a specified object are equal.

Equals(TextToSpeechResponseUpdateKind)

Indicates whether the current object is equal to another object of the same type.

GetHashCode()

Returns the hash code for this instance.

ToString()

Returns the fully qualified type name of this instance.

Operators

Name Description
Equality(TextToSpeechResponseUpdateKind, TextToSpeechResponseUpdateKind)

Returns a value indicating whether two TextToSpeechResponseUpdateKind instances are equivalent, as determined by a case-insensitive comparison of their values.

Inequality(TextToSpeechResponseUpdateKind, TextToSpeechResponseUpdateKind)

Returns a value indicating whether two TextToSpeechResponseUpdateKind instances are not equivalent, as determined by a case-insensitive comparison of their values.

Applies to