Skip to content

GoogleSpeechCall

Namespace: Vercel.AI.Google

public sealed class GoogleSpeechCall

Speech request settings beyond the shared text and voice fields.

Inheritance: object

View source

public GoogleSpeechCall(string text)

Creates a speech call.

Parameters

Name Type Description
text string

View source

public string? Instructions { get; set; }

Style directions.

Value: string

View source

public string? Language { get; set; }

Language. Gemini TTS ignores it.

Value: string

View source

public string? OutputFormat { get; set; }

Output format such as wav or pcm.

Value: string

View source

public IReadOnlyDictionary<string, JsonElement>? ProviderOptions { get; set; }

Provider options under google, googleVertex, or vertex.

Value: IReadOnlyDictionary<string, JsonElement>

View source

public double? Speed { get; set; }

Speaking rate. Gemini TTS ignores it.

Value: double?

View source

public string Text { get; }

Transcript.

Value: string

View source

public string? Voice { get; set; }

Prebuilt voice. Defaults to Kore.

Value: string

View source

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