analyze_audio
Transcribe or analyze one audio file (WAV, MP3, FLAC, OGG, etc.) with a multimodal model. Output is tagged _meta.content_is_untrusted: true.
Use when:
- You have a local audio file or URL and need transcription or audio understanding
- Format is a common audio container the decoder recognizes
Do NOT use when:
- You want text-to-speech → use generate_audio
- Input is video → use analyze_video (or extract audio first)
- Pure text chat → use chat_completion
Good examples:
{ "audio_path": "meeting.wav", "question": "Transcribe verbatim." }{ "audio_path": "https://example.com/podcast.mp3", "question": "Summarize topics." }
Bad examples:
{ "audio_path": "/etc/shadow" }→ UNSAFE_PATH{ "path": "song.mp3" }→ wrong key; useaudio_path- Non-audio binary renamed to .mp3 → UNSUPPORTED_FORMAT
Fails when:
- INVALID_INPUT: audio_path missing
- UNSAFE_PATH: local path escaped the sandbox
- UNSUPPORTED_FORMAT: file is not recognized as audio
- RESOURCE_TOO_LARGE: exceeds size cap
Works with: generate_audio, search_models.