diff --git a/Audio-Transcription-Chrome/README.md b/Audio-Transcription-Chrome/README.md index 7392f73..ec00040 100644 --- a/Audio-Transcription-Chrome/README.md +++ b/Audio-Transcription-Chrome/README.md @@ -26,7 +26,6 @@ To capture the audio in the current tab, we used the chrome `tabCapture` API to ### Options When using the Audio Transcription extension, you have the following options: - **Use Collabora Server**: We provide a demo server which runs the whisper small model. - - **Use Multilingual Model**: Enable this option to utilize the multilingual capabilities of OpenAI-whisper. - **Language**: Select the target language for transcription or translation. You can choose from a variety of languages supported by OpenAI-whisper. - **Task:** Choose the specific task to perform on the audio. You can select either "transcribe" for transcription or "translate" to translate the audio to English. - **Model Size**: Select the whisper model size to run the server with. diff --git a/Audio-Transcription-Chrome/content.js b/Audio-Transcription-Chrome/content.js index 3c911e4..c22376b 100644 --- a/Audio-Transcription-Chrome/content.js +++ b/Audio-Transcription-Chrome/content.js @@ -59,7 +59,7 @@ function init_element() { elem_container = document.createElement('div'); elem_container.id = "transcription"; - elem_container.style.cssText = 'padding-top:16px;font-size:18px;position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);z-index: 9999;line-height:18px;width:500px;height:90px;opacity:0.9;z-index:100;background:black;border-radius:10px;color:white;'; + elem_container.style.cssText = 'padding-top:16px;font-size:18px;position: fixed; top: 85%; left: 50%; transform: translate(-50%, -50%);line-height:18px;width:500px;height:90px;opacity:0.9;z-index:100;background:black;border-radius:10px;color:white;'; for (var i = 0; i < 4; i++) { elem_text = document.createElement('span'); diff --git a/Audio-Transcription-Chrome/popup.js b/Audio-Transcription-Chrome/popup.js index 3c40aa8..57ae739 100644 --- a/Audio-Transcription-Chrome/popup.js +++ b/Audio-Transcription-Chrome/popup.js @@ -120,6 +120,7 @@ document.addEventListener("DOMContentLoaded", function () { stopButton.disabled = !isCapturing; useServerCheckbox.disabled = isCapturing; modelSizeDropdown.disabled = isCapturing; + languageDropdown.disabled = isCapturing; taskDropdown.disabled = isCapturing; startButton.classList.toggle("disabled", isCapturing); stopButton.classList.toggle("disabled", !isCapturing); diff --git a/Audio-Transcription-Firefox/README.md b/Audio-Transcription-Firefox/README.md index be48b78..5e4669e 100644 --- a/Audio-Transcription-Firefox/README.md +++ b/Audio-Transcription-Firefox/README.md @@ -24,7 +24,6 @@ To capture the audio in the current tab, we used the chrome `tabCapture` API to ### Options When using the Audio Transcription extension, you have the following options: - **Use Collabora Server**: We provide a demo server which runs the whisper small model. - - **Use Multilingual Model**: Enable this option to utilize the multilingual capabilities of OpenAI-whisper. - **Language**: Select the target language for transcription or translation. You can choose from a variety of languages supported by OpenAI-whisper. - **Task:** Choose the specific task to perform on the audio. You can select either "transcribe" for transcription or "translate" to translate the audio to English. - **Model Size**: Select the whisper model size to run the server with. diff --git a/Audio-Transcription-Firefox/content.js b/Audio-Transcription-Firefox/content.js index 82b045b..69611b5 100644 --- a/Audio-Transcription-Firefox/content.js +++ b/Audio-Transcription-Firefox/content.js @@ -66,16 +66,12 @@ function resampleTo16kHZ(audioData, origSampleRate = 44100) { function startRecording(data) { socket = new WebSocket(`ws://${data.host}:${data.port}/`); language = data.language; - if (language === null && !data.useMultilingual) { - language = 'en'; - } const uuid = generateUUID(); socket.onopen = function(e) { socket.send( JSON.stringify({ uid: uuid, - multilingual: data.useMultilingual, language: data.language, task: data.task, model: data.modelSize @@ -201,7 +197,7 @@ function init_element() { elem_container = document.createElement('div'); elem_container.id = "transcription"; - elem_container.style.cssText = 'padding-top:16px;font-size:18px;line-height:18px;top:0px;position:absolute;width:500px;height:90px;opacity:0.9;z-index:100;background:black;border-radius:10px;color:white;'; + elem_container.style.cssText = 'padding-top:16px;font-size:18px;line-height:18px;position:fixed;top:85%;left:50%;transform:translate(-50%,-50%);width:500px;height:90px;opacity:0.9;z-index:100;background:black;border-radius:10px;color:white;'; for (var i = 0; i < 4; i++) { elem_text = document.createElement('span'); diff --git a/Audio-Transcription-Firefox/popup.html b/Audio-Transcription-Firefox/popup.html index 30184a5..43b93a1 100644 --- a/Audio-Transcription-Firefox/popup.html +++ b/Audio-Transcription-Firefox/popup.html @@ -16,113 +16,109 @@ - -
- - -