Update LibWhisper.swift

This commit is contained in:
Prakash Joshi Pax 2025-03-06 18:50:42 +05:45 committed by GitHub
parent ef9f076360
commit e1d9be4261
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -79,6 +79,10 @@ actor WhisperContext {
params.offset_ms = 0
params.no_context = true
params.single_segment = false
// Adjusted parameters to reduce hallucination
params.suppress_blank = true // Keep suppressing blank outputs
params.suppress_nst = true // Additional suppression of non-speech tokens
whisper_reset_timings(context)
print("About to run whisper_full")