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 more C API examples #1255

Merged
merged 3 commits into from
Aug 14, 2024
Merged

Add more C API examples #1255

merged 3 commits into from
Aug 14, 2024

Conversation

zhu-han
Copy link
Contributor

@zhu-han zhu-han commented Aug 14, 2024

C API examples for zipformer, paraformer, and TeleSpeech-ASR CTC models.

C API examples for zipformer, paraformer, and TeleSpeech-ASR CTC models.
@@ -0,0 +1,80 @@
// c-api-examples/paraformer-c-api.c
Copy link
Collaborator

Choose a reason for hiding this comment

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

please follow

add_executable(add-punctuation-c-api add-punctuation-c-api.c)
target_link_libraries(add-punctuation-c-api sherpa-onnx-c-api)
add_executable(whisper-c-api whisper-c-api.c)
target_link_libraries(whisper-c-api sherpa-onnx-c-api)
add_executable(sense-voice-c-api sense-voice-c-api.c)
target_link_libraries(sense-voice-c-api sherpa-onnx-c-api)

to change CMakeLists.txt to include newly added files.

@@ -0,0 +1,136 @@
// c-api-examples/streaming-paraformer-c-api.c
Copy link
Collaborator

Choose a reason for hiding this comment

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

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! Just left some minor comments. Otherwise, it looks great to me.

return -1;
}

// Zipformer config
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
// Zipformer config
// Paraformer config

@csukuangfj
Copy link
Collaborator

Thank you for your contribution!

@csukuangfj csukuangfj merged commit f300ec0 into k2-fsa:master Aug 14, 2024
2 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