# High Performance Web Audio with AudioWorklet in Firefox

**URL:** <https://forum.codeselfstudy.com/t/high-performance-web-audio-with-audioworklet-in-firefox/2299>\
**Category:** News\
**Tags:** firefox\
**Created:** [May 7, 2020, 9:51pm UTC](https://forum.codeselfstudy.com/t/high-performance-web-audio-with-audioworklet-in-firefox/2299 "2020-05-07T21:51:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Josh](https://forum.codeselfstudy.com/user_avatar/forum.codeselfstudy.com/josh/32/4_2.png) [@Josh](https://forum.codeselfstudy.com/u/Josh)\
**Post date:** [May 7, 2020, 9:51pm UTC](https://forum.codeselfstudy.com/t/high-performance-web-audio-with-audioworklet-in-firefox/2299/1 "2020-05-07T21:51:01Z")

</div>

> Now developers can leverage `AudioWorklet` to write arbitrary audio processing code, enabling the creation of web apps that weren’t possible before. This exciting new functionality raises the bar for emerging web experiences like 3D games, VR, and music production.
> 
> Audio worklets bring power and flexibility to general purpose real-time audio synthesis and processing. This begins with the [`addModule()`](https://developer.mozilla.org/docs/Web/API/Worklet/addModule) method to specify a script that can generate audio on the fly or perform arbitrary processing of audio. Various kinds of sources can now be connected through the Web Audio API to an [`AudioWorkletNode`](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode) for immediate processing. Source examples include an [`HTMLMediaElement`](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement) resource, a [local microphone](https://developer.mozilla.org/docs/Web/API/MediaDevices/getUserMedia), or [remote audio](https://developer.mozilla.org/docs/Web/API/WebRTC_API). Alternatively, the `AudioWorklet` script itself can be the source of audio.
> 
> …The audio processing code runs on a dedicated real-time system thread for audio processing. This frees the audio from pauses that in the past might have been caused by all the other things happening in the browser.

> **[High Performance Web Audio with AudioWorklet in Firefox – Mozilla Hacks - the...](https://hacks.mozilla.org/2020/05/high-performance-web-audio-with-audioworklet-in-firefox/)**
>
> Earlier this week, Audio Worklets landed in the release of Firefox 76. We’re ready to start bridging the gap between web audio and native. Developers can now leverage AudioWorklet to ...
