From b71943e631e23b1f0ae66b52e209f5211c16f0e5 Mon Sep 17 00:00:00 2001 From: KaustubhKumar05 Date: Wed, 17 Apr 2024 16:30:14 +0530 Subject: [PATCH 1/2] fix: snippet and mention minimum version requirement --- .../extend-capabilities/plugins/krisp-noise-cancellation.mdx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/javascript/v2/how-to-guides/extend-capabilities/plugins/krisp-noise-cancellation.mdx b/docs/javascript/v2/how-to-guides/extend-capabilities/plugins/krisp-noise-cancellation.mdx index d3a73c82a..41c75ed6b 100644 --- a/docs/javascript/v2/how-to-guides/extend-capabilities/plugins/krisp-noise-cancellation.mdx +++ b/docs/javascript/v2/how-to-guides/extend-capabilities/plugins/krisp-noise-cancellation.mdx @@ -12,6 +12,8 @@ This guide provides an overview of usage of the noise suppression plugin of 100m ## Pre-requisites +Minimum version requirement for `hms-video-store` - 0.11.7 + **Get the 100ms noise cancellation Package** ```bash section=GetHMSNoiseCancellationPackage sectionIndex=1 @@ -53,7 +55,7 @@ const plugin = new HMSKrispPlugin(); // check if audio track is available const localAudioTrack = hmsStore.getState(selectLocalAudioTrackID); let inProgress = false; -hmsStore.subscribe((isPluginAdded) => { +hmsStore.subscribe(async (isPluginAdded) => { if(!isPluginAdded && !inProgress) { inProgress = true; await hmsActions.addPluginToAudioTrack(plugin); From 48cca6013bca0c23ebc6639803143089df166b10 Mon Sep 17 00:00:00 2001 From: Kaustubh Kumar Date: Thu, 18 Apr 2024 13:18:39 +0530 Subject: [PATCH 2/2] fix: copy --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 684402f13..b7ca5023d 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ So you don't have to copy paste common content multiple times. ## 🥵 Components Components is what makes this docs standout -All Components mentioned are already auto imported so you don't need to do them. +All Components mentioned are auto imported. Here's some of them added and can be easily added: