Audio class allows you to display an audio player for a specific audio file in the chatbot user interface.
You must provide either an url or a path or content bytes.
Attributes
str
The name of the audio file to be displayed in the UI. This is shown to users.
ElementDisplay
Determines where the element should be displayed in the UI. Choices are “side”
(default), “inline”, or “page”.
str
The remote URL of the audio.
str
The local file path of the audio.
bytes
The file content of the audio in bytes format.
bool
Whether the audio should start playing automatically.