DeepgramTranscriptionResult
Namespace: Vercel.AI.Deepgram
public sealed class DeepgramTranscriptionResultDeepgram transcription with word timings and response metadata.
Inheritance: object
Constructors
Section titled “Constructors”DeepgramTranscriptionResult(string, IReadOnlyList<TranscriptSegment>, string?, double?, IReadOnlyList<ModelWarning>, DeepgramResponse)
Section titled “DeepgramTranscriptionResult(string, IReadOnlyList<TranscriptSegment>, string?, double?, IReadOnlyList<ModelWarning>, DeepgramResponse)”public DeepgramTranscriptionResult(string text, IReadOnlyList<TranscriptSegment> segments, string? language, double? durationInSeconds, IReadOnlyList<ModelWarning> warnings, DeepgramResponse response)Creates a transcription result.
Parameters
| Name | Type | Description |
|---|---|---|
text |
string | |
segments |
IReadOnlyList<TranscriptSegment> | |
language |
string | |
durationInSeconds |
double? | |
warnings |
IReadOnlyList<ModelWarning> | |
response |
DeepgramResponse |
Properties
Section titled “Properties”DurationInSeconds
Section titled “DurationInSeconds”public double? DurationInSeconds { get; }Audio duration from the response metadata.
Value: double?
Language
Section titled “Language”public string? Language { get; }Detected language, when language detection ran.
Value: string
Response
Section titled “Response”public DeepgramResponse Response { get; }Response metadata.
Value: DeepgramResponse
Segments
Section titled “Segments”public IReadOnlyList<TranscriptSegment> Segments { get; }One segment per word.
Value: IReadOnlyList<TranscriptSegment>
public string Text { get; }Transcript of the first channel.
Value: string
Warnings
Section titled “Warnings”public IReadOnlyList<ModelWarning> Warnings { get; }Warnings for ignored settings.
Value: IReadOnlyList<ModelWarning>
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product