Skip to content

Conversation

k9p5
Copy link
Contributor

@k9p5 k9p5 commented Dec 3, 2024

No description provided.

k9p5 added 4 commits December 1, 2024 14:39
- Added `removeSilences` method to `MediaClip` class for removing silence segments based on specified options.
- Introduced `SilenceDetectionOptions` type for improved configuration of silence detection parameters.
- Updated `AudioSource` class to utilize new silence detection logic, replacing the previous implementation.
- Refactored silence detection utility to process audio buffers more efficiently.
- Added `audio.fixtures.ts` for defining minimum sample rate constant.
- Removed outdated silence detection tests from `audio.spec.ts` to streamline testing focus.

These changes improve the performance and flexibility of silence handling in audio processing.
- Simplified the `removeSilences` method in `MediaClip` by removing unnecessary options, defaulting to a standard behavior.
- Updated the `removeSilences` method signature in `MediaTrack` to use the new `SilenceRemoveOptions` type for consistency.
- Added export for `media.types` to enhance type management in the media module.
- Removed outdated mock tests related to silence removal to streamline the test suite.

These changes enhance the clarity and maintainability of the silence removal logic in the audio processing workflow.
- Bump package version from 1.5.0 to 1.5.1 in package.json.
- Ensure `removeSilences` method in `MediaClip` initializes correctly based on state.
- Clarify documentation for `SilenceDetectionOptions`, specifying minimum duration in milliseconds.
- Update silence detection utility to convert minimum duration from milliseconds to samples for accurate processing.

These changes improve the robustness and clarity of silence handling in audio processing.
@k9p5 k9p5 merged commit 489e31a into main Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant