AssemblyAITranscriptionResult
Namespace: Vercel.AI.AssemblyAI
public sealed class AssemblyAITranscriptionResultAssemblyAI transcription, including word segments and audio-intelligence metadata.
Inheritance: object
Constructors
Section titled “Constructors”AssemblyAITranscriptionResult(string, IReadOnlyList<AssemblyAITranscriptionSegment>, string?, double?, IReadOnlyList<ModelWarning>, JsonElement?, AssemblyAITranscriptionResponse)
Section titled “AssemblyAITranscriptionResult(string, IReadOnlyList<AssemblyAITranscriptionSegment>, string?, double?, IReadOnlyList<ModelWarning>, JsonElement?, AssemblyAITranscriptionResponse)”public AssemblyAITranscriptionResult(string text, IReadOnlyList<AssemblyAITranscriptionSegment> segments, string? language, double? durationInSeconds, IReadOnlyList<ModelWarning> warnings, JsonElement? providerMetadata, AssemblyAITranscriptionResponse response)Creates a transcription result.
Parameters
| Name | Type | Description |
|---|---|---|
text |
string | |
segments |
IReadOnlyList<AssemblyAITranscriptionSegment> | |
language |
string | |
durationInSeconds |
double? | |
warnings |
IReadOnlyList<ModelWarning> | |
providerMetadata |
JsonElement? | |
response |
AssemblyAITranscriptionResponse |
Properties
Section titled “Properties”DurationInSeconds
Section titled “DurationInSeconds”public double? DurationInSeconds { get; }Audio duration, or the last word end when the duration is missing.
Value: double?
Language
Section titled “Language”public string? Language { get; }Language code reported on the transcript.
Value: string
ProviderMetadata
Section titled “ProviderMetadata”public JsonElement? ProviderMetadata { get; }Diarization and audio-intelligence results under assemblyai, when the transcript has any.
Timings inside these objects stay in milliseconds, as AssemblyAI returns them.
Value: JsonElement?
Response
Section titled “Response”public AssemblyAITranscriptionResponse Response { get; }Response metadata.
Value: AssemblyAITranscriptionResponse
Segments
Section titled “Segments”public IReadOnlyList<AssemblyAITranscriptionSegment> Segments { get; }Words with timings in seconds.
Value: IReadOnlyList<AssemblyAITranscriptionSegment>
public string Text { get; }Full transcript.
Value: string
Warnings
Section titled “Warnings”public IReadOnlyList<ModelWarning> Warnings { get; }Warnings produced while building the request.
Value: IReadOnlyList<ModelWarning>
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product