Audio processing: ScriptProcessorNode.onaudioprocess sending duplicate audio input buffers

Issue #14476692 • Unassigned

Details

Author
Jet F.
Created
Nov 1, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
16.16299
Reports
Reported by 2 people

Sign in to watch or report this issue.

Steps to reproduce

we’re trying to process a microphone input and convert it into raw pcm data for processing
out current implementation follows the guidelines on this demo:
https://github.com/MicrosoftEdge/Demos/tree/master/microphone

for a simple standalone script, the ScriptProcessorNode.onaudioprocess works correctly and we’re able to create the correct audio buffer from microphone input

However, once the script is implemented on a processing-heavy page like a React/Angular single page application, the onaudioprocess event stutters, the observation is that:

  • would send duplicated input buffers
  • it would also drop some of the input buffers

causing the resulting audio to have duplicated and missing segments.

we’ve tried changing the audio recorder script processing node to a larger buffer size, but the issue still persists.

Tried also the fall preview for Edge 16, and the issue is still reproducible.

issue not reproducible in Firefox, Chrome, and Safari. they are able to produce to correct audio input buffers

here’s the sample raw PCM data that has been created that demonstrates the issue.
32-bit float
little-endian
mono

you’ll notice that a lot of the recorded audio segments get duplicated, while some of the recording audio data is lost.

Attachments

Comments and activity

Nothing to see here! No one has commented on this issue yet.

You need to sign in to your Microsoft account to add a comment.

Sign in