You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
model=w.Whisper.from_pretrained("tiny")
params=model.params.with_max_segment_length(1).build()
samples= [] # np.array of samples from pydubmodel.context.full(params, samples)
forsinrange(model.context.full_n_segments()):
print(model.context.full_get_segment_text(s))
I would expect the output to be individual segments, but instead I just get normal sentences.
It doesn't seem like with_max_segment_length makes any difference.
I may be misunderstanding some things - my main goal is to just get word-level timestamps by outputting individual words.
To reproduce
No response
Expected behavior
No response
Environment
python: 3.11
platform: MacOS 13.3
The text was updated successfully, but these errors were encountered:
Describe the bug
Given this code:
I would expect the output to be individual segments, but instead I just get normal sentences.
It doesn't seem like
with_max_segment_length
makes any difference.I may be misunderstanding some things - my main goal is to just get word-level timestamps by outputting individual words.
To reproduce
No response
Expected behavior
No response
Environment
python: 3.11
platform: MacOS 13.3
The text was updated successfully, but these errors were encountered: