Spaces:
Building
Building
Update flare-ui/src/app/services/audio-stream.service.ts
Browse files
flare-ui/src/app/services/audio-stream.service.ts
CHANGED
@@ -43,15 +43,22 @@ export class AudioStreamService implements OnDestroy {
|
|
43 |
|
44 |
// Audio constraints
|
45 |
private constraints = {
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
};
|
54 |
-
|
55 |
ngOnDestroy(): void {
|
56 |
this.cleanup();
|
57 |
}
|
|
|
43 |
|
44 |
// Audio constraints
|
45 |
private constraints = {
|
46 |
+
audio: {
|
47 |
+
channelCount: 1,
|
48 |
+
sampleRate: 16000,
|
49 |
+
echoCancellation: true,
|
50 |
+
noiseSuppression: true,
|
51 |
+
autoGainControl: true,
|
52 |
+
// ✅ Mikrofon kazancını artır
|
53 |
+
googAutoGainControl: true,
|
54 |
+
googAutoGainControl2: true,
|
55 |
+
googEchoCancellation: true,
|
56 |
+
googNoiseSuppression: true,
|
57 |
+
googHighpassFilter: false,
|
58 |
+
googTypingNoiseDetection: false
|
59 |
+
}
|
60 |
};
|
61 |
+
|
62 |
ngOnDestroy(): void {
|
63 |
this.cleanup();
|
64 |
}
|