-
Notifications
You must be signed in to change notification settings - Fork 414
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
Add more C API examples #1255
Conversation
C API examples for zipformer, paraformer, and TeleSpeech-ASR CTC models.
@@ -0,0 +1,80 @@ | |||
// c-api-examples/paraformer-c-api.c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please follow
sherpa-onnx/c-api-examples/CMakeLists.txt
Lines 24 to 31 in 9f06b05
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, please update
https://github.com/k2-fsa/sherpa-onnx/blob/master/.github/workflows/c-api.yaml
to test the added files.
There was a problem hiding this 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Zipformer config | |
// Paraformer config |
Thank you for your contribution! |
C API examples for zipformer, paraformer, and TeleSpeech-ASR CTC models.