Skip to content

DeepgramSpeechResult

Namespace: Vercel.AI.Deepgram

public sealed class DeepgramSpeechResult

Synthesized Deepgram audio.

Inheritance: object

View source

DeepgramSpeechResult(byte[], string, IReadOnlyList<ModelWarning>, string, DeepgramResponse, JsonElement)

Section titled “DeepgramSpeechResult(byte[], string, IReadOnlyList<ModelWarning>, string, DeepgramResponse, JsonElement)”
public DeepgramSpeechResult(byte[] audio, string mediaType, IReadOnlyList<ModelWarning> warnings, string requestBody, DeepgramResponse response, JsonElement providerMetadata)

Creates a speech result.

Parameters

Name Type Description
audio byte[]
mediaType string
warnings IReadOnlyList<ModelWarning>
requestBody string
response DeepgramResponse
providerMetadata JsonElement

View source

public byte[] Audio { get; }

Audio bytes.

Value: byte[]

View source

public string MediaType { get; }

Response media type.

Value: string

View source

public JsonElement ProviderMetadata { get; }

{ "deepgram": { ... } } with model and usage details from the dg-* response headers.

Value: JsonElement

View source

public string RequestBody { get; }

JSON request body.

Value: string

View source

public DeepgramResponse Response { get; }

Response metadata.

Value: DeepgramResponse

View source

public IReadOnlyList<ModelWarning> Warnings { get; }

Warnings for ignored or adjusted settings.

Value: IReadOnlyList<ModelWarning>

View source

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