Audio#
- marimo.audio(src: str | BytesIO) Html #
Render an audio file as HTML.
Example.
mo.audio( src="https://upload.wikimedia.org/wikipedia/commons/8/8c/Ivan_Ili%C4%87-Chopin_-_Prelude_no._1_in_C_major.ogg" ) with open("recording.wav", "rb") as file: mo.audio(src=file)
Args.
src
: the URL of the audio or a file-like object
Returns.
An audio player as an
Html
object.