@_with_element
def audio(self, element, data, format='audio/wav', start_time=0):
    "Display an audio player.\n\n        Parameters\n        ----------\n        data : str, bytes, BytesIO, numpy.ndarray, or file opened with\n                io.open().\n            Raw audio data, filename, or a URL pointing to the file to load.\n            Numpy arrays and raw data formats must include all necessary file\n            headers to match specified file format.\n        start_time: int\n            The time from which this element should start playing.\n        format : str\n            The mime type for the audio file. Defaults to 'audio/wav'.\n            See https://tools.ietf.org/html/rfc4281 for more info.\n\n        Example\n        -------\n        >>> audio_file = open('myaudio.ogg', 'rb')\n        >>> audio_bytes = audio_file.read()\n        >>>\n        >>> st.audio(audio_bytes, format='audio/ogg')\n\n        .. output::\n           https://share.streamlit.io/0.25.0-2JkNY/index.html?id=Dv3M9sA7Cg8gwusgnVNTHb\n           height: 400px\n\n        "
    from .elements import media_proto
    media_proto.marshall_audio(self._get_coordinates(), element.audio, data, format, start_time)
Display an audio player.

Parameters
----------
data : str, bytes, BytesIO, numpy.ndarray, or file opened with
        io.open().
    Raw audio data, filename, or a URL pointing to the file to load.
    Numpy arrays and raw data formats must include all necessary file
    headers to match specified file format.
start_time: int
    The time from which this element should start playing.
format : str
    The mime type for the audio file. Defaults to 'audio/wav'.
    See https://tools.ietf.org/html/rfc4281 for more info.

Example
-------
>>> audio_file = open('myaudio.ogg', 'rb')
>>> audio_bytes = audio_file.read()
>>>
>>> st.audio(audio_bytes, format='audio/ogg')

.. output::
   https://share.streamlit.io/0.25.0-2JkNY/index.html?id=Dv3M9sA7Cg8gwusgnVNTHb
   height: 400px
@_with_element
def audio(self, element, data, format='audio/wav', start_time=0):
    "Display an audio player.\n\n        Parameters\n        ----------\n        data : str, bytes, BytesIO, numpy.ndarray, or file opened with\n                io.open().\n            Raw audio data, filename, or a URL pointing to the file to load.\n            Numpy arrays and raw data formats must include all necessary file\n            headers to match specified file format.\n        start_time: int\n            The time from which this element should start playing.\n        format : str\n            The mime type for the audio file. Defaults to 'audio/wav'.\n            See https://tools.ietf.org/html/rfc4281 for more info.\n\n        Example\n        -------\n        >>> audio_file = open('myaudio.ogg', 'rb')\n        >>> audio_bytes = audio_file.read()\n        >>>\n        >>> st.audio(audio_bytes, format='audio/ogg')\n\n        .. output::\n           https://share.streamlit.io/0.25.0-2JkNY/index.html?id=Dv3M9sA7Cg8gwusgnVNTHb\n           height: 400px\n\n        "
    from .elements import media_proto
    media_proto.marshall_audio(self._get_coordinates(), element.audio, data, format, start_time)