AudioTranslationSegment Class

Definition

Extended information about a single segment of translated audio data. Segments generally represent roughly 5-10 seconds of speech. Segment boundaries typically occur between words but not necessarily sentences.

public class AudioTranslationSegment : System.ClientModel.Primitives.IJsonModel<Azure.AI.OpenAI.AudioTranslationSegment>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.OpenAI.AudioTranslationSegment>
type AudioTranslationSegment = class
    interface IJsonModel<AudioTranslationSegment>
    interface IPersistableModel<AudioTranslationSegment>
Public Class AudioTranslationSegment
Implements IJsonModel(Of AudioTranslationSegment), IPersistableModel(Of AudioTranslationSegment)
Inheritance
AudioTranslationSegment
Implements

Properties

AverageLogProbability

The average log probability associated with this audio segment.

CompressionRatio

The compression ratio of this audio segment.

End

The time at which this segment ended relative to the beginning of the translated audio.

Id

The 0-based index of this segment within a translation.

NoSpeechProbability

The probability of no speech detection within this audio segment.

Seek

The seek position associated with the processing of this audio segment. Seek positions are expressed as hundredths of seconds. The model may process several segments from a single seek position, so while the seek position will never represent a later time than the segment's start, the segment's start may represent a significantly later time than the segment's associated seek position.

Start

The time at which this segment started relative to the beginning of the translated audio.

Temperature

The temperature score associated with this audio segment.

Text

The translated text that was part of this audio segment.

Tokens

The token IDs matching the translated text in this audio segment.

Explicit Interface Implementations

IJsonModel<AudioTranslationSegment>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<AudioTranslationSegment>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<AudioTranslationSegment>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<AudioTranslationSegment>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<AudioTranslationSegment>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to