SpeechModelCall
Namespace: Vercel.AI.Operations
public sealed class SpeechModelCallArguments for doGenerate on a speech model.
Inheritance: object
Constructors
Section titled “Constructors”SpeechModelCall(string, string?, string?, string?, double?, string?, JsonElement, IReadOnlyDictionary<string, string>, CancellationToken)
Section titled “SpeechModelCall(string, string?, string?, string?, double?, string?, JsonElement, IReadOnlyDictionary<string, string>, CancellationToken)”public SpeechModelCall(string text, string? voice, string? outputFormat, string? instructions, double? speed, string? language, JsonElement providerOptions, IReadOnlyDictionary<string, string> headers, CancellationToken cancellationToken)Creates a speech call.
Parameters
| Name | Type | Description |
|---|---|---|
text |
string | |
voice |
string | |
outputFormat |
string | |
instructions |
string | |
speed |
double? | |
language |
string | |
providerOptions |
JsonElement | |
headers |
IReadOnlyDictionary<string, string> | |
cancellationToken |
CancellationToken |
Properties
Section titled “Properties”CancellationToken
Section titled “CancellationToken”public CancellationToken CancellationToken { get; }Cancellation token.
Value: CancellationToken
Headers
Section titled “Headers”public IReadOnlyDictionary<string, string> Headers { get; }Headers including the user-agent suffix.
Value: IReadOnlyDictionary<string, string>
Instructions
Section titled “Instructions”public string? Instructions { get; }Speaking instructions.
Value: string
Language
Section titled “Language”public string? Language { get; }Language or auto.
Value: string
OutputFormat
Section titled “OutputFormat”public string? OutputFormat { get; }Requested output format.
Value: string
ProviderOptions
Section titled “ProviderOptions”public JsonElement ProviderOptions { get; }Provider options. Empty object when omitted.
Value: JsonElement
public double? Speed { get; }Playback speed.
Value: double?
public string Text { get; }Text to speak.
Value: string
public string? Voice { get; }Voice id.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product