Add microphone support for offline recognizer (#104)

This commit is contained in:
Fangjun Kuang
2023-03-30 19:43:05 +08:00
committed by GitHub
parent 6707ec4124
commit b911915a32
3 changed files with 229 additions and 1 deletions

View File

@@ -66,6 +66,7 @@ for a list of pre-trained models to download.
return -1;
}
fprintf(stderr, "Creating recognizer ...\n");
sherpa_onnx::OfflineRecognizer recognizer(config);
auto begin = std::chrono::steady_clock::now();