Questions tagged [web-audio-api]

Web Audio API is an advanced audio processing API directly available inside browser that helps to create, manipulate and analyze audio data using JavaScript.

Web Audio API is a powerful model completely different from the HTML5 <audio> element that helps to synthesis audio using JavaScript in browser.

The API uses Modular Routing architecture to create simple or complex mixings and effects. It comes with a low-latency precise-timing model that enables to schedule events at specific times in the future which is very crucial for musical applications.

It also has integration points with <audio> and <video> elements.

Some of the powerful features provided by the API are:

  • Processing live audio input
  • Integration with WebRTC
  • Spatialized audio
  • Convolution engine to create effects in Concert, Cathedral, Tunnel etc.
  • Dynamics Compression
  • Real-time time-domain and frequency analysis
  • Filters and Oscillators

References:

Demos:

2531 questions
1
vote
1 answer

Math related Javascript for Web Audio API

I am having trouble figuring this math related problem out. I am using the jogDial.js plugin for a project. With it, I'm trying to simulate a volume dial that controls the gainNode of the web audio api. The plugin can return the degree of the dial…
Livi17
  • 1,620
  • 3
  • 25
  • 43
1
vote
1 answer

Audio chunk decoding over WebSocket

I use WebSocket to stream audio file's chunks. I defined a handler for the Socket.onmessage event and I defined an AudioContext. The problem is I lose chunks when I decode audio data. Here is my handler: var socket = new…
Notiggsam
  • 111
  • 1
  • 13
1
vote
2 answers

Cannot analyse Soundcloud's streaming audio because of the lack of CORS policy

I am working on this visualizer http://trif.it that still works well on Chrome Stable (41.x) but stopped working in Chrome Dev, Beta and Canary (42.x onwards) because of a change in how Chrome (and Firefox before that) handles audio sources to be…
1
vote
2 answers

How do I obtain a list of audio formats that the current browser can decode via the web audio API?

I'm using the web audio javascript API? If I loop through several popular audio formats, and then call document.getElementById('someAudioTag').canPlayType('audio/ogg'); for each format (in this case, ogg), do I get a list of audio formats that I can…
dangerChihuahua007
  • 20,299
  • 35
  • 117
  • 206
1
vote
1 answer

Web Audio API 24db Filter

The web audio biquad filter is 12db. Is it possible to create a 24db filter by connecting 2 of these together? I have tried connecting 2 together and it certainly creates a much more extreme effect with the resonance being particularly harsh. I…
ezero
  • 1,230
  • 3
  • 12
  • 27
1
vote
1 answer

Does linearRampToValueAtTime linearly ramp in decibels or literally linearly in sample values?

When I call myGainNode.gain.value = 0; myGainNode.gain.linearRampToValueAtTime(1, currTime + 5000); does the gain audioparam literally linearly ramp the gain coefficient from 0 to 1 in 5 seconds? Or does it ramp in terms of decibels and instead…
dangerChihuahua007
  • 20,299
  • 35
  • 117
  • 206
1
vote
1 answer

Why is chrome on my windows machine limiting the number of frequencybins in my script?

So I am designing a audio visualizer specifically for chrome using web audio and p5.js. Now I know that my code is working fine because it performs as expected on my macbook in chrome as well as on my friend's windows laptop. I noticed the problem…
Harrison
  • 319
  • 2
  • 14
1
vote
1 answer

Recorder.js calculate and offset recording for latency

I'm using Recorder.js to record audio from Google Chrome desktop and mobile browsers. In my specific use case I need to record exactly 3 seconds of audio, starting and ending at a specific time. Now I know that when recording audio, your soundcard…
Kim T
  • 5,770
  • 1
  • 52
  • 79
1
vote
1 answer

Web Audio API createMediaElementSource breaks the audio tag

createMediaElementSource test