client.audio object allows you to process audio files and extract structured data.
Python SDK
client.audio
Audio Processing API
The
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Audio Processing API
client.audio object allows you to process audio files and extract structured data.
from pathlib import Path
from vlmrun.client import VLMRun
from vlmrun.client.types import PredictionResponse
# Initialize the client
client = VLMRun()
# Process an audio file with a predefined schema
response: PredictionResponse = client.audio.generate(
file=Path("path/to/audio.mp3"),
domain="audio.transcription",
)
from vlmrun.client.types import CreditUsage
usage: CreditUsage = response.usage
print(usage)