fastaudio / fastai_audio

[DEPRECATED] 🔊️ Audio with fastaiv1
MIT License
160 stars 49 forks source link

AttributeError: 'str' object has no attribute 'name' when creating AudioList from csv during resampling #47

Closed tbass134 closed 4 years ago

tbass134 commented 4 years ago

When using AudioList.from_df, it seems that the item_path is an instance of a string, rather than a PosixPath, when remove_silence is enabled.

This error does not occur when creating a AudioList using AudioList.from_folder whenremove_silence` is enabled

This fix adds a instancetype check to covert the item that is passed in to be a PosixPath