Skip to content

Conversation

Matze99
Copy link
Contributor

@Matze99 Matze99 commented Nov 6, 2024

In many use cases, we must find the pauses in a MediaTrack and remove them to smooth the sound/video and make it easier to follow.

Here, we added a function to find all pauses in a media track.

  • utility function for audio buffer
  • class function of media track
  • unit tests for both

@Matze99 Matze99 added the enhancement New feature or request label Nov 6, 2024
@Matze99 Matze99 requested a review from k9p5 November 6, 2024 20:16
@k9p5
Copy link
Contributor

k9p5 commented Nov 6, 2024

It makes sense for the AudioSource to implement a detectSilences method, however the MediaTrack should perform the action of splitting all clips it contains. I can also recommend using the AudioSource.fastsampler which should simplify the process.

@k9p5 k9p5 merged commit 4b01cb3 into main Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants