Skip to content

DeepgramSpeechRequest

Namespace: Vercel.AI.Deepgram

public sealed class DeepgramSpeechRequest

One Deepgram text-to-speech call.

Inheritance: object

View source

public DeepgramSpeechRequest(string text)

Creates a speech request.

Parameters

Name Type Description
text string

View source

public IDictionary<string, string>? Headers { get; set; }

Headers merged over the provider headers.

Value: IDictionary<string, string>

View source

public string? Instructions { get; set; }

Ignored. Deepgram does not accept instructions; a warning is returned.

Value: string

View source

public string? Language { get; set; }

Language. Used to compose family model ids. auto falls back to en.

Value: string

View source

public string OutputFormat { get; set; }

Output format, such as mp3, wav, or linear16_16000.

Value: string

View source

public JsonElement? ProviderOptions { get; set; }

Provider options. The deepgram object is read.

Value: JsonElement?

View source

public double? Speed { get; set; }

Speaking rate, sent as the speed query parameter.

Value: double?

View source

public string Text { get; }

Text to speak.

Value: string

View source

public string? Voice { get; set; }

Voice. Required for the aura and aura-2 family ids, where it becomes part of the model id.

Value: string

View source

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