AudioContext is a modular interface for audio processing for the WebAudio API.
Questions tagged [audiocontext]
277 questions
0
votes
0 answers
Javascript AudioContext check not working in Internet Explorer 11
I have this JS code where I am checking if AudioContext is defined then set it otherwise return undefined:
function audioContextCheck() {
if (typeof AudioContext !== "undefined") {
return new AudioContext();
} else if (typeof…

user2966197
- 2,793
- 10
- 45
- 77
0
votes
1 answer
No outputLatency in AudioContext
I'm trying to access the outputLatency feature in Chrome 64, but the property is undefined.
According to the documentation it should work only on Chrome https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/outputLatency
I know the feature…

Ice-Blaze
- 897
- 8
- 18
0
votes
1 answer
Downsampling audio in javascript
I want to downsample an audio buffer in javascript. I am using OfflineAudioContext, but the output audio quality is significantly worse than the original audio (at 44100Hz). Is there any solution for higher quality audio resampling in javascript…

bear
- 663
- 1
- 14
- 33
0
votes
0 answers
Send buffer for audiocontext via socket.io (node.js)
I am trying to send audio file (or chunk) via socket.io.
I tried:
// server
socket.on('client-get-audio', function (data) {
//data.fname - name of requested file
var buffer = fs.readFileSync(data.fname, null);
// try 2 - read…

Kaen
- 1
- 2
0
votes
1 answer
React and HowlerJS: Howler.ctx is null
I am trying to expose the AudioContext api in the global Howler and assign it to a variable, however I am unable to figure out how to get Howler.ctx to not be null.
const CTX = Howler.ctx ; // Howler.ctx is returning null

Rex
- 376
- 2
- 11
0
votes
1 answer
Flash Part of screen With Sound created using web audio api for Morse code(audio context)
I have created code to generate morse code sound using web audio api. Morse code sound is working perfect. I wanted to flash part of the screen with that sound.There are only two sounds dot(.) and dash(-). I wanted to show message by flashing part…

user3357709
- 25
- 1
- 5
0
votes
1 answer
AudioContext: Oscillator - know when all sounds have been played
I am using this javascript api (miniMusic). I was able to create a music and then export the javascript code. I am also able to run it.
I would like to be able to know when my music has ended so I can play it again and have control over it.
with(new…

DigitalEvolution
- 345
- 2
- 5
- 16
0
votes
0 answers
cannot send wave to s3 from audio buffer
I retrieve a file from Ispeech through xmlhttprequest then decode it using audio context ! but when i try to save the file to FS it just produces a corrupted wav file !
var XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest;
var fs =…

Genjuro
- 7,405
- 7
- 41
- 61
0
votes
0 answers
Twilio.Device.setup throws error
I am developing BrowserPhone by twilio.js, version is 1.4.20.
When token expired, I am handling Twilio.Device.offline(),
and regenerate token and re-setup Twilio.Device.
After 6 times re-setup, then, Twilio.js throw error.
*Failed* to construct…

西口瑛一
- 13
- 4
0
votes
3 answers
web audio gets muted when attaching a mediaElementSource
I am attempting to visualize call recordings from the twilio API using an html5 web audio analyser, but whenever I attach my analyser (visualizer), it mutes my audio.
here is the relevant code:
initScope = function () {
context = new…

mheavers
- 29,530
- 58
- 194
- 315
0
votes
1 answer
Audiocontext convert the sample rate from 44.1KHz to 8KHz
I'm trying to stream the microphone audio, but I noticed that the audio is recorded At 44,1KHz and the device to which I send the data only supports 8KHz audio data.
Is there a way to convert the sample rate by using JavaScript?
user8093442
0
votes
1 answer
Uncaught DOMException: Failed to construct 'AudioContext': The number of hardware contexts provided (6)
i am trying to implement microsoft bing speech api and its working fine for the first 5 times after that when i record my voice i getting exception in console .
Exception : Uncaught DOMException: Failed to construct 'AudioContext': The number of…

Ramseen Ramsi
- 125
- 1
- 11
0
votes
0 answers
No change in output volume using createGain
I want to control the audio volume of an incoming webRTC audio stream. The code looks like this:
...
audioContext=new AudioContext;
gainFilter=audioContext.createGain(),
jsnode=audioContext.createScriptProcessor(512,1,1); // used for…

Armin Hierstetter
- 1,078
- 2
- 12
- 27
0
votes
0 answers
Why doesn't audio context work correctly on firefox?
A while ago I made this, which uses the browser's AudioContext to create an Analyser and give me audio data so that I can animate the music being played.
When I finished this at the time it worked perfectly in both Chrome and Firefox. When I tried…
user7366285
0
votes
1 answer
How to pause offline rendering?
OfflineContext.suspend stops the progression of OfflineContext.currentTime, but what effect does it have while rendering (OfflineContext.startRendering)? What I want to do is start the rendering process, pause it, do some other task and resume it…

Maxime Dupré
- 5,319
- 7
- 38
- 72