[Linux Meeting SDK 7.1.5] Host bot cannot send audio: onMicStartSend never fires, CanStartRawRecording() = SDKERR_WRONG_USAGE, HasRawdataLicense() = false

Hi Zoom team,

We run a headless Meeting SDK for Linux bot that joins our own account’s meetings as the host and needs to speak a short pre-recorded notice (a TTS WAV) at the start of the meeting. Joining, waiting-room admission, chat, cloud recording control and ending the meeting all work. Sending audio does not.

Environment

  • Meeting SDK for Linux x86_64 7.1.5.4432, C++
  • Docker, Ubuntu 22.04 (Cloud Run Jobs), Qt libs from the SDK package
  • PulseAudio in user mode with null sinks (SpeakerOutput default sink, a separate null sink’s monitor as default source), ~/.config/zoomus.conf = system.audio.type=default, /etc/asound.conf routes ALSA default to pulse. We verified at build time that a tone played into the sink is captured from the ALSA default device.
  • App: user-managed General App (Development credentials), Meeting SDK enabled, programmatic join ON. App ID: HMDNhoujQcah3O8PqCulJA
  • Join: JoinParam4WithoutLogin with userZAK (ZAK of the meeting host user, fetched via S2S /users/me/token?type=zak) → we are the host (status INMEETING, host privileges work)

What we tried

  1. Virtual mic, registered before join (GetAudioRawdataHelper()->setExternalAudioSource(this) → Join): onMicInitialize fires, JoinVoip() = 0, UnMuteAudio(myId) = 0, but onMicStartSend never fires.
  2. Virtual mic, registered after MEETING_STATUS_INMEETING (the order suggested in this thread): setExternalAudioSource = 0 → onMicInitialize → JoinVoip() = 0 → 1 s later UnMuteAudio(myId) = 0 → no onMicStartSend within 8 s (or ever).
  3. Taking raw-data permission first: GetMeetingRecordingController()->CanStartRawRecording() returns 2 (SDKERR_WRONG_USAGE) even though we are the host, cloud recording is running and “Record to computer files” is enabled for the account. HasRawdataLicense() returns false.
  4. No virtual mic, system mic via PulseAudio (play the WAV into the null sink whose monitor is the default source, with EnableMicOriginalInput(true)): playback succeeds, but IMeetingAudioCtrlEvent::onUserActiveAudioChange never includes our own user ID and the meeting’s RTMS transcript stream receives nothing. GetMicList() only shows "Same as System" with an empty name.

Questions

  1. What entitlement does a Meeting SDK app need so that CanStartRawRecording() succeeds / onMicStartSend fires for a host bot in meetings of our own account? Does it require Production credentials, a published/approved app, or a raw-data request to Zoom?
  2. With Development credentials, is raw audio sending (virtual mic) supported at all?
  3. Is approach 4 (system mic through PulseAudio) supposed to work on Linux headless, and if so, what are we missing?

Thank you!

HasRawdataLicense() == false is not the blocker I’d focus on. Zoom has said the legacy raw-data license is deprecated for desktop Meeting SDKs, including Linux, and staff have also stated that sending raw media does not require that license. CanStartRawRecording() applies to the receive/raw-recording path, not to publishing a virtual microphone, so I would not expect Production credentials, Marketplace publication, or a separate raw-data request to make onMicStartSend fire. See Zoom’s current Linux raw-data flow and the staff clarification that the raw-data license is deprecated.

Development credentials are therefore not documented as excluding outbound virtual-mic audio for meetings in your own account. Zoom requires the SDK participant to actually be connected to the VoIP channel before it can send audio, so after JoinVoip() verify that your local user’s GetAudioJoinType() becomes AUDIOTYPE_VOIP and that the user is genuinely unmuted, rather than relying only on the success return codes. Zoom documents those checks in Linux in-meeting audio. For the virtual mic, keep the registration after MEETING_STATUS_INMEETING, as Zoom staff recommended in the Linux external-audio-source thread.

The PulseAudio approach is plausible on headless Linux, and Zoom explicitly requires PulseAudio for Linux raw-audio functionality. Two checks should narrow it down: after joining VoIP, use pactl list source-outputs to confirm the Zoom process actually opened a recording stream on the intended null-sink monitor, and log GetAudioJoinType() plus mute state at the same moment. If there is no Zoom capture stream, or it is attached to a different source, changing the default source alone is not proving that Zoom is consuming your WAV path.

If you’d rather avoid maintaining the Linux Meeting SDK bot stack directly, Recall.ai’s Meeting Bot API handles the meeting-bot infrastructure and media plumbing.

Solved — thank you. Your answer moved us off the license question and onto verifying the real audio state, and that is what uncovered both causes.

There were two independent problems.

1. onMicStartSend does not fire while the bot is alone in the meeting.

With the external source registered after MEETING_STATUS_INMEETING, JoinVoip() = 0, and GetAudioJoinType() on our own IUserInfo returning AUDIOTYPE_VOIP with IsAudioMuted() = false, the callback still never arrived — as long as the bot was the only participant. It fired within a second of the first participant joining. Every earlier test of ours had the bot alone in the meeting, which is why it looked permanent.

2. The sample rate has to be one the SDK accepts.

Our TTS produced 24 kHz mono 16-bit PCM. Once onMicStartSend fired, every send() call on IZoomSDKAudioRawDataSender failed (808 of 808 frames) and nothing was heard. Converting the same audio to 48 kHz mono 16-bit and sending 10 ms frames gives sendFailures = 0, and the notice is now audible to both participants.

Confirming your point: no raw-data license, Production credentials or Marketplace publication was needed. A user-managed General App with Development credentials, Meeting SDK enabled, joining with the host’s ZAK, is enough to publish a virtual microphone. CanStartRawRecording() and HasRawdataLicense() are irrelevant to sending.

One caveat on the PulseAudio check: pactl list source-outputs stays empty even in the working case, because with an external audio source registered the SDK never opens a capture stream. An empty list is therefore not evidence of a problem on this path.

The sequence that works for us:

  • on MEETING_STATUS_INMEETING, call setExternalAudioSource(this) on the audio rawdata helper, then JoinVoip(), then poll GetAudioJoinType() and IsAudioMuted() on our own IUserInfo and call UnMuteAudio() until it reports unmuted
    • EnableAutoJoinAudio(false) (auto-join raced the registration), EnableAlwaysMuteMicWhenJoinVoip(false), SetSuppressBackgroundNoiseLevel(Suppress_BGNoise_Level_None)
      • wait for onMicStartSend, then send 10 ms frames of 48 kHz mono 16-bit PCM
    • Thanks again for the pointers.