]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
whisper : fix typos in whisper.h (#737)
authorGitAritron <redacted>
Fri, 14 Apr 2023 17:03:16 +0000 (20:03 +0300)
committerGitHub <redacted>
Fri, 14 Apr 2023 17:03:16 +0000 (20:03 +0300)
Fixed a couple of typos (in comments, so nothing major). Keep up the great work ðŸ˜„

whisper.h

index a96c96c927e2b31cdb624c4fdedb07719be88c59..24b12b0d8421f6170d0a45175290cf55864ab7ee 100644 (file)
--- a/whisper.h
+++ b/whisper.h
@@ -226,7 +226,7 @@ extern "C" {
     // Make sure to call whisper_pcm_to_mel() or whisper_set_mel() first
     // Returns the top language id or negative on failure
     // If not null, fills the lang_probs array with the probabilities of all languages
-    // The array must be whispe_lang_max_id() + 1 in size
+    // The array must be whisper_lang_max_id() + 1 in size
     // ref: https://github.com/openai/whisper/blob/main/whisper/decoding.py#L18-L69
     WHISPER_API int whisper_lang_auto_detect(
             struct whisper_context * ctx,
@@ -297,7 +297,7 @@ extern "C" {
 
     // Available sampling strategies
     enum whisper_sampling_strategy {
-        WHISPER_SAMPLING_GREEDY,      // similar to OpenAI's GreefyDecoder
+        WHISPER_SAMPLING_GREEDY,      // similar to OpenAI's GreedyDecoder
         WHISPER_SAMPLING_BEAM_SEARCH, // similar to OpenAI's BeamSearchDecoder
     };