Skip to content

Commit

Permalink
try to fix audio stuff?
Browse files Browse the repository at this point in the history
  • Loading branch information
ottomated committed Dec 11, 2020
1 parent 80056d5 commit ddcd9ca
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/renderer/Voice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,21 @@ const Voice: React.FC = function () {
connect: () => void;
destroy: () => void;
};
const audio: MediaTrackConstraints = {
const audio = {
deviceId: undefined as unknown as string,
autoGainControl: false,
channelCount: 2,
echoCancellation: false,
latency: 0,
noiseSuppression: true,
noiseSuppression: false,
sampleRate: 48000,
sampleSize: 16,
googEchoCancellation: false,
googAutoGainControl: false,
googAutoGainControl2: false,
googNoiseSuppression: false,
googHighpassFilter: false,
googTypingNoiseDetection: false
};

// Get microphone settings
Expand Down

0 comments on commit ddcd9ca

Please sign in to comment.