add python tests (#111)
This commit is contained in:
@@ -18,8 +18,8 @@ namespace sherpa_onnx {
|
||||
|
||||
void FeatureExtractorConfig::Register(ParseOptions *po) {
|
||||
po->Register("sample-rate", &sampling_rate,
|
||||
"Sampling rate of the input waveform. Must match the one "
|
||||
"expected by the model. Note: You can have a different "
|
||||
"Sampling rate of the input waveform. "
|
||||
"Note: You can have a different "
|
||||
"sample rate for the input waveform. We will do resampling "
|
||||
"inside the feature extractor");
|
||||
|
||||
|
||||
@@ -17,8 +17,8 @@ namespace sherpa_onnx {
|
||||
|
||||
void OfflineFeatureExtractorConfig::Register(ParseOptions *po) {
|
||||
po->Register("sample-rate", &sampling_rate,
|
||||
"Sampling rate of the input waveform. Must match the one "
|
||||
"expected by the model. Note: You can have a different "
|
||||
"Sampling rate of the input waveform. "
|
||||
"Note: You can have a different "
|
||||
"sample rate for the input waveform. We will do resampling "
|
||||
"inside the feature extractor");
|
||||
|
||||
|
||||
@@ -65,6 +65,7 @@ int32_t main(int32_t argc, char *argv[]) {
|
||||
po.Register("port", &port, "The port on which the server will listen.");
|
||||
|
||||
config.Register(&po);
|
||||
po.DisableOption("sample-rate");
|
||||
|
||||
if (argc == 1) {
|
||||
po.PrintUsage();
|
||||
|
||||
Reference in New Issue
Block a user