]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
minor : close #370 + Makefile build info print change
authorGeorgi Gerganov <redacted>
Thu, 5 Jan 2023 19:35:04 +0000 (21:35 +0200)
committerGeorgi Gerganov <redacted>
Thu, 5 Jan 2023 19:35:45 +0000 (21:35 +0200)
Makefile
examples/main/main.cpp

index 4ff898c8a9a22d5129974756a18cff01c1746060..0fc17689ded7bdda788e2c6c4a5c2604cdfd4c7b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -155,8 +155,8 @@ $(info I UNAME_M:  $(UNAME_M))
 $(info I CFLAGS:   $(CFLAGS))
 $(info I CXXFLAGS: $(CXXFLAGS))
 $(info I LDFLAGS:  $(LDFLAGS))
-$(info I CC:       $(CC) $(CCV))
-$(info I CXX:      $(CXX) $(CXXV))
+$(info I CC:       $(CCV))
+$(info I CXX:      $(CXXV))
 $(info )
 
 default: main
index ce8b484df30f041f447571dcea5afea3777f5ea3..9310894752ffbc6d4a904f13cf7ecca563aa945c 100644 (file)
@@ -557,7 +557,7 @@ int main(int argc, char ** argv) {
             }
 
             if (wav.sampleRate != WHISPER_SAMPLE_RATE) {
-                fprintf(stderr, "%s: WAV file '%s' must be 16 kHz\n", argv[0], fname_inp.c_str());
+                fprintf(stderr, "%s: WAV file '%s' must be %i kHz\n", argv[0], fname_inp.c_str(), WHISPER_SAMPLE_RATE/1000);
                 return 8;
             }