> ## Documentation Index
> Fetch the complete documentation index at: https://cometchat-22654f5b-docs-llms-scoped-indexes.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Audio Bubble

> Audio Bubble — CometChat documentation.

`CometChatAudioBubble` is the content view for a MediaMessage if the media sent is an audio.

## Properties

| Name | Type | Description |
| - | - | - |
| src | string | URL of the audio file |
| autoPlay | boolean | When set to true, the audio will automatically begin playback as soon as it can do so, without waiting for the entire audio file to finish downloading. |
| loop | boolean | When set to true, the audio player will automatically seek back to the start upon reaching the end of the audio. |
| muted | boolean | when set to true, the audio will be initially silenced. |
| audioStyle | [AudioBubbleStyle](/ui-kit/angular/v4/audio-bubble#audiobubblestyle) | Styling properties and values of the element |

## AudioBubbleStyle

| Name | Description |
| - | - |
| width | Sets the width of the element |
| height | Sets the height of the element |
| border | Sets the border of the element |
| borderRadius | Sets the border radius of the element |
| background | Sets all background style properties at once, such as color, image, origin and size, or repeat method. [Reference link](https://developer.mozilla.org/en-US/docs/Web/CSS/background) |

## Usage

<Tabs>
  <Tab title="HTML">
    ```html theme={null}
    <!--use the element-->
    <cometchat-audio-bubble
    [src]="audioURL"
    ></cometchat-audio-bubble>
    ```
  </Tab>

  <Tab title="JavaScript">
    ```js theme={null}
    import '@cometchat/uikit-elements';//import the web component package.

    const audioURL = "https://samplelib.com/lib/preview/mp3/sample-9s.mp3";
    ```
  </Tab>
</Tabs>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.