tests: add check for nullptr for wctx in test-vad-full (#3998)
* added check for nullptr for wctx Signed-off-by: GodRishUniverse <risagarw@amd.com> * Apply the update for failed message in tests/test-vad-full.cpp Co-authored-by: Daniel Bevenius <daniel.bevenius@gmail.com> --------- Signed-off-by: GodRishUniverse <risagarw@amd.com> Co-authored-by: Daniel Bevenius <daniel.bevenius@gmail.com>
This commit is contained in:
parent
a4ad15f302
commit
ec737355d2
|
|
@ -27,6 +27,11 @@ int main() {
|
|||
whisper_model_path.c_str(),
|
||||
cparams);
|
||||
|
||||
if (!wctx) {
|
||||
fprintf(stderr, "failed to load model '%s'\n", whisper_model_path.c_str());
|
||||
return 1;
|
||||
}
|
||||
|
||||
struct whisper_full_params wparams = whisper_full_default_params(WHISPER_SAMPLING_BEAM_SEARCH);
|
||||
wparams.vad = true;
|
||||
wparams.vad_model_path = vad_model_path.c_str();
|
||||
|
|
|
|||
Loading…
Reference in New Issue