abdeladim-s / pywhispercpp

Python bindings for whisper.cpp
https://abdeladim-s.github.io/pywhispercpp/
MIT License
163 stars 23 forks source link

The model quits with no errors without transcribing anything #69

Open gaetaninofresh opened 1 week ago

gaetaninofresh commented 1 week ago

I've tried to run the model and after it giving output on the first run now it just ends without trancribing: image

My code:

from pywhispercpp.model import Model, utils

model = Model(
    model="medium", 
    language="it",
    params_sampling_strategy=0,
    print_realtime = True,
    translate = False
)

segments = model.transcribe('test.mp3')
utils.output_txt(segments=segments, output_file_path='out.txt')
gaetaninofresh commented 1 week ago

Removing language='it' makes it work but it translates it to english even with translate = False, can't figure out why, will update if I find how to make this work

PiotrCzapla commented 1 week ago

It might be related to #68. It segfaults when the language is being set to None. It should be fixed in https://github.com/abdeladim-s/pywhispercpp/pull/70

abdeladim-s commented 1 week ago

@gaetaninofresh, I could'nt replicate the issue! I tested with a sample audio in Italian and It seems to be working! If you figured it out let us know.