Refactor Java API (#806)
This commit is contained in:
@@ -73,7 +73,7 @@ for a list of pre-trained models to download.
|
||||
const std::vector<float> samples =
|
||||
sherpa_onnx::ReadWave(wav_filename, &sampling_rate, &is_ok);
|
||||
if (!is_ok) {
|
||||
fprintf(stderr, "Failed to read %s\n", wav_filename.c_str());
|
||||
fprintf(stderr, "Failed to read '%s'\n", wav_filename.c_str());
|
||||
return -1;
|
||||
}
|
||||
float duration = samples.size() / static_cast<float>(sampling_rate);
|
||||
|
||||
Reference in New Issue
Block a user