fairseq icon indicating copy to clipboard operation
fairseq copied to clipboard

[Wav2Vec2-XLSR-53]Problems about the pretrained model

Open scutcsq opened this issue 1 year ago • 1 comments

Hi, when I tried to use wav2vec2.0 using transformers following the under lines under the Linux system:

from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor #load pretrained model processor = Wav2Vec2Processor.from_pretrained("facebook/wav2vec2-xlsr-53-espeak-cv-ft") model = Wav2Vec2ForCTC.from_pretrained("facebook/wav2vec2-xlsr-53-espeak-cv-ft")

I met the problem: "Espeak not installed on your system".

scutcsq avatar Jan 09 '24 11:01 scutcsq

For me the following worked on Mac:

  1. Install espeak or espeak-ng.
  2. Use environment variable PHONEMIZER_ESPEAK_LIBRARY pointing to the dylib (or perhaps DLL on Windows) when you run your python code: export PHONEMIZER_ESPEAK_LIBRARY=/opt/local/lib/libespeak-ng.dylib

kgoba avatar Feb 08 '24 07:02 kgoba