-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Error While Running transcription = stt.transcribe("audio.wav") #36
Comments
@nayeem01 Can you reproduce the error? If so, how? |
@shhossain Whenever I try to run normally, it fails. |
Same issue as @nayeem01 Repro: => New python project (venv with Python 3.10.11)
The error message directed here: huggingface/transformers#21878 (comment) Full Traceback: Traceback (most recent call last): |
@nayeem01 @aaqif-elo Apologies for the delay; I've been busy. I’ll look into the issue and get it fixed today. |
@nayeem01 @aaqif-elo update to latest version and check if problem presists. pip install BanglaSpeech2Text==1.0.9 |
Unfortunately, the issue seems to still be there. I have updated to v1.0.9 and I can see the config added to speech2text.py # set generation config
generation_config_model = get_generation_model(self.raw_name)
try:
gen_config = transformers.GenerationConfig.from_pretrained(
generation_config_model
)
self.pipeline.model.generation_config = gen_config
except Exception as e:
pass But I'm still getting the error
|
@aaqif-elo which model you are using? |
stt = Speech2Text() I did not define a model so I am assuming it defaults to model: str = "base", |
Hello, |
ValueError: You are trying to return timestamps, but the generation config is not properly set. Make sure to initialize the generation config with the correct attributes that are needed such as
no_timestamps_token_id
. For more details on how to generate the approtiate configThe text was updated successfully, but these errors were encountered: