datasets
Let soundfile directly read local audio files
#7278
Open

Let soundfile directly read local audio files #7278

fawazahmed0 wants to merge 2 commits into huggingface:main from fawazahmed0:patch-1
fawazahmed0
fawazahmed0225 days ago (edited 225 days ago)
fawazahmed0 Update audio.py
c3cbb066
fawazahmed0 make sure path is not none
efdc2115
akx
akx commented on 2024-11-18
src/datasets/features/audio.py
166166 "Decoding 'mp3' files requires system library 'libsndfile'>=1.1.0, "
167167 'You can try to update `soundfile` python library: `pip install "soundfile>=0.12.1"`. '
168168 )
169
170 if file is None:
169
if path is not None and os.path.exists(path):
akx211 days ago

os.path.exists() returns true if path is a directory, mind.

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone