Seems to freeze when loading audio dataset with wav files from local folder
NONE
I just tried to do the same but changing the `.wav` files to `.mp3` files and that doesn't fix it.
2022-11-10T10:45:29Z
https://github.com/huggingface/datasets/issues/5224#issuecomment-1310093673
https://api.github.com/repos/huggingface/datasets/issues/5224
IC_kwDODunzps5OFnFp
https://api.github.com/repos/huggingface/datasets/issues/comments/1310093673/reactions
2022-11-10T10:45:29Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1310093673
https://avatars.githubusercontent.com/u/45894267?v=4
https://api.github.com/users/uriii3/events{/privacy}
https://api.github.com/users/uriii3/followers
https://api.github.com/users/uriii3/following{/other_user}
https://api.github.com/users/uriii3/gists{/gist_id}
https://github.com/uriii3
uriii3
MDQ6VXNlcjQ1ODk0MjY3
https://api.github.com/users/uriii3/orgs
https://api.github.com/users/uriii3/received_events
https://api.github.com/users/uriii3/repos
https://api.github.com/users/uriii3/starred{/owner}{/repo}
https://api.github.com/users/uriii3/subscriptions
User
https://api.github.com/users/uriii3
public
NONE
I don't know if anyone will ever read this but I've tried to upload the same dataset with google colab and the output seems more clarifying. I didn't specify the train/test split so the dataset wasn't fully uploaded (or that is what I understood, might be wrong!!).

Now, including the `drop_metadata` flag I can load the dataset normally (at least with colab notebook):

```python
from datasets import load_dataset

dataset = load_dataset("audiofolder", data_dir="../archive/Dataset", , drop_metadata=True)
```

I'll close the issue.
2022-11-22T11:24:19Z
https://github.com/huggingface/datasets/issues/5224#issuecomment-1323519016
https://api.github.com/repos/huggingface/datasets/issues/5224
IC_kwDODunzps5O40wo
https://api.github.com/repos/huggingface/datasets/issues/comments/1323519016/reactions
2022-11-22T11:24:19Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1323519016
https://avatars.githubusercontent.com/u/45894267?v=4
https://api.github.com/users/uriii3/events{/privacy}
https://api.github.com/users/uriii3/followers
https://api.github.com/users/uriii3/following{/other_user}
https://api.github.com/users/uriii3/gists{/gist_id}
https://github.com/uriii3
uriii3
MDQ6VXNlcjQ1ODk0MjY3
https://api.github.com/users/uriii3/orgs
https://api.github.com/users/uriii3/received_events
https://api.github.com/users/uriii3/repos
https://api.github.com/users/uriii3/starred{/owner}{/repo}
https://api.github.com/users/uriii3/subscriptions
User
https://api.github.com/users/uriii3
public
NONE
@uriii3 Hello, I understand correctly that you converted your wav files to mp3?
2023-04-18T17:46:41Z
https://github.com/huggingface/datasets/issues/5224#issuecomment-1513570872
https://api.github.com/repos/huggingface/datasets/issues/5224
IC_kwDODunzps5aN0I4
https://api.github.com/repos/huggingface/datasets/issues/comments/1513570872/reactions
2023-04-18T17:46:41Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1513570872
https://avatars.githubusercontent.com/u/17560478?v=4
https://api.github.com/users/artyomboyko/events{/privacy}
https://api.github.com/users/artyomboyko/followers
https://api.github.com/users/artyomboyko/following{/other_user}
https://api.github.com/users/artyomboyko/gists{/gist_id}
https://github.com/artyomboyko
artyomboyko
MDQ6VXNlcjE3NTYwNDc4
https://api.github.com/users/artyomboyko/orgs
https://api.github.com/users/artyomboyko/received_events
https://api.github.com/users/artyomboyko/repos
https://api.github.com/users/artyomboyko/starred{/owner}{/repo}
https://api.github.com/users/artyomboyko/subscriptions
User
https://api.github.com/users/artyomboyko
public
NONE
Yes but it didn't matter. I don't remember which of them I ended up working with.
2023-04-25T09:54:04Z
https://github.com/huggingface/datasets/issues/5224#issuecomment-1521506451
https://api.github.com/repos/huggingface/datasets/issues/5224
IC_kwDODunzps5asFiT
https://api.github.com/repos/huggingface/datasets/issues/comments/1521506451/reactions
2023-04-25T09:54:04Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1521506451
https://avatars.githubusercontent.com/u/45894267?v=4
https://api.github.com/users/uriii3/events{/privacy}
https://api.github.com/users/uriii3/followers
https://api.github.com/users/uriii3/following{/other_user}
https://api.github.com/users/uriii3/gists{/gist_id}
https://github.com/uriii3
uriii3
MDQ6VXNlcjQ1ODk0MjY3
https://api.github.com/users/uriii3/orgs
https://api.github.com/users/uriii3/received_events
https://api.github.com/users/uriii3/repos
https://api.github.com/users/uriii3/starred{/owner}{/repo}
https://api.github.com/users/uriii3/subscriptions
User
https://api.github.com/users/uriii3
public
### Describe the bug

I'm following the instructions in [https://huggingface.co/docs/datasets/audio_load#audiofolder-with-metadata](url) to be able to load a dataset from a local folder.

I have everything into a folder, into a train folder and then the audios and csv. When I try to load the dataset and run from terminal, seems to work but then freezes with no apparent reason.

The metadata.csv file contains a few columns but the important ones, `file_name` with the filename and `transcription` with the transcription are okay.

The audios are `.wav` files, I don't know if that might be the problem (I will proceed to try to change them all to `.mp3` and try again).



### Steps to reproduce the bug

The code I'm using:
```python
from datasets import load_dataset

dataset = load_dataset("audiofolder", data_dir="../archive/Dataset")
dataset[0]["audio"]
```

The output I obtain:
```
Resolving data files: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 439/439 [00:00<00:00, 311135.43it/s]
Using custom data configuration default-38d4546ffd010f3e
Downloading and preparing dataset audiofolder/default to /Users/mine/.cache/huggingface/datasets/audiofolder/default-38d4546ffd010f3e/0.0.0/6cbdd16f8688354c63b4e2a36e1585d05de285023ee6443ffd71c4182055c0fc...
Resolving data files: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 439/439 [00:00<00:00, 166467.72it/s]
Using custom data configuration default-38d4546ffd010f3e
Resolving data files: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 439/439 [00:00<00:00, 187772.74it/s]
Using custom data configuration default-38d4546ffd010f3e
Resolving data files: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 439/439 [00:00<00:00, 59623.71it/s]
Resolving data files: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 439/439 [00:00<00:00, 138090.55it/s]
Resolving data files: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 439/439 [00:00<00:00, 106065.64it/s]
Resolving data files: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 439/439 [00:00<00:00, 56036.38it/s]
Resolving data files: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 439/439 [00:00<00:00, 74004.24it/s]
Resolving data files: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 439/439 [00:00<00:00, 162343.45it/s]
Resolving data files: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 439/439 [00:00<00:00, 101881.23it/s]
Using custom data configuration default-38d4546ffd010f3e
Resolving data files: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 439/439 [00:00<00:00, 60145.67it/s]
Resolving data files: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 439/439 [00:00<00:00, 80890.02it/s]
Resolving data files: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 439/439 [00:00<00:00, 54036.67it/s]
Resolving data files: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 439/439 [00:00<00:00, 95851.09it/s]
Resolving data files: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 439/439 [00:00<00:00, 155897.00it/s]
Resolving data files: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 439/439 [00:00<00:00, 137656.96it/s]
Resolving data files: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 439/439 [00:00<00:00, 131230.81it/s]
Using custom data configuration default-38d4546ffd010f3e
Using custom data configuration default-38d4546ffd010f3e
Using custom data configuration default-38d4546ffd010f3e
Using custom data configuration default-38d4546ffd010f3e
Using custom data configuration default-38d4546ffd010f3e
Using custom data configuration default-38d4546ffd010f3e
Using custom data configuration default-38d4546ffd010f3e
Using custom data configuration default-38d4546ffd010f3e
Using custom data configuration default-38d4546ffd010f3e
Using custom data configuration default-38d4546ffd010f3e
Using custom data configuration default-38d4546ffd010f3e
Using custom data configuration default-38d4546ffd010f3e
Using custom data configuration default-38d4546ffd010f3e
```
And then here it just freezes and nothing more happens.



### Expected behavior

Load the dataset.

### Environment info

Datasets version:
datasets                  2.6.1                    pypi_0    pypi
