Meeting SDK, sending raw audio data impacted by sampling rates and duration

Hello @chunsiong.zoom,
I am working with the code from meetingsdk-linux-raw-recording-sample/demo at main · zoom/meetingsdk-linux-raw-recording-sample · GitHub and am trying to send audio in a loop (demo/ZoomSDKVirtualAudioMicEvent.cpp) i.e. play the same wav file again and again once for each iteration. The issue I am seeing is that:

  • For longer samples (~ >= 10s) things seem to be OK but for shorter samples e.g. 5s or smaller the first iteration plays fine but subsequent iterations speed up the speech (as if speaking faster). Also I think lesser sampled pieces have more issues i.e. 16000 Hz sample plays worse than 32000 and upwards.
    Need help here on why is this happening !
    I have audio samples that can help you check this on your side. Please find them at GitHub - pankajidwallet/audio_samples: audio_samples to help debug the wav issue

@pankn,

Although I’m not sure why the audio loop is not working for the linux raw recording sample, if you’re open to using an API, you could use this meeting bot API that shows you how to output audio/video in the bot instead.

Let me know if you have any questions!

@pankn you will need to set the sampling rate

@chunsiong.zoom I have already done that, used the correct sampling rates in code when sending.
If you use the clips I have provided and run the loop a few times with respective sampling rates, you will see the issue.

Hi @chunsiong.zoom, did you get a chance to look at this, were you able to see the same problem as me ?