whisper : support no_speech_thold (#2625)

* Implement no_speech_thold

no_speech_thold functionality is on par with OpenAI's whisper

* Addressed review comments
This commit is contained in:
Karthick
2024-12-17 22:45:47 +05:30
committed by GitHub
parent 2f2841bfce
commit f897eb7670
2 changed files with 61 additions and 33 deletions

View File

@@ -534,7 +534,7 @@ extern "C" {
float temperature_inc;
float entropy_thold; // similar to OpenAI's "compression_ratio_threshold"
float logprob_thold;
float no_speech_thold; // TODO: not implemented
float no_speech_thold;
struct {
int best_of; // ref: https://github.com/openai/whisper/blob/f82bc59f5ea234d4b97fb2860842ed38519f7e65/whisper/transcribe.py#L264