Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 5.03 KB

speechinputreferenceaudioinput.mdx

File metadata and controls

14 lines (10 loc) · 5.03 KB
title SpeechInputReferenceAudioInput

Reference audio input object

Fields

Field Type Required Description Example
data Optional[str] ➖ Base64-encoded reference audio (optionally a data URI). Supported audio formats are provider-specific. Limited to 20 MiB of base64 (15 MiB of decoded audio). Exactly one of data or url is required. data:audio/wav;base64,UklGRuQXDABXQVZF...
format_ Optional[str] ➖ Audio format of the reference audio (e.g., wav, mp3). Optional; most providers detect the format from the audio bytes. wav
url Optional[str] ➖ Public http(s) URL of the reference audio. OpenRouter downloads it (15 MiB max) and forwards the bytes, never the URL. Exactly one of data or url is required. https://example.com/reference.wav