Add a C++ example to show streaming VAD + non-streaming ASR. (#420)

This commit is contained in:
Fangjun Kuang
2023-11-11 22:54:27 +08:00
committed by GitHub
parent 3c1ea990b1
commit 68f0e59688
5 changed files with 208 additions and 1 deletions

View File

@@ -102,7 +102,7 @@ wget https://github.com/snakers4/silero-vad/raw/master/files/silero_vad.onnx
0, // frames per buffer
paClipOff, // we won't output out of range samples
// so don't bother clipping them
RecordCallback, &config.silero_vad.window_size);
RecordCallback, nullptr);
if (err != paNoError) {
fprintf(stderr, "portaudio error: %s\n", Pa_GetErrorText(err));
exit(EXIT_FAILURE);