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.