# How can I get live transcription text using Meeting SDK (Windows)

**URL:** <https://devforum.zoom.us/t/how-can-i-get-live-transcription-text-using-meeting-sdk-windows/93692>\
**Category:** Windows\
**Created:** [August 21, 2023, 3:56am UTC](https://devforum.zoom.us/t/how-can-i-get-live-transcription-text-using-meeting-sdk-windows/93692 "2023-08-21T03:56:53Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![daijufujita](https://avatars.discourse-cdn.com/v4/letter/d/ec9cab/32.png) [@daijufujita](https://devforum.zoom.us/u/daijufujita)\
**Post date:** [August 21, 2023, 3:56am UTC](https://devforum.zoom.us/t/how-can-i-get-live-transcription-text-using-meeting-sdk-windows/93692/1 "2023-08-21T03:56:53Z")

</div>

**Description**

I cannot get the Live Transcription text. Could you please advise on how to obtain it?.

The IClosedCaptionControllerEvent::onLiveTranscriptionMsgInfoReceived() callback method is not being called.

**Which version?**

Meeting SDK for Windows (C++)

zoom-sdk-windows-5.15.5.19455

**To Reproduce (If applicable)**

1. Download and build the “sdk\_demo\_v2.sln” on your Windows machine. Note: select “Release/Win32” build mode.
2. Have another ZOOM client (host) ready to start the meeting on another machine.
3. Start a Zoom meeting.
4. Run sdk\_demo\_v2 to join the meeting.
5. In the first dialog, check “Customized UI Mode”. Select the “SetDomain” button.
6. Create a JWT token, then copy and paste the token into the appropriate field and click the “Auth” button.
7. In the second dialog, select the “Only Join” tab window and type “Meeting number”, “Name” as Bot’s name, and “Meeting password”. Then, select the “join” button.
8. You should now see your meeting bot in the Zoom client on the host machine.
9. Activate “Live Transcription” on the host Zoom client.
10. Say something and ensure that the live transcriptions appear as subtitles.
11. Set a breakpoint in the SDKInterfaceWrap::onLiveTranscriptionMsgInfoReceived() callback method.
12. This callback method is not being called.

**Device (please complete the following information):**

- Device Spec: DELL Note PC
- OS: Windows 10 Home
- IDE: Microsoft Visual Studio Community 2019 Version 16.11.27
  - Microsoft .NET Framework Version 4.8.09037

- zoom client version on another machine: 5.15.7 (21404)

**Additional context**

I have implemented onLiveTranscriptionStatus() in the same context, and then it is working successfully when subtitles are disabled or enabled by the host. Based on this, I believe the Meeting SDK has been implemented correctly. However, onLiveTranscriptionMsgInfoReceived() is not called. I would like to know how this can be called and how I can get the live transcription.

Note: I have not checked the onLiveTranscriptionMsgReceived() callback, as it is currently treated as deprecated.

[https://marketplacefront.zoom.us/sdk/meeting/windows/deprecated.html](https://marketplacefront.zoom.us/sdk/meeting/windows/deprecated.html)

---

<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:** [August 21, 2023, 8:56am UTC](https://devforum.zoom.us/t/how-can-i-get-live-transcription-text-using-meeting-sdk-windows/93692/2 "2023-08-21T08:56:13Z")

</div>

Hi @daijufujita ,

I’ve just tested this, and here are some high level steps which I’ve gotten this to work. I’ll share more refined details if you need them.

For `onLiveTranscriptionMsgInfoReceived` callback to activate, you will need to enable some of these

```auto
	        captionController->StartLiveTranscription();
			captionController->SetMeetingSpokenLanguage(0);
			captionController->SetTranslationLanguage(1);
			captionController->EnableReceiveSpokenLanguageContent(true);

```

I’ve called these as a host for now.

---

<div class="post-metadata">

**Author:** ![daijufujita](https://avatars.discourse-cdn.com/v4/letter/d/ec9cab/32.png) [@daijufujita](https://devforum.zoom.us/u/daijufujita)\
**Post date:** [August 22, 2023, 8:00am UTC](https://devforum.zoom.us/t/how-can-i-get-live-transcription-text-using-meeting-sdk-windows/93692/3 "2023-08-22T08:00:03Z")

</div>

Hello @chunsiong.zoom ,

Thank you very much for your response.

I’ve called the following methods as a host:

captionController-\>StartLiveTranscription()

- This is working successfully.

captionController-\>SetMeetingSpokenLanguage(0)

- This is also working successfully.

However, I’m experiencing issues with the following two methods:

captionController-\>SetTranslationLanguage(1)

- This resulted in an error: SDKERR\_MEETING\_DONT\_SUPPORT\_FEATURE.

captionController-\>EnableReceiveSpokenLanguageContent(true)

- This returned an error: SDKERR\_INTERNAL\_ERROR.

The OnLiveTranscriptionMsgInfoReceived() callback is not being called.

Could you share more detailed information to help resolve these issues?

Thank you in advance for your assistance.

---

<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:** [August 22, 2023, 9:04am UTC](https://devforum.zoom.us/t/how-can-i-get-live-transcription-text-using-meeting-sdk-windows/93692/4 "2023-08-22T09:04:56Z")

</div>

@daijufujita ，

i’m still testing this out.

It seems that the error which you have encountered are related to the account features.  
The account which you have tested on might not have the live transcription and translation feature enabled.

Let me get back to you if there are alternatives methods which might trigger `OnLiveTranscriptionMsgInfoReceived`

Meanwhile could you try to observe whats the behavior of this if you set the value to -1?  
captionController-\>SetTranslationLanguage(-1)

---

<div class="post-metadata">

**Author:** ![xschen](https://avatars.discourse-cdn.com/v4/letter/x/858c86/32.png) [@xschen](https://devforum.zoom.us/u/xschen)\
**Post date:** [August 22, 2023, 4:00pm UTC](https://devforum.zoom.us/t/how-can-i-get-live-transcription-text-using-meeting-sdk-windows/93692/5 "2023-08-22T16:00:13Z")

</div>

Hi @chunsiong.zoom, just wanted to say thank you and that the demos found in your github have been immensely helpful in getting us started for our projects. We’re also trying to get live transcription messages and have been running into the same issues with `onLiveTranscriptionMsgInfoReceived` not being triggered. In the meantime, we’ve tested `onLiveTranscriptionMsgReceived` and that seems to be working fine still. Would you recommend just sticking with that for the time being even though it’s being deprecated soon?

Update: After some further testing, we’re still unable to trigger `onLiveTranscriptionMsgInfoReceived`, but we did notice that `onOriginalLanguageMsgReceived` is being triggered as long as live transcription is turned on (`captionController->StartLiveTranscription()`). This event also supplies a `ILiveTranscriptionMessageInfo` object so it seems to be working pretty much in the same manner as `onLiveTranscriptionMsgInfoReceived`. In the sample code, though @chunsiong.zoom, you have marked `onOriginalLanguageMsgReceived` as deprecated, but the latest SDK docs hasn’t. Is this method safe to use until we figure out how to properly trigger `onLiveTranscriptionMsgInfoReceived`?

---

<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:** [August 23, 2023, 3:19am UTC](https://devforum.zoom.us/t/how-can-i-get-live-transcription-text-using-meeting-sdk-windows/93692/6 "2023-08-23T03:19:17Z")

</div>

@xschen ,

that was wrongly marked.  
the deprecated method is `onLiveTranscriptionMsgReceived`

I’m currently doing some testing, and will share more information in a bit

---

<div class="post-metadata">

**Author:** ![daijufujita](https://avatars.discourse-cdn.com/v4/letter/d/ec9cab/32.png) [@daijufujita](https://devforum.zoom.us/u/daijufujita)\
**Post date:** [August 23, 2023, 4:02am UTC](https://devforum.zoom.us/t/how-can-i-get-live-transcription-text-using-meeting-sdk-windows/93692/7 "2023-08-23T04:02:28Z")

</div>

@xschen

Thank you for replying so quickly and for testing this issue.

captionController-\>SetTranslationLanguage(-1)  
returns  
SDKERR\_MEETING\_DONT\_SUPPORT\_FEATURE(20)

Thank you.

---

<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:** [August 23, 2023, 4:54am UTC](https://devforum.zoom.us/t/how-can-i-get-live-transcription-text-using-meeting-sdk-windows/93692/8 "2023-08-23T04:54:34Z")

</div>

@daijufujita @xschen ,

I’ve concluded some testing and here are some additional notes which you might find useful.

- `onOriginalLanguageMsgReceived` is the replacement method for `onLiveTranscriptionMsgReceived`
- If you do not have a translation plan in place, can call the following code, to get the speech to text in `onOriginalLanguageMsgReceived`  
captionController-\>StartLiveTranscription();  
captionController-\>SetMeetingSpokenLanguage(0); //english  
captionController-\>SetTranslationLanguage(-1); //none  
captionController-\>EnableReceiveSpokenLanguageContent(true);
- If you have a translation plan in place, below is the variation in code, to get the translated speech-to-text in `OnLiveTranscriptionMsgInfoReceived`  
captionController-\>StartLiveTranscription();  
captionController-\>SetMeetingSpokenLanguage(0); //english  
captionController-\>SetTranslationLanguage(1); //mandarin  
captionController-\>EnableReceiveSpokenLanguageContent(true);

---

<div class="post-metadata">

**Author:** ![xschen](https://avatars.discourse-cdn.com/v4/letter/x/858c86/32.png) [@xschen](https://devforum.zoom.us/u/xschen)\
**Post date:** [August 23, 2023, 5:13am UTC](https://devforum.zoom.us/t/how-can-i-get-live-transcription-text-using-meeting-sdk-windows/93692/9 "2023-08-23T05:13:22Z")

</div>

Thanks @chunsiong.zoom for the additional notes. We do have the translation plan for our accounts, but I do remember using all those settings earlier today and `OnLiveTranscriptionMsgInfoReceived` still wasn’t triggering. Maybe it was because I wasn’t doing it as host, but I can give that a try tomorrow. Regardless, `onOriginalLanguageMsgReceived` is working and we don’t really need any translation, so we may just stick with that. On a slightly separate note, it’s a not a big issue and not sure if it’s intended, but we’re also noticing that each transcription or caption message is triggering their respective events twice. Even after I conditioned it to only trigger on `ILiveTranscriptionMessageInfo` objects of type `ZoomVideoSDKLiveTranscription_OperationType_Complete`, the events are still being triggered twice.

---

<div class="post-metadata">

**Author:** ![daijufujita](https://avatars.discourse-cdn.com/v4/letter/d/ec9cab/32.png) [@daijufujita](https://devforum.zoom.us/u/daijufujita)\
**Post date:** [August 23, 2023, 8:03am UTC](https://devforum.zoom.us/t/how-can-i-get-live-transcription-text-using-meeting-sdk-windows/93692/10 "2023-08-23T08:03:57Z")

</div>

@chunsiong.zoom  
@xschen  
Thank you very much!  
I have obtained the transcription data.

---

<div class="post-metadata">

**Author:** ![daijufujita](https://avatars.discourse-cdn.com/v4/letter/d/ec9cab/32.png) [@daijufujita](https://devforum.zoom.us/u/daijufujita)\
**Post date:** [September 13, 2023, 6:33am UTC](https://devforum.zoom.us/t/how-can-i-get-live-transcription-text-using-meeting-sdk-windows/93692/11 "2023-09-13T06:33:31Z")

</div>

@chunsiong.zoom  
Hello Siong,

I can get transcriptions with the bot as the host now, but I would like to get transcriptions when the bot is not the host. Please support me on how can I get.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [October 13, 2023, 4:34pm UTC](https://devforum.zoom.us/t/how-can-i-get-live-transcription-text-using-meeting-sdk-windows/93692/12 "2023-10-13T16:34:31Z")

</div>

Closed on October 13, 2023, 4:34pm UTC

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