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

add endpoint for websocket server #175

Closed
wants to merge 3 commits into from
Closed

Conversation

nullscc
Copy link

@nullscc nullscc commented Jun 12, 2023

Add endpoint function to sherpa-onnx websocket server.

client judge endpoint by param is_final and segment.

is_final=True when endpoint detected or final input stream reached.

if (config_.enable_endpoint && IsEndpoint(s)) {
auto r = decoder_->GetEmptyResult();
s->SetResult(r);
ans.is_final = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why setting ans.is_final = true here, I thought this branch is for breaking long audios via Endpointer.

@csukuangfj
Copy link
Collaborator

Closing via #294

@csukuangfj csukuangfj closed this Aug 31, 2023
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