ServerEventResponseAudioTranscriptAnnotationAdded Class

Definition

Returned when an audio transcript annotation is added to a response.

public class ServerEventResponseAudioTranscriptAnnotationAdded : Azure.AI.VoiceLive.SessionUpdate, System.ClientModel.Primitives.IJsonModel<Azure.AI.VoiceLive.ServerEventResponseAudioTranscriptAnnotationAdded>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.VoiceLive.ServerEventResponseAudioTranscriptAnnotationAdded>
type ServerEventResponseAudioTranscriptAnnotationAdded = class
    inherit SessionUpdate
    interface IJsonModel<ServerEventResponseAudioTranscriptAnnotationAdded>
    interface IPersistableModel<ServerEventResponseAudioTranscriptAnnotationAdded>
Public Class ServerEventResponseAudioTranscriptAnnotationAdded
Inherits SessionUpdate
Implements IJsonModel(Of ServerEventResponseAudioTranscriptAnnotationAdded), IPersistableModel(Of ServerEventResponseAudioTranscriptAnnotationAdded)
Inheritance
ServerEventResponseAudioTranscriptAnnotationAdded
Implements

Properties

Name Description
Annotation

The annotation object.

To assign an object to this property use FromObjectAsJson<T>(T, JsonSerializerOptions).

To assign an already formatted json string to this property use FromString(String).

Examples:

  • BinaryData.FromObjectAsJson("foo"). : Creates a payload of "foo".
  • BinaryData.FromString("\"foo\""). : Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" }). : Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}"). : Creates a payload of { "key": "value" }.

AnnotationIndex

The index of the annotation.

ContentIndex

The index of the content part in the item's content array.

EventId

Gets the EventId.

(Inherited from SessionUpdate)
ItemId

The ID of the item.

OutputIndex

The index of the output item in the response.

ResponseId

The ID of the response.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<ServerEventResponseAudioTranscriptAnnotationAdded>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<ServerEventResponseAudioTranscriptAnnotationAdded>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IJsonModel<SessionUpdate>.Create(Utf8JsonReader, ModelReaderWriterOptions) (Inherited from SessionUpdate)
IJsonModel<SessionUpdate>.Write(Utf8JsonWriter, ModelReaderWriterOptions) (Inherited from SessionUpdate)
IPersistableModel<ServerEventResponseAudioTranscriptAnnotationAdded>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<ServerEventResponseAudioTranscriptAnnotationAdded>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<ServerEventResponseAudioTranscriptAnnotationAdded>.Write(ModelReaderWriterOptions)
IPersistableModel<SessionUpdate>.Create(BinaryData, ModelReaderWriterOptions) (Inherited from SessionUpdate)
IPersistableModel<SessionUpdate>.GetFormatFromOptions(ModelReaderWriterOptions) (Inherited from SessionUpdate)
IPersistableModel<SessionUpdate>.Write(ModelReaderWriterOptions) (Inherited from SessionUpdate)

Applies to