DeepgramSpeechRequest
Namespace: Vercel.AI.Deepgram
public sealed class DeepgramSpeechRequestOne Deepgram text-to-speech call.
Inheritance: object
Constructors
Section titled “Constructors”DeepgramSpeechRequest(string)
Section titled “DeepgramSpeechRequest(string)”public DeepgramSpeechRequest(string text)Creates a speech request.
Parameters
| Name | Type | Description |
|---|---|---|
text |
string |
Properties
Section titled “Properties”Headers
Section titled “Headers”public IDictionary<string, string>? Headers { get; set; }Headers merged over the provider headers.
Value: IDictionary<string, string>
Instructions
Section titled “Instructions”public string? Instructions { get; set; }Ignored. Deepgram does not accept instructions; a warning is returned.
Value: string
Language
Section titled “Language”public string? Language { get; set; }Language. Used to compose family model ids. auto falls back to en.
Value: string
OutputFormat
Section titled “OutputFormat”public string OutputFormat { get; set; }Output format, such as mp3, wav, or linear16_16000.
Value: string
ProviderOptions
Section titled “ProviderOptions”public JsonElement? ProviderOptions { get; set; }Provider options. The deepgram object is read.
Value: JsonElement?
public double? Speed { get; set; }Speaking rate, sent as the speed query parameter.
Value: double?
public string Text { get; }Text to speak.
Value: string
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
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product