MahmoudAshraf97 / whisper-diarization

Automatic Speech Recognition with Speaker Diarization based on OpenAI Whisper
BSD 2-Clause "Simplified" License
3.28k stars 272 forks source link

ValueError: No default align-model for language: tl #46

Closed JrenzP closed 1 year ago

JrenzP commented 1 year ago

ValueError Traceback (most recent call last) in <cell line: 10>() 8 9 device = "cuda" ---> 10 alignment_model, metadata = whisperx.load_align_model( 11 language_code=whisper_results["language"], device=device 12 )

/usr/local/lib/python3.10/dist-packages/whisperx/alignment.py in load_align_model(language_code, device, model_name) 51 print(f"There is no default alignment model set for this language ({language_code}).\ 52 Please find a wav2vec2.0 model finetuned on this language in https://huggingface.co/models, then pass the model name in --align_model [MODEL_NAME]") ---> 53 raise ValueError(f"No default align-model for language: {language_code}") 54 55 if model_name in torchaudio.pipelines.all:

ValueError: No default align-model for language: tl

MahmoudAshraf97 commented 1 year ago

This was solved in a previous update, please use the most recent version of the code

JrenzP commented 1 year ago

This was solved in a previous update, please use the most recent version of the code

Thanks @MahmoudAshraf97 , that error comes from the Colaboratory platform. I haven't installed the AI on my local environment though.