Skip to content

Commit

Permalink
whisper : fix typos in whisper.h (ggerganov#737)
Browse files Browse the repository at this point in the history
Fixed a couple of typos (in comments, so nothing major). Keep up the great work πŸ˜„
  • Loading branch information
GitAritron authored Apr 14, 2023
1 parent 2c4ac26 commit b5639ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions whisper.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
};

Expand Down

0 comments on commit b5639ed

Please sign in to comment.