Aubert-Antoine / loudness-visualizer

💁This repository is a personal project, open to the community🚀. This Chrome extension allows to display the volume of the audio stream (I/O) of the Chrome page. The display is composed of vu metre in db (rms and peak) + LUFS (integrate, momentary and short term) 🔉.
GNU General Public License v3.0
1 stars 1 forks source link

Fetch audio stream thanks to the Google API #16

Open Aubert-Antoine opened 1 year ago

Aubert-Antoine commented 1 year ago

How to fetch the audio stream ?

The location of the script depends on what you are trying to achieve with your Chrome extension.

If you want to display the dB value in a popup window when the user clicks on the extension icon, then the script should be included in a popup script. You can specify the popup script in the popup field of your manifest.json file.

On the other hand, if you want to display the dB value directly on the current web page, then the script should be included in a content script. You can specify the content script in the content_scripts field of your manifest.json file.

In either case, you will need to request the necessary permissions in your manifest.json file to use the chrome.tabCapture API and to inject scripts into web pages.

Aubert-Antoine commented 1 year ago

Code source of ears