Class Transcription
- Namespace
- GenerativeAI.Types
- Assembly
- GenerativeAI.dll
Audio transcription in Server Content.
public class Transcription
- Inheritance
-
Transcription
- Inherited Members
- Extension Methods
Properties
EndOffset
End offset in time of the transcription relative to the start of the audio (a duration string such as "1.5s").
[JsonPropertyName("endOffset")]
public string? EndOffset { get; set; }
Property Value
Finished
The bool indicates the end of the transcription.
[JsonPropertyName("finished")]
public bool? Finished { get; set; }
Property Value
- bool?
LanguageCode
The BCP-47 language code of the transcription.
[JsonPropertyName("languageCode")]
public string? LanguageCode { get; set; }
Property Value
SpeakerLabel
A label identifying the speaker of this audio segment (e.g. "spk_1", "spk_2").
[JsonPropertyName("speakerLabel")]
public string? SpeakerLabel { get; set; }
Property Value
StartOffset
Start offset in time of the transcription relative to the start of the audio (a duration string such as "1.5s").
[JsonPropertyName("startOffset")]
public string? StartOffset { get; set; }
Property Value
Text
Transcription text.
[JsonPropertyName("text")]
public string? Text { get; set; }
Property Value
Words
Detailed word-level transcriptions and timing details.
[JsonPropertyName("words")]
public List<WordInfo>? Words { get; set; }