68 lines
2.7 KiB
TypeScript
68 lines
2.7 KiB
TypeScript
// Metro module 16179 (f16180).
|
|
import _objectWithoutProperties from "../../_bundle/_objectWithoutProperties";
|
|
import MediaEngineStore from "../../stores/MediaEngineStore";
|
|
import KrispUtils from "../noise_cancellation/KrispUtils";
|
|
import AnalyticsUtils from "../../utils/AnalyticsUtils";
|
|
const _excluded = ["output_audio_route_type"];
|
|
export default async function trackVoiceFeedback(c28264_0, c28264_1) {
|
|
let c28264_5;
|
|
c28264_5 = void 0;
|
|
let c30979_0 = c28264_0;
|
|
let c30979_1 = c28264_1.rating;
|
|
let c30979_2 = c28264_1.category;
|
|
let c30979_3 = c28264_1.reasonCode;
|
|
let c30979_4 = c28264_1.reasonDescription;
|
|
let c30979_5 = c28264_1.variant;
|
|
let c30979_6 = c28264_1.feedback;
|
|
let c30979_7 = c28264_1.analyticsData;
|
|
await void 0;
|
|
let c30979_8 = MediaEngineStore.getSettings();
|
|
let c30979_9 = MediaEngineStore.getInputDeviceId();
|
|
let c30979_10 = MediaEngineStore.getInputDevices()[c30979_9];
|
|
let c30979_11 = MediaEngineStore.getOutputDeviceId();
|
|
let c30979_12 = MediaEngineStore.getOutputDevices()[c30979_11];
|
|
let c30979_13 = MediaEngineStore.getVideoDeviceId();
|
|
let c30979_14 = MediaEngineStore.getVideoDevices()[c30979_13];
|
|
let c30979_15 = MediaEngineStore.getNoiseCancellation();
|
|
let c30979_16 = MediaEngineStore.getMediaEngine().getAudioSubsystem();
|
|
let c30979_17 = MediaEngineStore.getMediaEngine().getAudioLayer();
|
|
let c30979_18 = await KrispUtils.getKrispModel();
|
|
let c28264_2 = c30979_7;
|
|
if (c30979_7 == null) {
|
|
c28264_2 = {};
|
|
}
|
|
let c30979_19 = c28264_2;
|
|
let c30979_20 = c30979_19.output_audio_route_type;
|
|
let c30979_21 = (0, _objectWithoutProperties)(c30979_19, _excluded);
|
|
let rating = c30979_1;
|
|
if (c30979_1 == null) {
|
|
rating = "no response";
|
|
}
|
|
AnalyticsUtils.track(c30979_0, {
|
|
rating,
|
|
category: c30979_2,
|
|
reason_code: c30979_3,
|
|
reason_description: c30979_4,
|
|
reason_variant: c30979_5,
|
|
feedback: c30979_6,
|
|
audio_input_mode: c30979_8.mode,
|
|
automatic_audio_input_sensitivity_enabled: c30979_8.modeOptions.autoThreshold,
|
|
audio_input_sensitivity: c30979_8.modeOptions.threshold,
|
|
vad_use_advanced_voice_activity: c30979_8.modeOptions.vadUseKrisp,
|
|
echo_cancellation_enabled: c30979_8.echoCancellation,
|
|
noise_suppression_enabled: c30979_8.noiseSuppression,
|
|
automatic_gain_control_enabled: c30979_8.automaticGainControl,
|
|
voice_output_volume: c30979_8.outputVolume,
|
|
noise_cancellation_enabled: c30979_15,
|
|
input_device_name: c30979_10?.name,
|
|
output_device_name: c30979_12?.name,
|
|
video_device_name: c30979_14?.name,
|
|
audio_subsystem: c30979_16,
|
|
audio_layer: c30979_17,
|
|
automatic_audio_subsystem: c30979_8.automaticAudioSubsystem,
|
|
krisp_nc_model: c30979_18,
|
|
audio_output_mode: c30979_20,
|
|
...c30979_21
|
|
});
|
|
};
|