Datasets:
Update README.md
Browse files
README.md
CHANGED
@@ -44,8 +44,9 @@ dataset = load_dataset("audioshake/jam-alt")["test"]
|
|
44 |
A subset is defined for each language (`en`, `fr`, `de`, `es`);
|
45 |
for example, use `load_dataset("audioshake/jam-alt", "es")` to load only the Spanish songs.
|
46 |
|
47 |
-
|
48 |
-
|
|
|
49 |
- `sampling_rate` and `mono=True` to control the sampling rate and number of channels.
|
50 |
- `decode_audio=False` to skip decoding the audio and just get the MP3 file paths.
|
51 |
|
@@ -61,7 +62,6 @@ dataset = load_dataset("audioshake/jam-alt", revision="v1.0.0")["test"]
|
|
61 |
compute_metrics(dataset["text"], transcriptions, languages=dataset["language"])
|
62 |
```
|
63 |
|
64 |
-
By default, the dataset includes the audio, allowing you to run transcription directly.
|
65 |
For example, the following code can be used to evaluate Whisper:
|
66 |
```python
|
67 |
dataset = load_dataset("audioshake/jam-alt", revision="v1.0.0")["test"]
|
|
|
44 |
A subset is defined for each language (`en`, `fr`, `de`, `es`);
|
45 |
for example, use `load_dataset("audioshake/jam-alt", "es")` to load only the Spanish songs.
|
46 |
|
47 |
+
By default, the dataset comes with audio. To skip loading the audio, use `with_audio=False`.
|
48 |
+
To control how the audio is decoded, cast the `audio` column using `dataset.cast_column("audio", datasets.Audio(...))`.
|
49 |
+
Useful arguments to `datasets.Audio()` are:
|
50 |
- `sampling_rate` and `mono=True` to control the sampling rate and number of channels.
|
51 |
- `decode_audio=False` to skip decoding the audio and just get the MP3 file paths.
|
52 |
|
|
|
62 |
compute_metrics(dataset["text"], transcriptions, languages=dataset["language"])
|
63 |
```
|
64 |
|
|
|
65 |
For example, the following code can be used to evaluate Whisper:
|
66 |
```python
|
67 |
dataset = load_dataset("audioshake/jam-alt", revision="v1.0.0")["test"]
|