Live Transcription not starting in VideoSDK

startLiveTrasncription() is failing to execute.

Hey guys!

I am trying to start live transcription in my zoom video sdk session after starting the cloud recording. However it is throwing the following error:
TypeError: transcriptionClient.startLiveTranscription is not a function

I am using the following version of videosdk:

@zoom/videosdk@1.12.5

My code is as follows:

  const transcriptionClient = useRef(null);

  transcriptionClient.current = client.getLiveTranscriptionClient();
  await transcriptionClient.startLiveTranscription();
  transcriptionClient.setSpeakingLanguage('en')
  transcriptionClient.setTranslationLanguage('ar')

  transcriptionClient.disableCaptions(true);

I cannot figure out what the issue would be, considering that I set up my recording client in much same way and it works flawlessly.

I also have “Video SDK Translation and Transcription” listed in the Included Products section of my Universal Credit plan, so that should not be an issue.

Please let me know if you can figure out where this is failing.
Thanks!

Hey @omar

Thanks for your feedback.

TypeError: transcriptionClient.startLiveTranscription is not a function

Could you check if the client.getLiveTranscriptionClient() method is being called only after the client.init method has been resolved?

Thanks
Vic

Hi Vic. Thanks for your response. Turns out, I was making a mistake in my code. Since I am using useRef, it should be called as transcriptionClient.current.startLiveTranscription(); instead of transcriptionClient.startLiveTranscription();, and similarly add .current on the other lines too. Working perfectly now!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.