Skip to content

Commit

Permalink
remove remnants of debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
schlawg authored Nov 17, 2024
1 parent 197995d commit 7504a2e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ui/voice/src/voice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,9 @@ export function makeVoice(opts: {

document.addEventListener('keydown', (e: KeyboardEvent) => {
if (e.key !== 'Shift' || shiftDown) return;
const start = mic.isListening || pushTalk();
shiftDown = true;
mic.stop();
window.speechSynthesis.cancel();
if (start) mic.start();
if (pushTalk()) mic.start();
clearTimeout(keyupTimeout);
});

Expand Down

0 comments on commit 7504a2e

Please sign in to comment.