# Transcription not working

**URL:** <https://devforum.zoom.us/t/transcription-not-working/97336>\
**Category:** Web\
**Tags:** video-sdk\
**Created:** [October 25, 2023, 8:50am UTC](https://devforum.zoom.us/t/transcription-not-working/97336 "2023-10-25T08:50:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rinki](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rinki/32/48806_2.png) [@rinki](https://devforum.zoom.us/u/rinki)\
**Post date:** [October 25, 2023, 8:50am UTC](https://devforum.zoom.us/t/transcription-not-working/97336/1 "2023-10-25T08:50:14Z")

</div>

I want to close transcription can possible ? I am using zoom video sdk,

1. this is my code code  
const liveTranscriptionTranslation = this.client.getLiveTranscriptionClient();  
liveTranscriptionTranslation.stopLiveTranscription();  
this code is not working why ?

2. and i want to only Translation Language but is this code showing Speaking and Translation Language both why

this.client.on(`caption-message`, (payload) =\> {  
console.log(`${payload.displayName} said: ${payload.text}, translated to ${payload.language}`);

});

1. when i am geting transcription Language full name showing this  
ar;zh;cs;nl;en;et;fi;fr;de;hi;hu;id;it;ja;ko;ms;fa;pl;pt;ro;ru;es;sv;tl;te;tr;uk;vi

this is my code

const liveTranscriptionTranslation = this.client.getLiveTranscriptionClient();  
const liveStatus = liveTranscriptionTranslation.getLiveTranscriptionStatus();  
captionTransLang = liveStatus.transcriptionLanguage;  
console.log(captionTransLang);

i want to example hi = hindi and en = english

if any solution available let me know please help !

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [October 26, 2023, 2:41am UTC](https://devforum.zoom.us/t/transcription-not-working/97336/2 "2023-10-26T02:41:39Z")

</div>

Hey @rinki

Thanks for your feedback.

1. Do you mean `liveTranscriptionTranslation.startLiveTranscription()`? Or stop transcription for a certain user?  
We don’t have a separate method to stop a specific participant’s transcription. **The transcription function is available to all participants once it is turned on at the session level.**

2. Yes. Currently, both transcription and translation messages are using the same event. You can filter the `payload.language` field to determine the type.

3. These are [language codes](https://en.wikipedia.org/wiki/ISO_639-1).

> 1. when i am geting transcription Language full name showing this  
> ar;zh;cs;nl;en;et;fi;fr;de;hi;hu;id;it;ja;ko;ms;fa;pl;pt;ro;ru;es;sv;tl;te;tr;uk;vi

If you’re not familiar with language codes, you can also refer to the `LiveTranscriptionLanguage` enum in Video SDK Web. It provides a list of language codes.

Thanks  
Vic

---

<div class="post-metadata">

**Author:** ![rinki](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rinki/32/48806_2.png) [@rinki](https://devforum.zoom.us/u/rinki)\
**Post date:** [October 26, 2023, 4:40am UTC](https://devforum.zoom.us/t/transcription-not-working/97336/3 "2023-10-26T04:40:24Z")

</div>

Thanks @vic.yang for reply

my video sdk version in @zoom1234/videosdk": "^1.5.5

1. when is am using this liveTranscriptionTranslation.disableCaptions(true) not working  
i want to when once start this.liveTranscriptionTranslation.startLiveTranscription() after some time i want to stop Transcription.

2. when i am using this payload.language showing language code like 22 or 400 and when i am using this captionTransLang = this.client.getLiveTranscriptionClient().transcriptionLanguage;  
then showing like ar;zh;cs;nl;en;et;fi;fr;de;hi;hu;id;it;ja;ko;ms;fa;pl;pt;ro;ru;es;sv;tl;te;tr;uk;vi  
then how can i filter payload.language field ?

can i get language code behalf of language name ?  
this.client.on(caption-message, (payload) =\> {  
console.log(${payload.displayName} said: ${payload.text}, translated to ${payload.language});

});

1. i am using this this.liveTranscriptionTranslation.LiveTranscriptionLanguage(‘en’)  
not working i want to language code but not woking

2. can i get all TranscriptionLanguage json data with language code ?

Thanks

---

<div class="post-metadata">

**Author:** ![vic.yang](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vic.yang/32/24656_2.png) [@vic.yang](https://devforum.zoom.us/u/vic.yang)\
**Post date:** [October 27, 2023, 1:28am UTC](https://devforum.zoom.us/t/transcription-not-working/97336/4 "2023-10-27T01:28:24Z")

</div>

Hey @rinki

Thanks for sharing more context about your concern.

1. `disableCaptions` is available since Video SDK Web 1.7.5.

2. Enums in Video SDK Web can be used to assist with this. There are two specific enums that may be helpful: `LiveTranscriptionLanguage` and `LiveTranscriptionLanguageCode`. The former maps languages to language codes, while the latter maps languages to numeric codes.

If you need to perform a reverse lookup of the key by its value, you can write a utility method. Here is an example that may be useful:

```javascript
  function getKeyByValue(object, value) {
  return Object.keys(object).find(key => object[key] === value);
}

```

or use a popular util library, such as lodash, the `_.findKey` is suitable for this case.  
[https://lodash.com/docs/#findKey](https://lodash.com/docs/#findKey)

Thanks  
Vic

---

<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:** [November 26, 2023, 11:28am UTC](https://devforum.zoom.us/t/transcription-not-working/97336/5 "2023-11-26T11:28:47Z")

</div>

Closed on November 26, 2023, 11:28am UTC

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