Add API to get version information (#2309)

This commit is contained in:
Fangjun Kuang
2025-06-25 00:22:21 +08:00
committed by GitHub
parent 7f2145539d
commit bda427f4b2
169 changed files with 1480 additions and 12 deletions

View File

@@ -8,3 +8,4 @@ paraformer_itn
sense_voice
telespeech_ctc
moonshine
dolphin_ctc

View File

@@ -62,6 +62,9 @@ begin
Duration := Length(Wave.Samples) / Wave.SampleRate;
RealTimeFactor := Elapsed / Duration;
WriteLn(Format('sherpa-onnx version: %s', [SherpaOnnxGetVersionStr()]));
WriteLn(Format('sherpa-onnx gitSha1: %s', [SherpaOnnxGetGitSha1()]));
WriteLn(Format('sherpa-onnx gitDate: %s', [SherpaOnnxGetGitDate()]));
WriteLn(RecognitionResult.ToString);
WriteLn(Format('NumThreads %d', [Config.ModelConfig.NumThreads]));
WriteLn(Format('Elapsed %.3f s', [Elapsed]));