22 lines
627 B
TypeScript
22 lines
627 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
|
|
import { displayMediaOptions } from "../src/client/media/audio-capture.ts";
|
|
|
|
describe("browser display audio capture", () => {
|
|
it("keeps screen audio free of speech processing and prefers stereo", () => {
|
|
const options = displayMediaOptions({ width: { ideal: 1280 } });
|
|
|
|
expect(options).toMatchObject({
|
|
audio: {
|
|
echoCancellation: false,
|
|
noiseSuppression: false,
|
|
autoGainControl: false,
|
|
voiceIsolation: false,
|
|
channelCount: { ideal: 2 },
|
|
},
|
|
systemAudio: "include",
|
|
windowAudio: "window",
|
|
});
|
|
});
|
|
});
|