Skip to content

Conversation

@xd009642
Copy link
Member

@xd009642 xd009642 commented Nov 26, 2024

While going through the code I noticed a repeated calculation being done so just made a small method to do it. This also standardises on if we calculate the milliseconds and make a duration from that or the seconds - and consistency is always the best approach.

I know it says 3 commits but two of them are already in master this is just rebase magic at work 😅

I may use this in a follow up PR to implement a `trim_silence` type
function to remove things from the start. For now adding the API as it
seems generally useful for debugging
@xd009642 xd009642 merged commit 511df8b into main Nov 26, 2024
1 check passed
@xd009642 xd009642 deleted the refactor/samples-to-duration branch November 26, 2024 12:08
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.

3 participants