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
2 answers

Alternate for Web Audio API

I have a web program which makes use of Web Audio API. The issue here is that i want to make it compatible for IE. Is there any alternate for the Web Audio API, so that i can make the same code run on IE specifically?
1
vote
1 answer

How can I capture the AudioDestinationNode value when headphones are plugged in with Web Audio API?

I've been looking for a solution that detects the difference between the default speakers and headphones on a computer. I understand that with Web Audio API, AudioDestinationNode represents the output device, where users hear audio. My question (to…
doyinue
  • 23
  • 2
1
vote
1 answer

Loading Audio In Web Audio API From Node API

I'm trying to load audio from the server using Web Audio API. So far, all of my attempts to return data using a Node/Express API have failed to return anything that would play in my browser. My current attempt is to store the contents of the file…
Nael
  • 1,479
  • 1
  • 14
  • 20
1
vote
0 answers

Do Web Audio Api and Supercollider work together?

Is it possible to load a SuperCollider SynthDef as a source into Web Audio API? Say, if I have an Apache Server running on port 8888, can I set SC to the same server and do the trick on real time? Thanks.
8-Bit Borges
  • 9,643
  • 29
  • 101
  • 198
1
vote
3 answers

Meteor.js : I want to play a sound when someone recieves a message in a simple chat app

On my PC I get a sound in chrome browser when I send a message via my smart phone (android) But on my phone I don't get a sound. I tested this with 2 laptops and it works now with those but my phone's browser does not give a beep. The goal is that…
Joris
  • 105
  • 2
  • 9
1
vote
1 answer

Web Audio API on Android Chrome

I'm trying to test this audio recording example on Android devices with Chrome. According to this Web Audio API should be available on Android Chrome 37. The RecordRTC developer wrote here RecordRTC uses WebAudio API for stereo-audio recording.…
Ron Harlev
  • 16,227
  • 24
  • 89
  • 132
1
vote
1 answer

HTML5 Web Audio - I can't get gain to work

I can't seem to get the GainNode to work. I'm running this code in JSFiddle and it still produces a tone even though gain is set to 0. var context = new webkitAudioContext(); var gain = context.createGain(); gain.value = 0; var oscillator =…
tompreston
  • 630
  • 7
  • 24
1
vote
2 answers

Unable to fade in/out using MediaElementSource and AudioParam interface in Android Chrome

I'm trying to make fade in / fade out effects using a given HTMLAudio element. To use Web Audio API's AudioParam interface for that purpose, I wrapped the HTMLAudio element around a MediaElementSource node and connect it to a Gain node. The…
kuu
  • 815
  • 1
  • 7
  • 16
1
vote
1 answer

How does the Web Audio API affect game development?

I'm trying to understand what the introduction of the Web Audio API has meant for the development of web based games. Flash games can of course do some quite advanced audio processing, and for simpler games the audio element was maybe enough. But…
user1907859
  • 544
  • 2
  • 5
  • 17
1
vote
0 answers

OfflineAudioContext

I have little problem. I'm trying to analyze mp3 sound. But I don't want to do it real-time (it works perfect for me). I have problem with OfflineAudioContext, documentation is written rly bad, no examples or something. Best result was a lot of…
1
vote
1 answer

Web audio on ios conflicting with audio queue, only on device

I have a Cordova plugin that records audio, using CoreAudio. It processes the audio samples, and also replays the recorded audio, still using CoreAudio. The application also plays some audio using web audio. Everything works well in the ios…
Sylvain
  • 365
  • 2
  • 10
1
vote
1 answer

WebAudioAPI: Troubles appending JS audio object to

I have recently made a 3D visualiser and I'm having some problems getting my audio code to work in Firefox. I set up my AudioContext: audioContextSetup: function () { try { Sound.audioContext = new (window.AudioContext ||…
xaunlopez
  • 439
  • 1
  • 4
  • 13
1
vote
0 answers

WebAudio: with firefox onaudioprocess callback is not called?

I have my 8 bit computer emulator written in JavaScript, it uses WebAudio and createScriptProcessor to genarate sound based on the internal state of the "virtual" sound chip emulated (even digital samples, so it's not webaudio oscillator based…
LGB
  • 728
  • 1
  • 9
  • 20
1
vote
1 answer

1 page WebRTC - not getting any audio at the remote peer

I'm trying to build a one-page webRTC app in order to learn this topic. I have 2 audio tags : One represents the local peer and the other represents the remote peer. I've successfully "sent"…
danchohen
  • 121
  • 9
1
vote
1 answer

XMLHttpRequest to get a sound from a different domain

I am currently playing with the Web Audio API and I am looking at buffering and play a source of sound coming from a different domain. I did quite a bit or researches including on stackoverflow and it seems there are solutions to do cross domain…