Skip to main content

Function: sttLanguageOptions()

sttLanguageOptions(entry, language?): { language?: string; } | null

Defined in: packages/agentos/src/io/voice-pipeline/LowestCostStt.ts:77

Wire options for the priced model. Nova-3's monolingual row requires an explicit language; automatic language would require a separately verified model/tariff. OpenAI omits the language field for automatic recognition.

Parameters​

entry​

string

A built-in hosted entry in vendor:model form.

language?​

A language tag such as es or en-US; null for automatic language; omitted for the legacy English default.

string | null

Returns​

{ language?: string; } | null

The language option to open the entry with, or null when the entry has no priced route for automatic language (a Deepgram entry given null).

Throws​

For a malformed entry or a language that is not a language tag.