Skip to content

Speakr is a personal, self-hosted web application designed for transcribing audio recordings

Python

Fix system audio recording with early stream capture and validation

Murtaza Nasirf6c055ce63db
diff --git a/static/js/modules/composables/audio.js b/static/js/modules/composables/audio.js
index 586a175e..cd6f2033 100644
--- a/static/js/modules/composables/audio.js
+++ b/static/js/modules/composables/audio.js
@@ -164,12 +164,7 @@ export function useAudio(state, utils) {
const audioTrack = displayStream.getAudioTracks()[0];
if (!audioTrack) {
displayStream.getTracks().forEach(track => track.stop());
- const isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
- if (isFirefox) {
- showToast('Firefox: Share a TAB and check "Share tab audio"', 'error', 5000);
- } else {
- showToast('No audio - check "Share system audio"', 'error');
- }
+ showToast('No audio track - check "Share audio" option', 'error');
return;
}