This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for usage in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the specification changes.
var audioContext = new AudioContext(options)
- Options are as follows:
latencyHint: This value identifies type of playback, which affects tradeoffs between audio output latency and power consumption. The prefered values are "balanced", "interactive", and "playback", with the default value: "interactive". These values mean "balance audio output latency and power consumption", "provide lowest audio output latency as possible without glitching", and "prioritize sustained playback without interruption over audio output latency". You can also specify double value for the number of seconds of latency, for finer control.
|Web Audio API
The definition of 'AudioContext()' in that specification.
|Working Draft||Initial definition.|
|Feature||Chrome||Firefox (Gecko)||Internet Explorer||Opera||Safari (WebKit)|
|Basic support||55.0||25 (25)||?||42||?|
|Feature||Android||Android Webview||Firefox Mobile (Gecko)||IE Mobile||Opera Mobile||Safari Mobile||Chrome for Android|
|Basic support||No support||55.0||25.0 (25)||?||42||?||55.0|
||No support||?||No support||?||?||?||?|
 Firefox does not yet support the
options parameter. However, from Firefox 31 through 54, Firefox had a non-standard constructor which accepted as input a string identifying the purpose for which the channel was being used. This was removed in Firefox 55 since it was causing code that used the
options parameter to throw an exception. Support for
options will arrive in the future.