SpeechProviderConfig
Defined in: core/src/providers/speech-factory.ts:15
Extends
Section titled “Extends”Properties
Section titled “Properties”apiKey
Section titled “apiKey”apiKey: string;Defined in: core/src/providers/speech-factory.ts:16
baseUrl?
Section titled “baseUrl?”optional baseUrl?: string;Defined in: core/src/providers/speech-factory.ts:29
Replaces the preset’s host, for a server that copies its route (a local speech
server behind the openai preset, a proxy). The preset’s default model, voice,
format and text limit are facts about its own host, so they do not follow you
here: pass the model, and a voice unless every call names one.
fetchImpl?
Section titled “fetchImpl?”optional fetchImpl?: FetchLike;Defined in: core/src/providers/speech-factory.ts:34
Swapped in tests, or to route through a proxy. Defaults to global fetch.
format?
Section titled “format?”optional format?: "wav" | "pcm" | "mp3" | "opus" | "aac" | "flac";Defined in: core/src/providers/speech-factory.ts:22
Used when a call names no format. Absent: the preset’s speech.defaultFormat, else “wav”.
headers?
Section titled “headers?”optional headers?: Record<string, string>;Defined in: core/src/providers/speech-factory.ts:30
maxAudioBytes?
Section titled “maxAudioBytes?”optional maxAudioBytes?: number;Defined in: core/src/speech-core.ts:77
Largest audio accepted, in bytes. Default 32 MiB.
Inherited from
Section titled “Inherited from”maxInputChars?
Section titled “maxInputChars?”optional maxInputChars?: number;Defined in: core/src/speech-core.ts:75
Longest text, in UTF-16 units (JavaScript’s .length). Default 4,096.
Over it is refused before any request. Never silently cut.
Inherited from
Section titled “Inherited from”maxOutputTokens?
Section titled “maxOutputTokens?”optional maxOutputTokens?: number;Defined in: core/src/providers/speech-factory.ts:32
The google preset only: caps the audio tokens generated. Refused on a wire that has no such field.
model?
Section titled “model?”optional model?: string;Defined in: core/src/providers/speech-factory.ts:18
Absent: the preset’s speech.defaultModel. A preset without one needs this.
siteName?
Section titled “siteName?”optional siteName?: string;Defined in: core/src/attribution.ts:15
App name, sent as X-Title (e.g. “Your App”).
Inherited from
Section titled “Inherited from”siteUrl?
Section titled “siteUrl?”optional siteUrl?: string;Defined in: core/src/attribution.ts:13
Site URL, sent as HTTP-Referer (e.g. “https://your.app”).
Inherited from
Section titled “Inherited from”timeoutMs?
Section titled “timeoutMs?”optional timeoutMs?: number;Defined in: core/src/speech-core.ts:79
One deadline for the whole call, headers and body. Default 120,000.
Inherited from
Section titled “Inherited from”voice?
Section titled “voice?”optional voice?: string;Defined in: core/src/providers/speech-factory.ts:20
Used when a call names no voice. Absent: the preset’s speech.defaultVoice.