TASK-001: Fix C4267 type conversion warnings in VAD tests

This commit is contained in:
Glen Chung 2025-12-11 13:21:55 -08:00
parent 9f5ed26e43
commit 912fa8944e
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ int main() {
wparams.vad_params.max_speech_duration_s = FLT_MAX;
wparams.vad_params.speech_pad_ms = 30;
assert(whisper_full_parallel(wctx, wparams, pcmf32.data(), pcmf32.size(), 1) == 0);
assert(whisper_full_parallel(wctx, wparams, pcmf32.data(), static_cast<int>(pcmf32.size()), 1) == 0);
const int n_segments = whisper_full_n_segments(wctx);
assert(n_segments == 1);

View File

@ -71,7 +71,7 @@ int main() {
assert_default_params(params);
// Test speech probabilites
test_detect_speech(vctx, params, pcmf32.data(), pcmf32.size());
test_detect_speech(vctx, params, pcmf32.data(), static_cast<int>(pcmf32.size()));
// Test speech timestamps (uses speech probabilities from above)
struct whisper_vad_segments * timestamps = test_detect_timestamps(vctx, params);