@tensamin/audio 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/README.md +50 -3
  2. package/dist/chunk-6P2RDBW5.mjs +47 -0
  3. package/dist/chunk-EXH2PNUE.mjs +212 -0
  4. package/{src/vad/vad-state.ts → dist/chunk-JJASCVEW.mjs} +21 -33
  5. package/dist/chunk-OZ7KMC4S.mjs +46 -0
  6. package/dist/chunk-R5JVHKWA.mjs +98 -0
  7. package/dist/chunk-WBQAMGXK.mjs +0 -0
  8. package/dist/chunk-XMTQPMQ6.mjs +91 -0
  9. package/dist/chunk-XO6B3D4A.mjs +67 -0
  10. package/dist/context/audio-context.d.mts +32 -0
  11. package/dist/context/audio-context.d.ts +32 -0
  12. package/dist/context/audio-context.js +75 -0
  13. package/dist/context/audio-context.mjs +16 -0
  14. package/dist/extensibility/plugins.d.mts +9 -0
  15. package/dist/extensibility/plugins.d.ts +9 -0
  16. package/dist/extensibility/plugins.js +238 -0
  17. package/dist/extensibility/plugins.mjs +14 -0
  18. package/dist/index.d.mts +10 -216
  19. package/dist/index.d.ts +10 -216
  20. package/dist/index.js +298 -80
  21. package/dist/index.mjs +29 -352
  22. package/dist/livekit/integration.d.mts +11 -0
  23. package/dist/livekit/integration.d.ts +11 -0
  24. package/dist/livekit/integration.js +585 -0
  25. package/dist/livekit/integration.mjs +12 -0
  26. package/dist/noise-suppression/rnnoise-node.d.mts +10 -0
  27. package/dist/noise-suppression/rnnoise-node.d.ts +10 -0
  28. package/dist/noise-suppression/rnnoise-node.js +101 -0
  29. package/dist/noise-suppression/rnnoise-node.mjs +6 -0
  30. package/dist/pipeline/audio-pipeline.d.mts +6 -0
  31. package/dist/pipeline/audio-pipeline.d.ts +6 -0
  32. package/dist/pipeline/audio-pipeline.js +499 -0
  33. package/dist/pipeline/audio-pipeline.mjs +11 -0
  34. package/dist/types.d.mts +155 -0
  35. package/dist/types.d.ts +155 -0
  36. package/dist/types.js +18 -0
  37. package/dist/types.mjs +1 -0
  38. package/dist/vad/vad-node.d.mts +9 -0
  39. package/dist/vad/vad-node.d.ts +9 -0
  40. package/dist/vad/vad-node.js +122 -0
  41. package/dist/vad/vad-node.mjs +6 -0
  42. package/dist/vad/vad-state.d.mts +15 -0
  43. package/dist/vad/vad-state.d.ts +15 -0
  44. package/dist/vad/vad-state.js +83 -0
  45. package/dist/vad/vad-state.mjs +6 -0
  46. package/package.json +8 -5
  47. package/.github/workflows/publish.yml +0 -29
  48. package/bun.lock +0 -258
  49. package/src/context/audio-context.ts +0 -69
  50. package/src/extensibility/plugins.ts +0 -45
  51. package/src/index.ts +0 -8
  52. package/src/livekit/integration.ts +0 -61
  53. package/src/noise-suppression/rnnoise-node.ts +0 -62
  54. package/src/pipeline/audio-pipeline.ts +0 -154
  55. package/src/types.ts +0 -167
  56. package/src/vad/vad-node.ts +0 -78
  57. package/tsconfig.json +0 -46
@@ -0,0 +1,67 @@
1
+ // src/noise-suppression/rnnoise-node.ts
2
+ var RNNoisePlugin = class {
3
+ name = "rnnoise-ns";
4
+ wasmBuffer = null;
5
+ async createNode(context, config) {
6
+ const { loadRnnoise, RnnoiseWorkletNode } = await import("@sapphi-red/web-noise-suppressor");
7
+ if (!config?.enabled) {
8
+ console.log("Noise suppression disabled, using passthrough node");
9
+ const pass = context.createGain();
10
+ return pass;
11
+ }
12
+ if (!config?.wasmUrl || !config?.simdUrl || !config?.workletUrl) {
13
+ const error = new Error(
14
+ `RNNoisePlugin requires 'wasmUrl', 'simdUrl', and 'workletUrl' to be configured. Please download the assets from @sapphi-red/web-noise-suppressor and provide the URLs in the config. Current config: wasmUrl=${config?.wasmUrl}, simdUrl=${config?.simdUrl}, workletUrl=${config?.workletUrl}
15
+ To disable noise suppression, set noiseSuppression.enabled to false.`
16
+ );
17
+ console.error(error.message);
18
+ throw error;
19
+ }
20
+ try {
21
+ if (!this.wasmBuffer) {
22
+ console.log("Loading RNNoise WASM binary...");
23
+ this.wasmBuffer = await loadRnnoise({
24
+ url: config.wasmUrl,
25
+ simdUrl: config.simdUrl
26
+ });
27
+ console.log("RNNoise WASM loaded successfully");
28
+ }
29
+ } catch (error) {
30
+ const err = new Error(
31
+ `Failed to load RNNoise WASM binary: ${error instanceof Error ? error.message : String(error)}`
32
+ );
33
+ console.error(err);
34
+ throw err;
35
+ }
36
+ const workletUrl = config.workletUrl;
37
+ try {
38
+ await context.audioWorklet.addModule(workletUrl);
39
+ console.log("RNNoise worklet loaded successfully");
40
+ } catch (e) {
41
+ const error = new Error(
42
+ `Failed to load RNNoise worklet from ${workletUrl}: ${e instanceof Error ? e.message : String(e)}. Ensure the workletUrl points to a valid RNNoise worklet script.`
43
+ );
44
+ console.error(error.message);
45
+ throw error;
46
+ }
47
+ try {
48
+ const node = new RnnoiseWorkletNode(context, {
49
+ wasmBinary: this.wasmBuffer,
50
+ maxChannels: 1
51
+ // Mono for now
52
+ });
53
+ console.log("RNNoise worklet node created successfully");
54
+ return node;
55
+ } catch (error) {
56
+ const err = new Error(
57
+ `Failed to create RNNoise worklet node: ${error instanceof Error ? error.message : String(error)}`
58
+ );
59
+ console.error(err);
60
+ throw err;
61
+ }
62
+ }
63
+ };
64
+
65
+ export {
66
+ RNNoisePlugin
67
+ };
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Manages a shared AudioContext for the application.
3
+ */
4
+ /**
5
+ * Gets the shared AudioContext, creating it if necessary.
6
+ * @param options Optional AudioContextOptions
7
+ */
8
+ declare function getAudioContext(options?: AudioContextOptions): AudioContext;
9
+ /**
10
+ * Registers a pipeline usage. Keeps track of active users.
11
+ */
12
+ declare function registerPipeline(): void;
13
+ /**
14
+ * Unregisters a pipeline usage.
15
+ * Optionally closes the context if no pipelines are active (not implemented by default to avoid churn).
16
+ */
17
+ declare function unregisterPipeline(): void;
18
+ /**
19
+ * Resumes the shared AudioContext.
20
+ * Should be called in response to a user gesture.
21
+ */
22
+ declare function resumeAudioContext(): Promise<void>;
23
+ /**
24
+ * Suspends the shared AudioContext.
25
+ */
26
+ declare function suspendAudioContext(): Promise<void>;
27
+ /**
28
+ * Closes the shared AudioContext and releases resources.
29
+ */
30
+ declare function closeAudioContext(): Promise<void>;
31
+
32
+ export { closeAudioContext, getAudioContext, registerPipeline, resumeAudioContext, suspendAudioContext, unregisterPipeline };
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Manages a shared AudioContext for the application.
3
+ */
4
+ /**
5
+ * Gets the shared AudioContext, creating it if necessary.
6
+ * @param options Optional AudioContextOptions
7
+ */
8
+ declare function getAudioContext(options?: AudioContextOptions): AudioContext;
9
+ /**
10
+ * Registers a pipeline usage. Keeps track of active users.
11
+ */
12
+ declare function registerPipeline(): void;
13
+ /**
14
+ * Unregisters a pipeline usage.
15
+ * Optionally closes the context if no pipelines are active (not implemented by default to avoid churn).
16
+ */
17
+ declare function unregisterPipeline(): void;
18
+ /**
19
+ * Resumes the shared AudioContext.
20
+ * Should be called in response to a user gesture.
21
+ */
22
+ declare function resumeAudioContext(): Promise<void>;
23
+ /**
24
+ * Suspends the shared AudioContext.
25
+ */
26
+ declare function suspendAudioContext(): Promise<void>;
27
+ /**
28
+ * Closes the shared AudioContext and releases resources.
29
+ */
30
+ declare function closeAudioContext(): Promise<void>;
31
+
32
+ export { closeAudioContext, getAudioContext, registerPipeline, resumeAudioContext, suspendAudioContext, unregisterPipeline };
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/context/audio-context.ts
21
+ var audio_context_exports = {};
22
+ __export(audio_context_exports, {
23
+ closeAudioContext: () => closeAudioContext,
24
+ getAudioContext: () => getAudioContext,
25
+ registerPipeline: () => registerPipeline,
26
+ resumeAudioContext: () => resumeAudioContext,
27
+ suspendAudioContext: () => suspendAudioContext,
28
+ unregisterPipeline: () => unregisterPipeline
29
+ });
30
+ module.exports = __toCommonJS(audio_context_exports);
31
+ var sharedContext = null;
32
+ var activePipelines = 0;
33
+ function getAudioContext(options) {
34
+ if (typeof window === "undefined" || typeof AudioContext === "undefined") {
35
+ throw new Error(
36
+ "AudioContext is not supported in this environment (browser only)."
37
+ );
38
+ }
39
+ if (!sharedContext || sharedContext.state === "closed") {
40
+ sharedContext = new AudioContext(options);
41
+ }
42
+ return sharedContext;
43
+ }
44
+ function registerPipeline() {
45
+ activePipelines++;
46
+ }
47
+ function unregisterPipeline() {
48
+ activePipelines = Math.max(0, activePipelines - 1);
49
+ }
50
+ async function resumeAudioContext() {
51
+ if (sharedContext && sharedContext.state === "suspended") {
52
+ await sharedContext.resume();
53
+ }
54
+ }
55
+ async function suspendAudioContext() {
56
+ if (sharedContext && sharedContext.state === "running") {
57
+ await sharedContext.suspend();
58
+ }
59
+ }
60
+ async function closeAudioContext() {
61
+ if (sharedContext && sharedContext.state !== "closed") {
62
+ await sharedContext.close();
63
+ }
64
+ sharedContext = null;
65
+ activePipelines = 0;
66
+ }
67
+ // Annotate the CommonJS export names for ESM import in node:
68
+ 0 && (module.exports = {
69
+ closeAudioContext,
70
+ getAudioContext,
71
+ registerPipeline,
72
+ resumeAudioContext,
73
+ suspendAudioContext,
74
+ unregisterPipeline
75
+ });
@@ -0,0 +1,16 @@
1
+ import {
2
+ closeAudioContext,
3
+ getAudioContext,
4
+ registerPipeline,
5
+ resumeAudioContext,
6
+ suspendAudioContext,
7
+ unregisterPipeline
8
+ } from "../chunk-OZ7KMC4S.mjs";
9
+ export {
10
+ closeAudioContext,
11
+ getAudioContext,
12
+ registerPipeline,
13
+ resumeAudioContext,
14
+ suspendAudioContext,
15
+ unregisterPipeline
16
+ };
@@ -0,0 +1,9 @@
1
+ import { NoiseSuppressionPlugin, VADPlugin } from '../types.mjs';
2
+ import 'mitt';
3
+
4
+ declare function registerNoiseSuppressionPlugin(plugin: NoiseSuppressionPlugin): void;
5
+ declare function registerVADPlugin(plugin: VADPlugin): void;
6
+ declare function getNoiseSuppressionPlugin(name?: string): NoiseSuppressionPlugin;
7
+ declare function getVADPlugin(name?: string): VADPlugin;
8
+
9
+ export { getNoiseSuppressionPlugin, getVADPlugin, registerNoiseSuppressionPlugin, registerVADPlugin };
@@ -0,0 +1,9 @@
1
+ import { NoiseSuppressionPlugin, VADPlugin } from '../types.js';
2
+ import 'mitt';
3
+
4
+ declare function registerNoiseSuppressionPlugin(plugin: NoiseSuppressionPlugin): void;
5
+ declare function registerVADPlugin(plugin: VADPlugin): void;
6
+ declare function getNoiseSuppressionPlugin(name?: string): NoiseSuppressionPlugin;
7
+ declare function getVADPlugin(name?: string): VADPlugin;
8
+
9
+ export { getNoiseSuppressionPlugin, getVADPlugin, registerNoiseSuppressionPlugin, registerVADPlugin };
@@ -0,0 +1,238 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/extensibility/plugins.ts
31
+ var plugins_exports = {};
32
+ __export(plugins_exports, {
33
+ getNoiseSuppressionPlugin: () => getNoiseSuppressionPlugin,
34
+ getVADPlugin: () => getVADPlugin,
35
+ registerNoiseSuppressionPlugin: () => registerNoiseSuppressionPlugin,
36
+ registerVADPlugin: () => registerVADPlugin
37
+ });
38
+ module.exports = __toCommonJS(plugins_exports);
39
+
40
+ // src/noise-suppression/rnnoise-node.ts
41
+ var RNNoisePlugin = class {
42
+ name = "rnnoise-ns";
43
+ wasmBuffer = null;
44
+ async createNode(context, config) {
45
+ const { loadRnnoise, RnnoiseWorkletNode } = await import("@sapphi-red/web-noise-suppressor");
46
+ if (!config?.enabled) {
47
+ console.log("Noise suppression disabled, using passthrough node");
48
+ const pass = context.createGain();
49
+ return pass;
50
+ }
51
+ if (!config?.wasmUrl || !config?.simdUrl || !config?.workletUrl) {
52
+ const error = new Error(
53
+ `RNNoisePlugin requires 'wasmUrl', 'simdUrl', and 'workletUrl' to be configured. Please download the assets from @sapphi-red/web-noise-suppressor and provide the URLs in the config. Current config: wasmUrl=${config?.wasmUrl}, simdUrl=${config?.simdUrl}, workletUrl=${config?.workletUrl}
54
+ To disable noise suppression, set noiseSuppression.enabled to false.`
55
+ );
56
+ console.error(error.message);
57
+ throw error;
58
+ }
59
+ try {
60
+ if (!this.wasmBuffer) {
61
+ console.log("Loading RNNoise WASM binary...");
62
+ this.wasmBuffer = await loadRnnoise({
63
+ url: config.wasmUrl,
64
+ simdUrl: config.simdUrl
65
+ });
66
+ console.log("RNNoise WASM loaded successfully");
67
+ }
68
+ } catch (error) {
69
+ const err = new Error(
70
+ `Failed to load RNNoise WASM binary: ${error instanceof Error ? error.message : String(error)}`
71
+ );
72
+ console.error(err);
73
+ throw err;
74
+ }
75
+ const workletUrl = config.workletUrl;
76
+ try {
77
+ await context.audioWorklet.addModule(workletUrl);
78
+ console.log("RNNoise worklet loaded successfully");
79
+ } catch (e) {
80
+ const error = new Error(
81
+ `Failed to load RNNoise worklet from ${workletUrl}: ${e instanceof Error ? e.message : String(e)}. Ensure the workletUrl points to a valid RNNoise worklet script.`
82
+ );
83
+ console.error(error.message);
84
+ throw error;
85
+ }
86
+ try {
87
+ const node = new RnnoiseWorkletNode(context, {
88
+ wasmBinary: this.wasmBuffer,
89
+ maxChannels: 1
90
+ // Mono for now
91
+ });
92
+ console.log("RNNoise worklet node created successfully");
93
+ return node;
94
+ } catch (error) {
95
+ const err = new Error(
96
+ `Failed to create RNNoise worklet node: ${error instanceof Error ? error.message : String(error)}`
97
+ );
98
+ console.error(err);
99
+ throw err;
100
+ }
101
+ }
102
+ };
103
+
104
+ // src/vad/vad-node.ts
105
+ var energyVadWorkletCode = `
106
+ class EnergyVadProcessor extends AudioWorkletProcessor {
107
+ constructor() {
108
+ super();
109
+ this.smoothing = 0.95;
110
+ this.energy = 0;
111
+ this.noiseFloor = 0.001;
112
+ }
113
+
114
+ process(inputs, outputs, parameters) {
115
+ const input = inputs[0];
116
+ if (!input || !input.length) return true;
117
+ const channel = input[0];
118
+
119
+ // Calculate RMS
120
+ let sum = 0;
121
+ for (let i = 0; i < channel.length; i++) {
122
+ sum += channel[i] * channel[i];
123
+ }
124
+ const rms = Math.sqrt(sum / channel.length);
125
+
126
+ // Simple adaptive noise floor (very basic)
127
+ if (rms < this.noiseFloor) {
128
+ this.noiseFloor = this.noiseFloor * 0.99 + rms * 0.01;
129
+ } else {
130
+ this.noiseFloor = this.noiseFloor * 0.999 + rms * 0.001;
131
+ }
132
+
133
+ // Calculate "probability" based on SNR
134
+ // This is a heuristic mapping from energy to 0-1
135
+ const snr = rms / (this.noiseFloor + 1e-6);
136
+ const probability = Math.min(1, Math.max(0, (snr - 1.5) / 10)); // Arbitrary scaling
137
+
138
+ this.port.postMessage({ probability });
139
+
140
+ return true;
141
+ }
142
+ }
143
+ registerProcessor('energy-vad-processor', EnergyVadProcessor);
144
+ `;
145
+ var EnergyVADPlugin = class {
146
+ name = "energy-vad";
147
+ async createNode(context, config, onDecision) {
148
+ if (!config?.enabled) {
149
+ console.log("VAD disabled, using passthrough node");
150
+ const pass = context.createGain();
151
+ return pass;
152
+ }
153
+ const blob = new Blob([energyVadWorkletCode], {
154
+ type: "application/javascript"
155
+ });
156
+ const url = URL.createObjectURL(blob);
157
+ try {
158
+ await context.audioWorklet.addModule(url);
159
+ console.log("Energy VAD worklet loaded successfully");
160
+ } catch (e) {
161
+ const error = new Error(
162
+ `Failed to load Energy VAD worklet: ${e instanceof Error ? e.message : String(e)}`
163
+ );
164
+ console.error(error.message);
165
+ URL.revokeObjectURL(url);
166
+ throw error;
167
+ }
168
+ URL.revokeObjectURL(url);
169
+ let node;
170
+ try {
171
+ node = new AudioWorkletNode(context, "energy-vad-processor");
172
+ console.log("Energy VAD node created successfully");
173
+ } catch (e) {
174
+ const error = new Error(
175
+ `Failed to create Energy VAD node: ${e instanceof Error ? e.message : String(e)}`
176
+ );
177
+ console.error(error.message);
178
+ throw error;
179
+ }
180
+ node.port.onmessage = (event) => {
181
+ try {
182
+ const { probability } = event.data;
183
+ if (typeof probability === "number" && !isNaN(probability)) {
184
+ onDecision(probability);
185
+ } else {
186
+ console.warn("Invalid VAD probability received:", event.data);
187
+ }
188
+ } catch (error) {
189
+ console.error("Error in VAD message handler:", error);
190
+ }
191
+ };
192
+ node.port.onmessageerror = (event) => {
193
+ console.error("VAD port message error:", event);
194
+ };
195
+ return node;
196
+ }
197
+ };
198
+
199
+ // src/extensibility/plugins.ts
200
+ var nsPlugins = /* @__PURE__ */ new Map();
201
+ var vadPlugins = /* @__PURE__ */ new Map();
202
+ var defaultNs = new RNNoisePlugin();
203
+ nsPlugins.set(defaultNs.name, defaultNs);
204
+ var defaultVad = new EnergyVADPlugin();
205
+ vadPlugins.set(defaultVad.name, defaultVad);
206
+ function registerNoiseSuppressionPlugin(plugin) {
207
+ nsPlugins.set(plugin.name, plugin);
208
+ }
209
+ function registerVADPlugin(plugin) {
210
+ vadPlugins.set(plugin.name, plugin);
211
+ }
212
+ function getNoiseSuppressionPlugin(name) {
213
+ if (!name) return defaultNs;
214
+ const plugin = nsPlugins.get(name);
215
+ if (!plugin) {
216
+ console.warn(
217
+ `Noise suppression plugin '${name}' not found, falling back to default.`
218
+ );
219
+ return defaultNs;
220
+ }
221
+ return plugin;
222
+ }
223
+ function getVADPlugin(name) {
224
+ if (!name) return defaultVad;
225
+ const plugin = vadPlugins.get(name);
226
+ if (!plugin) {
227
+ console.warn(`VAD plugin '${name}' not found, falling back to default.`);
228
+ return defaultVad;
229
+ }
230
+ return plugin;
231
+ }
232
+ // Annotate the CommonJS export names for ESM import in node:
233
+ 0 && (module.exports = {
234
+ getNoiseSuppressionPlugin,
235
+ getVADPlugin,
236
+ registerNoiseSuppressionPlugin,
237
+ registerVADPlugin
238
+ });
@@ -0,0 +1,14 @@
1
+ import {
2
+ getNoiseSuppressionPlugin,
3
+ getVADPlugin,
4
+ registerNoiseSuppressionPlugin,
5
+ registerVADPlugin
6
+ } from "../chunk-6P2RDBW5.mjs";
7
+ import "../chunk-XO6B3D4A.mjs";
8
+ import "../chunk-R5JVHKWA.mjs";
9
+ export {
10
+ getNoiseSuppressionPlugin,
11
+ getVADPlugin,
12
+ registerNoiseSuppressionPlugin,
13
+ registerVADPlugin
14
+ };