docs/echo-cancellation.html
This tutorial is out-dated (written in 2013). Please check this tutorial instead: https://codelabs.developers.google.com/codelabs/webrtc-web/#0
High volume can produce sound noise on some audio devices. The value may not be significant if audio device volume is controlled externally.
HTMLAudioElement.volume = 0.9;
HTMLAudioElement.play();
The GainNode is a simple element that lets us control the volume of the audio that’s coming into to it.
var context = new webkitAudioContext(),
var sineWave = context.createOscillator();
// Declare gain node
var gainNode = context.createGainNode();
// Connect sine wave to gain node
sineWave.connect(gainNode);
// Connect gain node to speakers
gainNode.connect(context.destination);
// Play sine wave
sineWave.noteOn(0);
gainNode.gain.value = 0.9;
Try demo locally to control volume using GainNode.
Send MessageEnter your email too; if you want "direct" reply!