File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1
1
#include " whisper.h"
2
2
#include " common-whisper.h"
3
3
4
- #include < cassert>
5
4
#include < cstdio>
6
5
#include < cfloat>
7
6
#include < string>
8
7
#include < cstring>
9
8
9
+ #ifdef NDEBUG
10
+ #undef NDEBUG
11
+ #endif
12
+
13
+ #include < cassert>
14
+
10
15
int main () {
11
16
std::string whisper_model_path = " ../../models/ggml-base.en.bin" ;
12
17
std::string vad_model_path = " ../../models/for-tests-silero-v5.1.2-ggml.bin" ;
Original file line number Diff line number Diff line change 1
1
#include " whisper.h"
2
2
#include " common-whisper.h"
3
3
4
- #include < cassert>
5
4
#include < cstdio>
6
5
#include < string>
7
6
7
+ #ifdef NDEBUG
8
+ #undef NDEBUG
9
+ #endif
10
+ #include < cassert>
11
+
8
12
void assert_default_params (const struct whisper_vad_params & params) {
9
13
assert (params.threshold == 0.5 );
10
14
assert (params.min_speech_duration_ms == 250 );
You can’t perform that action at this time.
0 commit comments