service-worker.js
content.js
I've tried several approaches:
but each attempt either breaks the transcription or doesn't restore the audio.
How can I maintain both the original tab audio playback AND capture the audio for transcription?
Technical details:
Any help would be greatly appreciated!
--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/b3205368-5cde-43c6-a4e1-47c64b9e8e0an%40chromium.org.
Hi Oliver,
Thank you for your response and suggestion !
very happy to say that I've successfully solved the issue with a working implementation!
You were right - this is indeed related to the Chromium bug you linked. After experimenting with different approaches, I found a reliable solution that keeps the tab audio playing AND allows transcription via Deepgram.
Here's how I solved it:
By connecting the audio source directly to the destination in the offscreen document, the tab audio continues to play normally while still allowing the processor to access the audio data for transcription.
The most important part was indeed connecting the audio source directly to the destination, which kept the audio playing, while also sending it through the processor for transcription.
I've now implemented this solution in my extension, and it's working perfectly - users can hear the tab audio while the real-time transcription happens simultaneously. I've also added multi-language support and microphone recording/transcription alongside the tab audio.
Thank you again !
Guillaume