diff --git a/tests/test-vad-full.cpp b/tests/test-vad-full.cpp index 8295b06d..6a5812d5 100644 --- a/tests/test-vad-full.cpp +++ b/tests/test-vad-full.cpp @@ -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(pcmf32.size()), 1) == 0); const int n_segments = whisper_full_n_segments(wctx); assert(n_segments == 1); diff --git a/tests/test-vad.cpp b/tests/test-vad.cpp index 0003ae3a..78e150b1 100644 --- a/tests/test-vad.cpp +++ b/tests/test-vad.cpp @@ -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(pcmf32.size())); // Test speech timestamps (uses speech probabilities from above) struct whisper_vad_segments * timestamps = test_detect_timestamps(vctx, params);