Skip to content

ElevenLabsResponse

Namespace: Vercel.AI.ElevenLabs

public sealed class ElevenLabsResponse

Response metadata for one ElevenLabs call.

Inheritance: object

View source

ElevenLabsResponse(DateTimeOffset, string, IReadOnlyDictionary<string, string>, JsonElement?)

Section titled “ElevenLabsResponse(DateTimeOffset, string, IReadOnlyDictionary<string, string>, JsonElement?)”
public ElevenLabsResponse(DateTimeOffset timestamp, string modelId, IReadOnlyDictionary<string, string> headers, JsonElement? body)

Creates response metadata.

Parameters

Name Type Description
timestamp DateTimeOffset
modelId string
headers IReadOnlyDictionary<string, string>
body JsonElement?

View source

public JsonElement? Body { get; }

JSON response body. Speech calls return audio, so this is null for them.

Value: JsonElement?

View source

public IReadOnlyDictionary<string, string> Headers { get; }

Response headers.

Value: IReadOnlyDictionary<string, string>

View source

public string ModelId { get; }

Model id.

Value: string

View source

public DateTimeOffset Timestamp { get; }

Timestamp captured when the call started.

Value: DateTimeOffset

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product