ElevenLabsTranscriptionResult
Namespace: Vercel.AI.ElevenLabs
public sealed class ElevenLabsTranscriptionResultElevenLabs transcription with word timings and response metadata.
Inheritance: object
Constructors
Section titled “Constructors”ElevenLabsTranscriptionResult(string, IReadOnlyList<TranscriptSegment>, string?, double?, IReadOnlyList<ModelWarning>, ElevenLabsResponse)
Section titled “ElevenLabsTranscriptionResult(string, IReadOnlyList<TranscriptSegment>, string?, double?, IReadOnlyList<ModelWarning>, ElevenLabsResponse)”public ElevenLabsTranscriptionResult(string text, IReadOnlyList<TranscriptSegment> segments, string? language, double? durationInSeconds, IReadOnlyList<ModelWarning> warnings, ElevenLabsResponse response)Creates a transcription result.
Parameters
| Name | Type | Description |
|---|---|---|
text |
string | |
segments |
IReadOnlyList<TranscriptSegment> | |
language |
string | |
durationInSeconds |
double? | |
warnings |
IReadOnlyList<ModelWarning> | |
response |
ElevenLabsResponse |
Properties
Section titled “Properties”DurationInSeconds
Section titled “DurationInSeconds”public double? DurationInSeconds { get; }End time of the last word, in seconds.
Value: double?
Language
Section titled “Language”public string? Language { get; }Detected language code.
Value: string
Response
Section titled “Response”public ElevenLabsResponse Response { get; }Response metadata.
Value: ElevenLabsResponse
Segments
Section titled “Segments”public IReadOnlyList<TranscriptSegment> Segments { get; }One segment per word or spacing item.
Value: IReadOnlyList<TranscriptSegment>
public string Text { get; }Full transcript.
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