Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The model quits with no errors without transcribing anything #69

Open
gaetaninofresh opened this issue Oct 9, 2024 · 3 comments
Open

Comments

@gaetaninofresh
Copy link

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
Copy link
Author

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
Copy link
Contributor

PiotrCzapla commented Oct 9, 2024

It might be related to #68. It segfaults when the language is being set to None. It should be fixed in #70

@abdeladim-s
Copy link
Owner

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants