Audio¶
marimo.audio
¶
audio(
src: str
| bytes
| BytesIO
| BufferedReader
| Path
| NDArray[Any],
rate: int | None = None,
normalize: bool = True,
*,
width: int | str | None = None,
style: dict[str, Any] | None = None,
) -> Html
Render an audio file as HTML.
| PARAMETER | DESCRIPTION |
|---|---|
src
|
a path or URL to an audio
TYPE:
|
rate
|
Sampling rate (required only for NumPy arrays).
TYPE:
|
normalize
|
Whether to rescale NumPy array audio to its max range (
TYPE:
|
width
|
Optional width of the audio element (e.g.
TYPE:
|
style
|
Optional dictionary of CSS styles to apply to the audio element.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
Html
|
An audio player as an |