From 9eafe4b17d233492550788c891e22c5946577007 Mon Sep 17 00:00:00 2001 From: makaveli10 Date: Wed, 21 Jun 2023 11:32:53 +0530 Subject: [PATCH] apply suggestions --- Audio-Transcription-Firefox/README.md | 2 +- Audio-Transcription-Firefox/background.js | 4 ---- Audio-Transcription-Firefox/content.js | 4 ---- Audio-Transcription-Firefox/manifest.json | 4 ++-- Audio-Transcription-Firefox/popup.html | 2 +- 5 files changed, 4 insertions(+), 12 deletions(-) diff --git a/Audio-Transcription-Firefox/README.md b/Audio-Transcription-Firefox/README.md index af8a521..a24c14d 100644 --- a/Audio-Transcription-Firefox/README.md +++ b/Audio-Transcription-Firefox/README.md @@ -1,4 +1,4 @@ -# Audio Transcription Fox +# Audio Transcription Firefox Audio Transcription is a Firefox extension that allows users to capture any audio playing on the current tab and transcribe it using OpenAI-whisper in real time. Users will have the option to do voice activity detection as well to not send audio to server when there is no speech. diff --git a/Audio-Transcription-Firefox/background.js b/Audio-Transcription-Firefox/background.js index 9380328..9d3ea0c 100644 --- a/Audio-Transcription-Firefox/background.js +++ b/Audio-Transcription-Firefox/background.js @@ -12,7 +12,3 @@ browser.runtime.onMessage.addListener(function(request, sender, sendResponse) { } }); - - - - diff --git a/Audio-Transcription-Firefox/content.js b/Audio-Transcription-Firefox/content.js index 9c2e518..f8b06da 100644 --- a/Audio-Transcription-Firefox/content.js +++ b/Audio-Transcription-Firefox/content.js @@ -202,7 +202,6 @@ function remove_element() { elem.remove() } - browser.runtime.onMessage.addListener((request, sender, sendResponse) => { const { action, data } = request; if (action === "startCapture") { @@ -223,7 +222,6 @@ browser.runtime.onMessage.addListener((request, sender, sendResponse) => { recorder = null; } - remove_element(); } else if (action === "show_transcript"){ @@ -279,5 +277,3 @@ browser.runtime.onMessage.addListener((request, sender, sendResponse) => { } sendResponse({}); }); - - diff --git a/Audio-Transcription-Firefox/manifest.json b/Audio-Transcription-Firefox/manifest.json index e3cd717..caa447c 100644 --- a/Audio-Transcription-Firefox/manifest.json +++ b/Audio-Transcription-Firefox/manifest.json @@ -1,8 +1,8 @@ { "manifest_version": 2, - "name": "Audio Recorder", + "name": "Audio Transcription", "version": "1.0", - "description": "Record audio from any webpage.", + "description": "Transcribe audio from any webpage.", "permissions": [ "activeTab", "" diff --git a/Audio-Transcription-Firefox/popup.html b/Audio-Transcription-Firefox/popup.html index b961819..0955461 100644 --- a/Audio-Transcription-Firefox/popup.html +++ b/Audio-Transcription-Firefox/popup.html @@ -1,7 +1,7 @@ - Audio Capture + Audio Transcription