Example Usage
import { SpeechOutputModality } from "@openrouter/sdk/models";
let value: SpeechOutputModality = {
supportedParameters: {},
type: "speech",
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
languages | string[] | ➖ | BCP 47 tags of the languages the provider documents for this output, for example en, hi or pt-BR. How the language is chosen (from the text, the voice, or a provider option) varies by provider. Absent: not described. | [ “en”, “fr”, “hi” ] |
supportedParameters | models.SpeechSupportedParameters | ✔️ | N/A | { “instructions”: { “type”: “unknown” }, “response_format”: { “type”: “enum”, “values”: [ “mp3”, “pcm” ] }, “speed”: { “max”: 4, “min”: 0.25, “type”: “range” }, “voice”: { “type”: “enum”, “values”: [ “alloy”, “coral” ] } } |
type | models.SpeechOutputModalityType | ✔️ | N/A |