> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mainly.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Audio

> The Audio control is used to display an audio player.

<Note>This control is view-only. It is not interactive.</Note>

```
Audio(src=None)
```

# Example

```python theme={null}
from mirmod.controls import Audio
from mirmod import miranda
import json

@wob.receiver("state","audio",control=Audio(),hidden=True,connectable=False)
def get_audio(self, audio_data):
	pass

@wob.execute()
def execute(self):
	# Audio source can be a URL or base64 data URI
	audio_url = "https://example.com/audio.mp3"
	
	ecx = miranda.get_execution_context()
	ob = ecx.get_current_wob()
	sc = ecx.get_security_context()

	miranda.update_api(
		sc, ob,
		"RECEIVER", "audio", "state",
		value=audio_url, connectable=False, hidden=True
	)
	miranda.notify_gui(sc, json.dumps({
		"action": "update[VIEW]",
		"data": { "id": ob.id, "metadata_id" : ob.metadata_id }
	}))
```

# Parameters

| Name | Type   | Description                                        |
| ---- | ------ | -------------------------------------------------- |
| src  | string | Source URL or data URI of the audio. Default None. |
