diff --git a/src/interface/desktop/chat.html b/src/interface/desktop/chat.html
index 958cb5d9..00192d6f 100644
--- a/src/interface/desktop/chat.html
+++ b/src/interface/desktop/chat.html
@@ -551,7 +551,6 @@
let mediaRecorder;
async function speechToText() {
- const speakButton = document.getElementById('speak-button');
const speakButtonImg = document.getElementById('speak-button-img');
const chatInput = document.getElementById('chat-input');
diff --git a/src/khoj/interface/web/chat.html b/src/khoj/interface/web/chat.html
index 920cacc4..573915c9 100644
--- a/src/khoj/interface/web/chat.html
+++ b/src/khoj/interface/web/chat.html
@@ -574,7 +574,6 @@ To get started, just start typing below. You can also type / to see a list of co
let mediaRecorder;
function speechToText() {
- const speakButton = document.getElementById('speak-button');
const speakButtonImg = document.getElementById('speak-button-img');
const chatInput = document.getElementById('chat-input');