-
Notifications
You must be signed in to change notification settings - Fork 52
Closed
Description
I can’t get pywhispercpp installed via pip (v1.3.0) to respect max_len.
Simple code:
from pywhispercpp.model import Model
model = Model("base.en")
segments = model.transcribe("./samples/jfk.wav", max_len=1)
for segment in segments:
print(segment.text)
Returns:
And so my fellow Americans, ask not what your country can do for you.
Ask what you can do for your country.
Whereas whispercpp installed via brew (v1.7.4), using the same model:
whisper-cli --max-len 1 -otxt -m ~/Library/Application\ Support/pywhispercpp/models/ggml-base.en.bin ./samples/jfk.wav
Returns:
And
so
my
fellow
Americans
,
ask
not
Environment: Python 3.12.9
Any ideas?
Thanks a lot :)
Metadata
Metadata
Assignees
Labels
No labels