When `-D BUILD_SHARED_LIBS=ON` is passed to `cmake`, it builds a single shared library. Specifically, - For C APIs, it builds `libsherpa-onnx-c-api.so` - For Python APIs, it builds `_sherpa_onnx.cpython-xx-xx.so` - For Kotlin and Java APIs, it builds `libsherpa-onnx-jni.so` There is no `libsherpa-onnx-core.so` any longer. Note it affects only shared libraries.
Introduction
This folder contains C API examples for sherpa-onnx.
Please refer to the documentation https://k2-fsa.github.io/sherpa/onnx/c-api/index.html for details.
File descriptions
-
decode-file-c-api.c This file shows how to use the C API for speech recognition with a streaming model.
-
offline-tts-c-api.c This file shows how to use the C API to convert text to speech with a non-streaming model.