Skip to content

Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for building delightful search experiences

Suppress non-speech tokens for whisper (#1743)

Ozan Armağan85a5e244dacf
diff --git a/src/aq_model.cpp b/src/aq_model.cpp
index feac6791..58798d58 100644
--- a/src/aq_model.cpp
+++ b/src/aq_model.cpp
@@ -17,6 +17,8 @@ WhisperModel::WhisperModel(whisper_context* ctx, const std::string& model_name)
params.language = "auto";
params.detect_language = true;
}
+
+ params.suppress_non_speech_tokens = true;
}
WhisperModel::~WhisperModel() {