# Can't receive onMicStartSend event when using local\_recording token for authorization. (Linux Meeting SDK)

**URL:** <https://devforum.zoom.us/t/cant-receive-onmicstartsend-event-when-using-local-recording-token-for-authorization-linux-meeting-sdk/99747>\
**Category:** Meeting SDK\
**Created:** [December 7, 2023, 4:14pm UTC](https://devforum.zoom.us/t/cant-receive-onmicstartsend-event-when-using-local-recording-token-for-authorization-linux-meeting-sdk/99747 "2023-12-07T16:14:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![abahno](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@abahno](https://devforum.zoom.us/u/abahno)\
**Post date:** [December 7, 2023, 4:14pm UTC](https://devforum.zoom.us/t/cant-receive-onmicstartsend-event-when-using-local-recording-token-for-authorization-linux-meeting-sdk/99747/1 "2023-12-07T16:14:49Z")

</div>

I’m working on a bot that can send audio to meetings. For that, I set an external audio source and unmute my bot:  
Pseudo code:  
SDKError err = audioHelper-\>subscribe(audio\_source);  
…

err = audioHelper-\>setExternalAudioSource(&micEvent);  
…

err = audioController-\>UnMuteAudio(getUserID());  
…

It all works fine when I’m doing authentication with JWT, and then make bot a host in a meeting.  
When I’m using local\_recording token for authorization, the bot doesn’t receive onMicStartSend(only onMicInitialize) and remains silent.  
But I can see the video from the bot.

Could someone please clarify if there are any kind of access limitations for local\_recording token, and whether I can push raw audio and video while using local\_recording token?

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [December 13, 2023, 3:38am UTC](https://devforum.zoom.us/t/cant-receive-onmicstartsend-event-when-using-local-recording-token-for-authorization-linux-meeting-sdk/99747/2 "2023-12-13T03:38:09Z")

</div>

@abahno ,

are you saying that with a local\_recording token, you are not able to send raw audio and raw videio?

---

<div class="post-metadata">

**Author:** ![anastasiiabahno](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anastasiiabahno/32/49417_2.png) [@anastasiiabahno](https://devforum.zoom.us/u/anastasiiabahno)\
**Post date:** [December 13, 2023, 3:23pm UTC](https://devforum.zoom.us/t/cant-receive-onmicstartsend-event-when-using-local-recording-token-for-authorization-linux-meeting-sdk/99747/3 "2023-12-13T15:23:42Z")

</div>

@chunsiong.zoom , with local\_recording token I can send raw video but not audio.  
It seems like a bot stays muted since I don’t get onMicStartSend callback. However, I do call audioController-\>unMuteAudio(botId).

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [December 14, 2023, 5:24am UTC](https://devforum.zoom.us/t/cant-receive-onmicstartsend-event-when-using-local-recording-token-for-authorization-linux-meeting-sdk/99747/4 "2023-12-14T05:24:20Z")

</div>

@anastasiiabahno

here’s some checklist

Before joining a meeting.

```auto
		ZOOM_SDK_NAMESPACE::IAudioSettingContext* pAudioContext = m_pSettingService->GetAudioSettings();
		if (pAudioContext)
		{
			//ensure auto join audio
			pAudioContext->EnableAutoJoinAudio(true);
			pAudioContext->EnableAlwaysMuteMicWhenJoinVoip(true);
			pAudioContext->SetSuppressBackgroundNoiseLevel(Suppress_BGNoise_Level_None);

		}

```

when you are in meeting  
DEFAULT\_AUDIO\_SOURCE is just a path to a wav file.

```auto
		ZoomSDKVirtualAudioMicEvent* audio_source = new ZoomSDKVirtualAudioMicEvent(DEFAULT_AUDIO_SOURCE);
		IZoomSDKAudioRawDataHelper* audioHelper = GetAudioRawdataHelper();
		if (audioHelper) {
			SDKError err = audioHelper->setExternalAudioSource(audio_source);
		}

```

when you want to start sending the raw audio, example from an event or a button click

```auto
IUserInfo* getMyself() {
	m_pParticipantsController = m_pMeetingService->GetMeetingParticipantsController();
	IUserInfo* returnvalue = m_pParticipantsController->GetMySelfUser();
	//std::cout << "UserID is : " << returnvalue << std::endl;
	return returnvalue;
}
.
.
.
.

	IMeetingAudioController* meetingAudController = m_pMeetingService->GetMeetingAudioController();
	meetingAudController->JoinVoip();
	printf("Is my audio muted: %d\n", getMyself()->IsAudioMuted());
	meetingAudController->UnMuteAudio(getMyself()->GetUserID());

```
