Table of Contents

Class TranscriptionSegment

Namespace
OpenAI.Audio
Assembly
OpenAI-DotNet.dll

Segment of the transcribed text and their corresponding details.

public sealed class TranscriptionSegment
Inheritance
TranscriptionSegment
Inherited Members

Properties

AverageLogProbability

Average logprob of the segment. If the value is lower than -1, consider the logprobs failed.

[JsonInclude]
[JsonPropertyName("avg_logprob")]
public double AverageLogProbability { get; }

Property Value

double

CompressionRatio

Compression ratio of the segment. If the value is greater than 2.4, consider the compression failed.

[JsonInclude]
[JsonPropertyName("compression_ratio")]
public double CompressionRatio { get; }

Property Value

double

End

End time of the segment in seconds.

[JsonInclude]
[JsonPropertyName("end")]
public double End { get; }

Property Value

double

Id

Unique identifier of the segment.

[JsonInclude]
[JsonPropertyName("id")]
public int Id { get; }

Property Value

int

NoSpeechProbability

Probability of no speech in the segment. If the value is higher than 1.0 and the avg_logprob is below -1, consider this segment silent.

[JsonInclude]
[JsonPropertyName("no_speech_prob")]
public double NoSpeechProbability { get; }

Property Value

double

Seek

Seek offset of the segment.

[JsonInclude]
[JsonPropertyName("seek")]
public int Seek { get; }

Property Value

int

Start

Start time of the segment in seconds.

[JsonInclude]
[JsonPropertyName("start")]
public double Start { get; }

Property Value

double

Temperature

Temperature parameter used for generating the segment.

[JsonInclude]
[JsonPropertyName("temperature")]
public double Temperature { get; }

Property Value

double

Text

Text content of the segment.

[JsonInclude]
[JsonPropertyName("text")]
public string Text { get; }

Property Value

string

Tokens

Array of token IDs for the text content.

[JsonInclude]
[JsonPropertyName("tokens")]
public int[] Tokens { get; }

Property Value

int[]