Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/openai/resources/audio/transcriptions.ts>TranscriptionSegment

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Latest
interface TranscriptionSegment
import { type TranscriptionSegment } from "https://deno.land/x/openai@v4.69.0/resources/audio/transcriptions.ts";

Properties

id: number

Unique identifier of the segment.

avg_logprob: number

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

compression_ratio: number

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

end: number

End time of the segment in seconds.

no_speech_prob: number

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.

seek: number

Seek offset of the segment.

start: number

Start time of the segment in seconds.

temperature: number

Temperature parameter used for generating the segment.

text: string

Text content of the segment.

tokens: Array<number>

Array of token IDs for the text content.