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

Download хийж байгаа хэсэгт librosa-г soundfile-аар солих #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bayartsogt-ya
Copy link

Context

Шууд clone хийж аваад дата-г нь татахад disk рүү бичдэг хэсэг дээрээ алдаа гарч байхаар нь засчихлаа. Та зөв эсэхийг нь хараад өгөх үү?

Error

extracting '/content/mongolian-speech-recognition/datasets/./MBSpeech-1.0-csv.zip'...
processing /content/mongolian-speech-recognition/datasets/./MBSpeech-1.0-csv/01_Genesis_01.csv...
processing /content/mongolian-speech-recognition/datasets/./01_Genesis/01. The Mongolian AB Bible - Genesis 01 - DPI.mp3...
/usr/local/lib/python3.7/dist-packages/librosa/core/audio.py:162: UserWarning: PySoundFile failed. Trying audioread instead.
  warnings.warn("PySoundFile failed. Trying audioread instead.")
Traceback (most recent call last):
  File "dl_mbspeech.py", line 120, in <module>
    _convert_mp3_to_wav('01_Genesis', 1)
  File "dl_mbspeech.py", line 113, in _convert_mp3_to_wav
    librosa.output.write_wav(os.path.join(wavs_path, fn + ".wav"), wav, target_sample_rate)
AttributeError: module 'librosa' has no attribute 'output'

Reproduce error

git clone https://github.com/tugstugi/mongolian-speech-recognition.git
cd mongolian-speech-recognition/datasets
python3 dl_mbspeech.py

Alternatives

  • librosa version-г бууруулахад өөр module not found алдаанууд гарж байсан.

References

because `librosa.output.write_wav` is depricated after v0.8
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

Successfully merging this pull request may close these issues.

1 participant