Skip to content

Commit f87f065

Browse files
Return models folder, add new model, adjust path
1 parent f32d9b2 commit f87f065

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/audio-filters-web/src/NoiseCancellation.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import { promiseWithResolvers } from './withResolvers';
99
import { simd } from 'wasm-feature-detect';
1010
import type { Tracer } from './tracer';
1111

12+
const MODEL_FILENAME = 'krisp-nc-o-med-v7.kef';
13+
1214
/**
1315
* Options to pass to the NoiseCancellation instance.
1416
*/
@@ -139,7 +141,7 @@ export class NoiseCancellation implements INoiseCancellation {
139141
useSharedArrayBuffer: false,
140142
models: {
141143
// https://sdk-docs.krisp.ai/docs/krisp-audio-sdk-model-selection-guide
142-
modelNC: `${this.basePath}/c6.f.s.da1785.kef`,
144+
modelNC: `${this.basePath}/${MODEL_FILENAME}`,
143145
},
144146
...this.krispSDKParams,
145147
},
Binary file not shown.

0 commit comments

Comments
 (0)