WebAssembly example for VAD + Non-streaming ASR (#1284)
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include "sherpa-onnx/csrc/audio-tagging.h"
|
||||
#include "sherpa-onnx/csrc/circular-buffer.h"
|
||||
#include "sherpa-onnx/csrc/display.h"
|
||||
#include "sherpa-onnx/csrc/file-utils.h"
|
||||
#include "sherpa-onnx/csrc/keyword-spotter.h"
|
||||
#include "sherpa-onnx/csrc/macros.h"
|
||||
#include "sherpa-onnx/csrc/offline-punctuation.h"
|
||||
@@ -1638,3 +1639,7 @@ int32_t SherpaOnnxLinearResamplerResampleGetOutputSampleRate(
|
||||
void SherpaOnnxLinearResamplerReset(SherpaOnnxLinearResampler *p) {
|
||||
p->impl->Reset();
|
||||
}
|
||||
|
||||
int32_t SherpaOnnxFileExists(const char *filename) {
|
||||
return sherpa_onnx::FileExists(filename);
|
||||
}
|
||||
|
||||
@@ -1361,6 +1361,9 @@ SHERPA_ONNX_API int32_t SherpaOnnxLinearResamplerResampleGetInputSampleRate(
|
||||
SHERPA_ONNX_API int32_t SherpaOnnxLinearResamplerResampleGetOutputSampleRate(
|
||||
const SherpaOnnxLinearResampler *p);
|
||||
|
||||
// Return 1 if the file exists; return 0 if the file does not exist.
|
||||
SHERPA_ONNX_API int32_t SherpaOnnxFileExists(const char *filename);
|
||||
|
||||
#if defined(__GNUC__)
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user