This repository has been archived on 2025-08-26. You can view files and clone it, but cannot push or open issues or pull requests.
Files
enginex-mr_series-sherpa-onnx/c-api-examples
niansa/tuxifan 9d23606ee6 Allow building repository as CMake subdirectory (#2059)
* Use PROJECT_SOURCE_DIR rather than CMAKE_SOURCE_DIR to allow building as subdirectory

* Also use PROJECT_SOURCE_DIR instead of CMAKE_SOURCE_DIR in c/cxx api examples

* Only build examples by default when not building as subdirectory

* Do not suggest building binaries either

---------

Co-authored-by: user <user@mail.tld>
2025-03-29 06:27:59 +08:00
..
2023-10-19 17:38:23 +08:00

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.