"""Audio understanding with Files API upload."""
from google import genai

def main() -> None:
    client = genai.Client()
    myfile = client.files.upload(file="sample.mp3")

    resp = client.models.generate_content(
        model="gemini-3-flash-preview",
        contents=["Describe this audio clip", myfile],
    )
    print(resp.text)

if __name__ == "__main__":
    main()
