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

Reduce vad-moonshine-c-api example code. #1742

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

whyb
Copy link
Contributor

@whyb whyb commented Jan 21, 2025

Reduce vad-moonshine-c-api example code.

The current code uses a repeated while loop code (two sections of while) to process the tail data.

while(..) {
}
while(..) {
}

And the optimized early calculation of total_size can circulate less each calculation amount and improve efficiency.

So I reduce sherpa-onnx/c-api-examples/vad-moonshine-c-api.c some codes.

The PR like this: #1510

The screenshot is test results after modification in my pc.
圖片

Copy link
Collaborator

@csukuangfj csukuangfj left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution!

@csukuangfj csukuangfj merged commit 5bcd7e1 into k2-fsa:master Jan 21, 2025
2 of 4 checks passed
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