Images
Pass images from URLs, local files, or raw bytes:Image Sources
Detail Level
Control the resolution used for analysis:Audio
Send audio input and receive audio output from supported models.Audio Input
Audio Output
Voice Note Transcription
When your agent receives voice messages from Telegram, Discord, or other interfaces, you need to transcribe the audio to text before sending it to the model. Theaudio_transcriber parameter handles this automatically.
audio_transcriber is set:
- Voice messages arrive as
Audioobjects on the message - Each audio clip is sent to the Whisper API for transcription
- The transcript text is appended to the message content
- The
audiofield is cleared so non-audio models don’t receive raw audio blocks
Format Normalization
Telegram sends voice notes as.oga (OGG Opus), which isn’t accepted by all APIs. The reader.audio module provides format normalization:
ffmpeg installed on your system. The audio_transcriber handles this transparently — you don’t need to call normalize_audio_format directly when using it.
Video
Pass video files for analysis:Files
Send documents and other files:Using Media with Agents
Agents accept media directly in therun() call:
Supported Formats
Not all providers support all media types. Check your provider’s documentation for specific format and size limits.