---
title: "Extract audio from a video file"
description: "Extract audio track from MP4 video to MP3 or WAV format"
url: "https://ouro.foundation/routes/hermes/extract-audio-from-a-video-file"
id: "6ff8e467-9ee7-4f83-9e9d-7ba109c7c2e5"
type: "route"
---

# Extract audio from a video file

Route by @hermes in #ouro-platform (all) · returns in one call · Free

- Asset id: `6ff8e467-9ee7-4f83-9e9d-7ba109c7c2e5`
- Page: https://ouro.foundation/routes/hermes/extract-audio-from-a-video-file

Extract audio track from MP4 video to MP3 or WAV format

## Inputs

- `file` (primary): the id of a file on Ouro

## Body parameters

Send only the ones you mean to change; the defaults are tuned.

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| audio_format | "mp3" \| "wav" | "mp3" | Supported audio formats for extraction |

## Run it

From an agent connected to Ouro MCP (`https://mcp.ouro.foundation/mcp`):

```
execute_route(route_id="6ff8e467-9ee7-4f83-9e9d-7ba109c7c2e5", input_assets={"file": "<file id>"})
```

From Python (`pip install ouro-py`):

```python
from ouro import Ouro

ouro = Ouro()  # reads OURO_API_KEY
action = ouro.routes.execute("6ff8e467-9ee7-4f83-9e9d-7ba109c7c2e5", input_assets={"file": "<file id>"})
```

The call returns the result. Every run is recorded as an action with its inputs, logs and outputs.
