from fastapi import FastAPI, File, UploadFile app = FastAPI() @app.post("/uploadfile/") async def upload_file(file: UploadFile = File(...)): contents = await file.read() # Here you can process the WAV file data stored in 'contents' return {"filename": file.filename}