# What is the correct way to use the LARGE\_ROOM\_FOR\_AUDIO\_ONLY

**URL:** https://community.sendbird.com/t/what-is-the-correct-way-to-use-the-large-room-for-audio-only/3911
**Category:** JavaScript
**Tags:** sendbird-call
**Created:** [February 8, 2022, 2:21pm UTC](https://community.sendbird.com/t/what-is-the-correct-way-to-use-the-large-room-for-audio-only/3911 "2022-02-08T14:21:05Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![msj88](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/msj88/32/2040_2.png) [@msj88](https://community.sendbird.com/u/msj88)
#### Post date: [February 8, 2022, 2:21pm UTC](https://community.sendbird.com/t/what-is-the-correct-way-to-use-the-large-room-for-audio-only/3911/1 "2022-02-08T14:21:05Z")

</div>

I’m tryin to test the large-audio-room with the quickstart-calls-reactjs app provided.  
First, I have created the LARGE\_ROOM\_FOR\_AUDIO\_ONLY from SB dashboard.  
And then fetch and enter using the room id. I have checked the number of participants and participant id in the room information and it looked it was all working good.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/sendbird/original/2X/5/55bc83376fa0e4d5988ea3af95b4412a069122f3.png)

However, the microphone and audio did not seem to work. I followed the guide in the docs but still failed to play the audio.  
The setAudioForLargeRoom() fails with errors:

```auto
SendBirdCall.min.js:6 Uncaught (in promise) Error: The participant is not in the room and the request can't be processed.
    at i.value (SendBirdCall.min.js:6:1)
    at i.<anonymous> (SendBirdCall.min.js:6:1)
    at tryCatch (runtime.js:63:1)
    at Generator.invoke [as _invoke] (runtime.js:294:1)
    at Generator.next (runtime.js:119:1)
    at xn (SendBirdCall.min.js:6:1)
    at i (SendBirdCall.min.js:6:1)
    at SendBirdCall.min.js:6:1
    at new Promise (<anonymous>)
    at i.<anonymous> (SendBirdCall.min.js:6:1)

```

It fails even if there is already a participant.

Here are some code snippets for clearance.  
In index.html, added audio element after root:

```auto
  <body>
    <noscript>You need to enable JavaScript to run this app.</noscript>
    <div id="root"></div>
    <audio id="sb_audio" autoplay></audio>
  </body>

```

In provider.tsx:

```auto
  const fetchRoomById = useCallback<ContextType["fetchRoomById"]>(
    async (roomId) => {
      const room = await SendbirdCall.fetchRoomById(roomId);
      if (room.roomType === SendbirdCall.RoomType.LARGE_ROOM_FOR_AUDIO_ONLY) {
        const audioElement = document.getElementById(
          "sb_audio"
        ) as HTMLAudioElement;
        room.setAudioForLargeRoom(audioElement);
      }
     ...

```

Please help to resolve the above error and enable microphone and audio.

---

<div class="post-metadata">

### Author: ![walter.rodriguez](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/walter.rodriguez/32/546_2.png) [@walter.rodriguez](https://community.sendbird.com/u/walter.rodriguez)
#### Post date: [February 8, 2022, 2:28pm UTC](https://community.sendbird.com/t/what-is-the-correct-way-to-use-the-large-room-for-audio-only/3911/3 "2022-02-08T14:28:46Z")

</div>

Hello @msj88 and welcome to the community.

According to the error, you need to ENTER the channel first.

 ![Screenshot 2022-02-08 at 14.25.48](https://us1.discourse-cdn.com/flex020/uploads/sendbird/original/2X/3/3145b8338c5ce9c0108ac5fe2da5fe450bc71273.png)

Please check our official sample app here:

> **[GitHub - sendbird/quickstart-calls-reactjs](https://github.com/sendbird/quickstart-calls-reactjs)**
>
> Contribute to sendbird/quickstart-calls-reactjs development by creating an account on GitHub.

And the screenshot in particular comes from [this file here](https://github.com/sendbird/quickstart-calls-reactjs/blob/main/sample-01/src/components/pages/GroupCallMain/GroupCallMain.tsx).

---

<div class="post-metadata">

### Author: ![msj88](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/msj88/32/2040_2.png) [@msj88](https://community.sendbird.com/u/msj88)
#### Post date: [February 8, 2022, 3:20pm UTC](https://community.sendbird.com/t/what-is-the-correct-way-to-use-the-large-room-for-audio-only/3911/4 "2022-02-08T15:20:37Z")

</div>

Wow… what a mistake. thanks!
