# SDKERR\_NOT\_JOIN\_AUDIO on subscribe to audio raw data

**URL:** <https://devforum.zoom.us/t/sdkerr-not-join-audio-on-subscribe-to-audio-raw-data/106606>\
**Category:** Meeting SDK\
**Created:** [March 27, 2024, 4:01am UTC](https://devforum.zoom.us/t/sdkerr-not-join-audio-on-subscribe-to-audio-raw-data/106606 "2024-03-27T04:01:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dseravalli](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dseravalli/32/49098_2.png) [@dseravalli](https://devforum.zoom.us/u/dseravalli)\
**Post date:** [March 27, 2024, 4:01am UTC](https://devforum.zoom.us/t/sdkerr-not-join-audio-on-subscribe-to-audio-raw-data/106606/1 "2024-03-27T04:01:23Z")

</div>

**Meeting SDK Type and Version**  
Linux Meeting SDK v5.17.11.3885

**Description**  
I’m trying to modify the `zoom/meetingsdk-headless-linux-sample` repo to only receive raw audio data, and rather than write it to a file, do some further processing via the `onOneWayAudioRawDataReceived` callback.

**Error?**

```auto
zoomsdk-1 | ✅ configure
zoomsdk-1 | ✅ initialize
zoomsdk-1 | ✅ authorize
zoomsdk-1 | ✅ join a meeting
zoomsdk-1 | ⏳ connecting to the meeting
zoomsdk-1 | ✅ connected
zoomsdk-1 | ⏳ requesting local recording privilege
zoomsdk-1 | ✅ start raw recording
zoomsdk-1 | ❌ failed to subscribe to raw audio with status 32

```

**Troubleshooting Routes**  
I’ve seen the other forum topic about this error, and have confirmed `audioSettings->EnableAutoJoinAudio(true);` is being called in the `startRawRecording` function.

Here is the code I have modified from the example:

```auto
SDKError Zoom::startRawRecording() {
  auto recCtrl = m_meetingService->GetMeetingRecordingController();
  SDKError err = recCtrl->CanStartRawRecording();

  if (hasError(err)) {
    Log::info("requesting local recording privilege");
    return recCtrl->RequestLocalRecordingPrivilege();
  }

  err = recCtrl->StartRawRecording();
  if (hasError(err, "start raw recording"))
    return err;

  m_audioHelper = GetAudioRawdataHelper();
  if (!m_audioHelper)
    return SDKERR_UNINITIALIZE;

  if (!m_audioSource) {
    m_audioSource =
        new ZoomSDKAudioRawDataDelegate(false);
  }

  err = m_audioHelper->subscribe(m_audioSource);
  if (hasError(err, "subscribe to raw audio"))
    return err;

  return SDKERR_SUCCESS;
}

```

```auto
void ZoomSDKAudioRawDataDelegate::onOneWayAudioRawDataReceived(
    AudioRawData *data, uint32_t node_id) {
  Log::info("One way audio raw data received from node " +
            std::to_string(node_id));
}

```

---

<div class="post-metadata">

**Author:** ![ivan6](https://avatars.discourse-cdn.com/v4/letter/i/58f4c7/32.png) [@ivan6](https://devforum.zoom.us/u/ivan6)\
**Post date:** [March 27, 2024, 9:02pm UTC](https://devforum.zoom.us/t/sdkerr-not-join-audio-on-subscribe-to-audio-raw-data/106606/2 "2024-03-27T21:02:57Z")

</div>

this [https://github.com/zoom/meetingsdk-headless-linux-sample](https://github.com/zoom/meetingsdk-headless-linux-sample) errors out even without modification  
but this [https://github.com/zoom/meetingsdk-linux-raw-recording-sample/tree/main](https://github.com/zoom/meetingsdk-linux-raw-recording-sample/tree/main) works

---

<div class="post-metadata">

**Author:** ![kamalkumar77a](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kamalkumar77a/32/49343_2.png) [@kamalkumar77a](https://devforum.zoom.us/u/kamalkumar77a)\
**Post date:** [March 28, 2024, 6:06am UTC](https://devforum.zoom.us/t/sdkerr-not-join-audio-on-subscribe-to-audio-raw-data/106606/3 "2024-03-28T06:06:04Z")

</div>

but this [https://github.com/zoom/meetingsdk-linux-raw-recording-sample/tree/main](https://github.com/zoom/meetingsdk-linux-raw-recording-sample/tree/main) works

how did this second one works?

---

<div class="post-metadata">

**Author:** ![kamalkumar77a](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/kamalkumar77a/32/49343_2.png) [@kamalkumar77a](https://devforum.zoom.us/u/kamalkumar77a)\
**Post date:** [March 28, 2024, 6:06am UTC](https://devforum.zoom.us/t/sdkerr-not-join-audio-on-subscribe-to-audio-raw-data/106606/4 "2024-03-28T06:06:48Z")

</div>

Question is, where will i get audio raw data?

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [March 29, 2024, 10:01am UTC](https://devforum.zoom.us/t/sdkerr-not-join-audio-on-subscribe-to-audio-raw-data/106606/5 "2024-03-29T10:01:52Z")

</div>

@kamalkumar77a ,

Thank you for calling this out. I will look into this and get back to you with a solution.

---

<div class="post-metadata">

**Author:** ![management1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/management1/32/49650_2.png) [@management1](https://devforum.zoom.us/u/management1)\
**Post date:** [March 29, 2024, 12:11pm UTC](https://devforum.zoom.us/t/sdkerr-not-join-audio-on-subscribe-to-audio-raw-data/106606/6 "2024-03-29T12:11:20Z")

</div>

Hi @dseravalli @donte.zoom , I am encountering the same issue of not being able to record, I made the modifications as suggested by you but it did not work.

Please suggest a way out.
