Does anyone try to get krisp sdk i just tried to s...
# ask-ai
a
Does anyone try to get krisp sdk i just tried to sign up but after it I didn't get its SDK i followed livekit documentation that how to reduce background noise through krisp I also tried noise cancellation BVC but didn't work well it gets interrupt when someone speaks
t
Thanks for reaching out, Maahin. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'm happy to help you integrate the Krisp SDK for noise cancellation in LiveKit! You can use the LiveKit-provided noise cancellation plugin tailored to your platform. Just a quick note—this feature is available exclusively for applications using LiveKit Cloud. For Web Applications (JavaScript/React): 1. First, install the package with:
npm install @livekit/krisp-noise-filter
. 2. Then, you can use the
useKrispNoiseFilter
hook (React) to easily enable or disable the filter:
Copy code
import { useKrispNoiseFilter } from '@livekit/components-react/krisp';

function MyKrispSetting() {
  const krisp = useKrispNoiseFilter();
  return (
    <input type="checkbox" onchange="{(ev) => krisp.setNoiseFilterEnabled(ev.target.checked)}"
      checked={krisp.isNoiseFilterEnabled}
      disabled={krisp.isNoiseFilterPending}
    />
  );
}
If you prefer using the base JS SDK, here’s a simple way to set it up:
Copy code
const { KrispNoiseFilter, isKrispNoiseFilterSupported } = await import('@livekit/krisp-noise-filter');
if (!isKrispNoiseFilterSupported()) {
  console.warn('Krisp is not supported in this browser');
  return;
}
const krispProcessor = KrispNoiseFilter();
await trackPublication.track.setProcessor(krispProcessor);
await krispProcessor.setEnabled(true);
For iOS/macOS (Swift): 1. Add the
LiveKitKrispNoiseFilter
package using Swift Package Manager or CocoaPods. 2. Import the necessary modules with:
import LiveKit
and
import LiveKitKrispNoiseFilter
. 3. Initialize the filter and assign it as the audio capture post-processing delegate like this:
Copy code
let filter = LiveKitKrispNoiseFilter()
let room = Room()
AudioManager.shared.capturePostProcessingDelegate = filter
room.add(delegate: filter)
Next, connect to your room and enable the microphone:
Copy code
try await room.connect(url: "your-url", token: "your-token")
try await room.localParticipant.setMicrophone(enabled: true)
For Android, Flutter, and React Native: Krisp noise cancellation is supported through platform-specific packages. Please feel free to reach out if you'd like me to share details for these platforms—I’m here to help! Just a friendly reminder: Krisp models run locally, so no audio data is sent to external servers. Also, to avoid any conflicts, make sure you’re not enabling Krisp noise cancellation both in the frontend and agent code at the same time. Sources: krisp-minimal/krisp-minimal.xcodeproj/project.pbxproj | Enhanced noise cancellation | LiveKit Docs | README.md | packages/react/src/hooks/cloud/krisp/useKrispNoiseFilter.ts