This commit is contained in:
Glen Chung 2026-04-20 03:03:35 -07:00 committed by GitHub
commit 990bf6dcdb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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);