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.
-
speech-enhancement-gtcrn-c-api.c This file shows how to use the C API for speech enhancement with GTCRN models.
-
speech-enhancement-dpdfnet-c-api.c This file shows how to use the C API for speech enhancement with DPDFNet models. Use 16 kHz DPDFNet models such as
dpdfnet_baseline.onnx,dpdfnet2.onnx,dpdfnet4.onnx, ordpdfnet8.onnxfor downstream ASR anddpdfnet2_48khz_hr.onnxfor 48 kHz enhancement output. -
online-speech-enhancement-gtcrn-c-api.c This file shows how to use the C API for online speech enhancement with GTCRN models.
-
online-speech-enhancement-dpdfnet-c-api.c This file shows how to use the C API for online speech enhancement with DPDFNet models. Use
dpdfnet_baseline.onnx,dpdfnet2.onnx,dpdfnet4.onnx, ordpdfnet8.onnxfor 16 kHz output. -
speech-enhancement-voxlock-c-api.c This file shows how to use the C API for target-speaker voice isolation with VoxLock.
-
speech-enhancement-voxlock-with-voice-sample-c-api.c This file shows how to use the C API for VoxLock with a voice sample of the speaker to keep.
-
online-speech-enhancement-voxlock-c-api.c This file shows how to use the C API for online target-speaker voice isolation with VoxLock.
-
online-speech-enhancement-voxlock-with-voice-sample-c-api.c This file shows how to use the C API for online VoxLock with a voice sample.