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

@@ -717,4 +717,10 @@ int32_t LinearResampler::GetOutputSamplingRate() const {
return SherpaOnnxLinearResamplerResampleGetOutputSampleRate(p_);
}
std::string GetVersionStr() { return SherpaOnnxGetVersionStr(); }
std::string GetGitSha1() { return SherpaOnnxGetGitSha1(); }
std::string GetGitDate() { return SherpaOnnxGetGitDate(); }
} // namespace sherpa_onnx::cxx