GitAritron commited on
Commit
ea0cb14
·
unverified ·
1 Parent(s): 123e4f2

whisper : fix typos in whisper.h (#737)

Browse files

Fixed a couple of typos (in comments, so nothing major). Keep up the great work 😄

Files changed (1) hide show
  1. whisper.h +2 -2
whisper.h CHANGED
@@ -226,7 +226,7 @@ extern "C" {
226
  // Make sure to call whisper_pcm_to_mel() or whisper_set_mel() first
227
  // Returns the top language id or negative on failure
228
  // If not null, fills the lang_probs array with the probabilities of all languages
229
- // The array must be whispe_lang_max_id() + 1 in size
230
  // ref: https://github.com/openai/whisper/blob/main/whisper/decoding.py#L18-L69
231
  WHISPER_API int whisper_lang_auto_detect(
232
  struct whisper_context * ctx,
@@ -297,7 +297,7 @@ extern "C" {
297
 
298
  // Available sampling strategies
299
  enum whisper_sampling_strategy {
300
- WHISPER_SAMPLING_GREEDY, // similar to OpenAI's GreefyDecoder
301
  WHISPER_SAMPLING_BEAM_SEARCH, // similar to OpenAI's BeamSearchDecoder
302
  };
303
 
 
226
  // Make sure to call whisper_pcm_to_mel() or whisper_set_mel() first
227
  // Returns the top language id or negative on failure
228
  // If not null, fills the lang_probs array with the probabilities of all languages
229
+ // The array must be whisper_lang_max_id() + 1 in size
230
  // ref: https://github.com/openai/whisper/blob/main/whisper/decoding.py#L18-L69
231
  WHISPER_API int whisper_lang_auto_detect(
232
  struct whisper_context * ctx,
 
297
 
298
  // Available sampling strategies
299
  enum whisper_sampling_strategy {
300
+ WHISPER_SAMPLING_GREEDY, // similar to OpenAI's GreedyDecoder
301
  WHISPER_SAMPLING_BEAM_SEARCH, // similar to OpenAI's BeamSearchDecoder
302
  };
303