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

No audio I/O backend is available #2

Open
StartHua opened this issue Jan 3, 2024 · 2 comments
Open

No audio I/O backend is available #2

StartHua opened this issue Jan 3, 2024 · 2 comments

Comments

@StartHua
Copy link

StartHua commented Jan 3, 2024

Some weights of the model checkpoint at jonatasgrosman/wav2vec2-large-xlsr-53-english were not used when initializing Wav2Vec2Model: ['lm_head.bias', 'lm_head.weight']

  • This IS expected if you are initializing Wav2Vec2Model from the checkpoint of a model trained on another task or with another architecture (e.g. initializing a BertForSequenceClassification model from a BertForPreTraining model).
  • This IS NOT expected if you are initializing Wav2Vec2Model from the checkpoint of a model that you expect to be exactly identical (initializing a BertForSequenceClassification model from a BertForSequenceClassification model).
    Traceback (most recent call last):
    File "inference_for_demo_video.py", line 178, in
    speech_array, sampling_rate = torchaudio.load(wav_16k_path)
    File "D:\python\Anaconda\envs\dreamtalk\lib\site-packages\torchaudio\backend\no_backend.py", line 20, in load
    raise RuntimeError('No audio I/O backend is available.')
    RuntimeError: No audio I/O backend is available.
@YifengMa9
Copy link
Collaborator

The code has been tested without issues on Ubuntu. Based on the error message you received, you might consider installing an audio I/O backend.

@zhanghongyong123456
Copy link

The code has been tested without issues on Ubuntu. Based on the error message you received, you might consider installing an audio I/O backend.

pip install soundfile (win)

pip install sox (linux)

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