OpenAISpeechCall
Namespace: Vercel.AI.OpenAI
public sealed class OpenAISpeechCallSpeech synthesis settings.
Inheritance: object
Constructors
Section titled “Constructors”OpenAISpeechCall(string)
Section titled “OpenAISpeechCall(string)”public OpenAISpeechCall(string text)Creates a speech call.
Parameters
| Name | Type | Description |
|---|---|---|
text |
string |
Properties
Section titled “Properties”Headers
Section titled “Headers”public IReadOnlyDictionary<string, string?>? Headers { get; set; }Extra HTTP headers.
Value: IReadOnlyDictionary<string, string>
Instructions
Section titled “Instructions”public string? Instructions { get; set; }Speaking instructions.
Value: string
Language
Section titled “Language”public string? Language { get; set; }Language. OpenAI speech models ignore it.
Value: string
OutputFormat
Section titled “OutputFormat”public string? OutputFormat { get; set; }Audio format. Unsupported values fall back to mp3.
Value: string
ProviderOptions
Section titled “ProviderOptions”public JsonElement? ProviderOptions { get; set; }Provider options. openai.speed and openai.instructions override the call.
Value: JsonElement?
public double? Speed { get; set; }Playback speed.
Value: double?
public string Text { get; }Text to speak.
Value: string
public string? Voice { get; set; }Voice. Defaults to alloy.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product