whisper.cpp/examples
Davidson Francis c56344b509
main : fix file existence check in main.cpp (#1889)
In commit dda4b0e of PR #1872, I've introduced a check for the
existence of files before loading the model. However, I haven't
considered the case where whisper.cpp might read from stdin as well,
and in such cases, the checks should ignore the "-" argument as it
does not represent a regular file.

Additionally, this commit removes the usage of 'stat()' in favor of
the recently introduced function 'is_file_exist()' in common.cpp from
PR #1871.

Apologies for the bug introduced in the previous PR and any
inconvenience it may have caused.
2024-02-22 15:01:08 +02:00
..
addon.node examples : clean up common code (#1871) 2024-02-19 10:50:15 +02:00
bench examples : initialize context params properly (#1852) 2024-02-11 16:39:12 +02:00
bench.wasm whisper : add support for large v3 (#1444) 2023-11-07 15:30:18 +02:00
command examples : clean up common code (#1871) 2024-02-19 10:50:15 +02:00
command.wasm whisper : add context param to disable gpu (#1293) 2023-11-06 11:04:24 +02:00
lsp examples : clean up common code (#1871) 2024-02-19 10:50:15 +02:00
main main : fix file existence check in main.cpp (#1889) 2024-02-22 15:01:08 +02:00
python examples : add python example for transcription (#1744) 2024-01-13 19:37:18 +02:00
quantize quantize : fix load vocab crash when len is 128 (#1160) 2023-08-06 11:04:42 +03:00
server examples : clean up common code (#1871) 2024-02-19 10:50:15 +02:00
stream examples : clean up common code (#1871) 2024-02-19 10:50:15 +02:00
stream.wasm whisper : add context param to disable gpu (#1293) 2023-11-06 11:04:24 +02:00
talk examples : initialize context params properly (#1852) 2024-02-11 16:39:12 +02:00
talk-llama talk-llama : sync llama.cpp 2024-02-20 12:09:57 +02:00
talk.wasm examples : clean up common code (#1871) 2024-02-19 10:50:15 +02:00
wchess examples : initialize context params properly (#1852) 2024-02-11 16:39:12 +02:00
whisper.android whisper.android : how to build with CLBlast (#1809) 2024-02-09 17:39:05 +02:00
whisper.android.java examples : add whisper.android.java for compatibility with older Android versions using Java (#1382) 2023-11-12 18:31:58 +02:00
whisper.nvim examples : vim plugin and LSP server (#1144) 2023-08-27 21:35:06 +03:00
whisper.objc docs : make model options / model install methods clearer (#1806) 2024-01-26 17:39:54 +02:00
whisper.swiftui whisper.swiftui : add .gitignore 2024-01-04 15:00:27 +02:00
whisper.wasm whisper : add context param to disable gpu (#1293) 2023-11-06 11:04:24 +02:00
CMakeLists.txt examples : clean up common code (#1871) 2024-02-19 10:50:15 +02:00
common-ggml.cpp common : add IQ1_S (ggml/0) 2024-02-19 15:53:25 +02:00
common-ggml.h whisper : add integer quantization support (#540) 2023-04-30 18:51:57 +03:00
common-sdl.cpp sdl : fix audio callback (#1523) 2023-11-20 13:16:38 +02:00
common-sdl.h sdl : fix audio callback (#1523) 2023-11-20 13:16:38 +02:00
common.cpp examples : clean up common code (#1871) 2024-02-19 10:50:15 +02:00
common.h examples : clean up common code (#1871) 2024-02-19 10:50:15 +02: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
grammar-parser.cpp whisper : add grammar-based sampling (#1229) 2023-11-13 10:51:34 +02:00
grammar-parser.h whisper : add grammar-based sampling (#1229) 2023-11-13 10:51:34 +02:00
helpers.js wchess : whisper assisted chess (#1595) 2023-12-14 15:58:26 +02:00
json.hpp examples : clean up common code (#1871) 2024-02-19 10:50:15 +02:00
livestream.sh whisper : make large version explicit + fix data size units (#1493) 2023-11-15 19:42:25 +02:00
twitch.sh whisper : make large version explicit + fix data size units (#1493) 2023-11-15 19:42:25 +02:00
yt-wsp.sh yt-wsp.sh : print help on empty args 2023-02-18 09:42:31 +02:00