DeepgramSpeechResult
Namespace: Vercel.AI.Deepgram
public sealed class DeepgramSpeechResultSynthesized Deepgram audio.
Inheritance: object
Constructors
Section titled “Constructors”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 |
Properties
Section titled “Properties”public byte[] Audio { get; }Audio bytes.
Value: byte[]
MediaType
Section titled “MediaType”public string MediaType { get; }Response media type.
Value: string
ProviderMetadata
Section titled “ProviderMetadata”public JsonElement ProviderMetadata { get; }{ "deepgram": { ... } } with model and usage details from the dg-* response headers.
Value: JsonElement
RequestBody
Section titled “RequestBody”public string RequestBody { get; }JSON request body.
Value: string
Response
Section titled “Response”public DeepgramResponse Response { get; }Response metadata.
Value: DeepgramResponse
Warnings
Section titled “Warnings”public IReadOnlyList<ModelWarning> Warnings { get; }Warnings for ignored or adjusted settings.
Value: IReadOnlyList<ModelWarning>
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product