AudioTranscriptionSegment Class

Definition

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

public class AudioTranscriptionSegment : System.ClientModel.Primitives.IJsonModel<Azure.AI.OpenAI.AudioTranscriptionSegment>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.OpenAI.AudioTranscriptionSegment>
type AudioTranscriptionSegment = class
    interface IJsonModel<AudioTranscriptionSegment>
    interface IPersistableModel<AudioTranscriptionSegment>
Public Class AudioTranscriptionSegment
Implements IJsonModel(Of AudioTranscriptionSegment), IPersistableModel(Of AudioTranscriptionSegment)
Inheritance
AudioTranscriptionSegment
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 transcribed audio.

Id

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

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 transcribed audio.

Temperature

The temperature score associated with this audio segment.

Text

The transcribed text that was part of this audio segment.

Tokens

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

Explicit Interface Implementations

IJsonModel<AudioTranscriptionSegment>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<AudioTranscriptionSegment>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<AudioTranscriptionSegment>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<AudioTranscriptionSegment>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<AudioTranscriptionSegment>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to