62 lines
1.5 KiB
TypeScript
62 lines
1.5 KiB
TypeScript
// Metro module 12891 (f12892).
|
|
import { createApexExperiment } from "../experiments/apex/index";
|
|
const noiseCancellationConfig = {
|
|
useAGC2: true,
|
|
enableAnalog: false,
|
|
enableDigital: true,
|
|
headroom_db: 5,
|
|
max_gain_db: 50,
|
|
initial_gain_db: 15,
|
|
max_gain_change_db_per_second: 6,
|
|
max_output_noise_level_dbfs: -50,
|
|
fixed_gain_db: 0
|
|
};
|
|
const apexExperiment = createApexExperiment({
|
|
kind: "user",
|
|
name: "2025-09-agc2-v2",
|
|
defaultConfig: {
|
|
noiseCancellationDuringProcessing: false,
|
|
noiseCancellationConfig: {
|
|
useAGC2: false
|
|
}
|
|
},
|
|
variations: {
|
|
1: {
|
|
noiseCancellationDuringProcessing: true,
|
|
noiseCancellationConfig: {
|
|
useAGC2: false
|
|
}
|
|
},
|
|
2: {
|
|
noiseCancellationDuringProcessing: true,
|
|
noiseCancellationConfig,
|
|
vadKrispActivationThreshold: 0.5
|
|
},
|
|
3: {
|
|
noiseCancellationDuringProcessing: true,
|
|
noiseCancellationConfig,
|
|
vadKrispActivationThreshold: 0.55
|
|
},
|
|
4: {
|
|
noiseCancellationDuringProcessing: true,
|
|
noiseCancellationConfig,
|
|
vadKrispActivationThreshold: 0.6
|
|
},
|
|
5: {
|
|
noiseCancellationDuringProcessing: true,
|
|
noiseCancellationConfig,
|
|
vadKrispActivationThreshold: 0.65
|
|
},
|
|
6: {
|
|
noiseCancellationDuringProcessing: true,
|
|
noiseCancellationConfig,
|
|
vadKrispActivationThreshold: 0.7
|
|
}
|
|
}
|
|
});
|
|
export function getAGC2ExperimentConfig({ location: location2, disable = false }) {
|
|
return disable ? apexExperiment.definition.defaultConfig : apexExperiment.getConfig({
|
|
location: location2
|
|
});
|
|
}
|