A simple example of how to use audio worklets with Typescript (and React / Vue in order to see it) so you can use a microphone for more than just an audio stream.
In the case of this demo we should the percentage volume from the microphone in a very simple meter.
- Install Nodenv: https://github.com/nodenv/nodenv#homebrew-on-macos
- Install Node version:
$ nodenv install 18.6.0 - Install Yarn 2: https://yarnpkg.com/getting-started/install
- Install dependencies:
$ yarn install - Test it works!
$ yarn start