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

174
Views
Wavesurfer with timeline does not display correct "waves"

I have a angular application where I want to find "silent" audio parts in audiofiles.

this.wavesurferPlayer = wavesurfer.create({
  container: this.wavePlayer.nativeElement,
  responsive: true,
  waveColor: settings.colorsFaded[0],
  interact: true,
  plugins: [
    timelinePlugin.create({
      container: "#wave-timeline"
    })
  ]  
});

I run this when I set the cursor to get the time:

let time = this.wavesurferPlayer.getCurrentTime();

The time variable shows 21.12 - 21.13 for the "silent part". But when playing the same file in e.g. windows media player the time is 21.10 - 21.11 for the silent part. So about 2 seconds error.

See image timeline below where you can see that the silen part is not starting in 21.10.

Wavesurfer timeline image

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!