Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

54
Views
Web Audio API Constraints and AudioContext Graph

I am doing some audio processing with web audio api using JavaScript and I need an advice.

I am trying to do something like this.

const stream = await navigator.mediaDevices.getUserMedia 
{
    audio: true,
}

// Adding some constraints to the stream
for await(const track of stream.getAudioTracks()){
    await track.applyConstraints({echoCancellation:true, noiseSuppresion:false,....});
}


// Creating source and destination 
const source = context.createMediaStreamSource(stream);
const destination = context.createMediaStreamDestination();

// Filtering some audio
source.connect(filter);
filter.connect(destination);

// Applying new constraints after filtering
for await(const destTrack of destination.stream.getAudioTracks()){
    await destTrack.applyConstraints({autoGainControl:true...});
}

But after trying to apply new constarints to the destination I get error OverconstrainedError {name: 'OverconstrainedError', message: 'Cannot satisfy constraints', constraint: ''}. Why is error.constraint === '' ? How resolve this issue?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!