Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow specifying specific samples to get. #22

Merged
merged 2 commits into from
Aug 30, 2024
Merged

Conversation

xd009642
Copy link
Member

The batched API was a bit partially thought out in the way that if a end and then start came in the same batch then you would lose access to the previous buffer! This is undesired as it then encourages users to implement the batching themselves for certain use cases when we could just provide something to make it more feasible with a bit of bookkeeping

The batched API was a bit partially thought out in the way that if a
end and then start came in the same batch then you would lose access to
the previous buffer!
@xd009642
Copy link
Member Author

Hmm I'm wondering if for a segment we need the current silence duration and the other methods that operate on a segment 🤔 . I don't think we can recreate all of them...

@xd009642
Copy link
Member Author

Another alternative might be in the batch processing if we hit a speech end not continuing with the processing and early returning and returning the number of samples written into the buffer. That might be more fully featured 🤔

Copy link
Member

@blueridanus blueridanus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah yeah makes sense

@xd009642 xd009642 merged commit 562df14 into main Aug 30, 2024
1 check passed
@xd009642 xd009642 deleted the feat/get-other-segments branch August 30, 2024 10: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.

2 participants