whisper.cpp/examples
Przemysław Pawełczyk 3f7a03ebe3
ggml : do not use _GNU_SOURCE gratuitously (#1027)
* Do not use _GNU_SOURCE gratuitously.

What is needed to build whisper.cpp and examples is availability of
stuff defined in The Open Group Base Specifications Issue 6
(https://pubs.opengroup.org/onlinepubs/009695399/) known also as
Single Unix Specification v3 (SUSv3) or POSIX.1-2001 + XSI extensions.

There is no need to penalize musl libc which simply follows standards.

Not having feature test macros in source code gives greater flexibility
to those wanting to reuse it in 3rd party app, as they can build it with
minimal FTM (_XOPEN_SOURCE=600) or other FTM depending on their needs.

It builds without issues in Alpine (musl libc), Ubuntu (glibc), MSYS2.

* examples : include SDL headers before other headers

This is an attempt at fixing macOS build error coming from SDL2 relying
on Darwin extension memset_pattern4/8/16 coming from Apple's string.h.
2023-06-25 16:34:30 +03:00
..
addon.node whisper : add integer quantization support (#540) 2023-04-30 18:51:57 +03:00
bench bench : fix Windows linkage by moving ggml benches in whisper lib .. 2023-01-18 21:19:50 +02:00
bench.wasm whisper : add integer quantization support (#540) 2023-04-30 18:51:57 +03:00
command ggml : do not use _GNU_SOURCE gratuitously (#1027) 2023-06-25 16:34:30 +03:00
command.wasm examples : fix + refactor Levenshtein distance 2023-04-30 19:12:49 +03:00
main main : add diarization support for all current output types (#1031) 2023-06-25 15:07:57 +03:00
quantize ggml : sync latest ggml lib 2023-06-25 14:30:44 +03:00
stream ggml : do not use _GNU_SOURCE gratuitously (#1027) 2023-06-25 16:34:30 +03:00
stream.wasm whisper : add integer quantization support (#540) 2023-04-30 18:51:57 +03:00
talk ggml : do not use _GNU_SOURCE gratuitously (#1027) 2023-06-25 16:34:30 +03:00
talk-llama ggml : do not use _GNU_SOURCE gratuitously (#1027) 2023-06-25 16:34:30 +03:00
talk.wasm whisper : add integer quantization support (#540) 2023-04-30 18:51:57 +03:00
whisper.android whisper.android : support decode wav file has 2 channels (#972) 2023-05-31 10:13:14 +03:00
whisper.nvim models : cd statements are quoted to allow spaces in path (#1041) 2023-06-25 15:27:28 +03:00
whisper.objc whisper.objc : enable Core ML in example & fix segmentation fault (#910) 2023-05-14 09:47:02 +03:00
whisper.swiftui whisper.swiftui : update README.md (#682) 2023-03-29 23:04:38 +03:00
whisper.wasm whisper : add memory sizes for Q8_0 (close #846) 2023-05-01 10:03:56 +03:00
CMakeLists.txt whisper : add integer quantization support (#540) 2023-04-30 18:51:57 +03:00
common-ggml.cpp ggml : sync latest ggml lib 2023-06-25 14:30:44 +03:00
common-ggml.h whisper : add integer quantization support (#540) 2023-04-30 18:51:57 +03:00
common-sdl.cpp examples : refactor in order to reuse code and reduce duplication (#482) 2023-02-15 19:28:10 +02:00
common-sdl.h examples : refactor in order to reuse code and reduce duplication (#482) 2023-02-15 19:28:10 +02:00
common.cpp ggml : sync latest ggml lib 2023-06-25 14:30:44 +03:00
common.h ggml : sync latest ggml lib 2023-06-25 14:30:44 +03:00
dr_wav.h refactoring : move main + stream in examples + other stuff 2022-10-25 20:53:48 +03:00
generate-karaoke.sh minor : add comment for using "generate_karaoke.sh" 2022-11-26 10:22:42 +02:00
helpers.js whisper : add integer quantization support (#540) 2023-04-30 18:51:57 +03:00
livestream.sh livestream.sh : run main with model arg instead of default (#453) 2023-01-27 01:13:31 +02:00
twitch.sh twitch.sh : various fixes and polishing 2022-12-08 19:20:04 +02:00
yt-wsp.sh yt-wsp.sh : print help on empty args 2023-02-18 09:42:31 +02:00