Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -662,12 +662,28 @@ The `datasets` library allows you to load and pre-process your dataset in pure
|
|
| 662 |
Python, at scale.
|
| 663 |
|
| 664 |
First, ensure you have the necessary dependencies installed to handle audio
|
| 665 |
-
data
|
| 666 |
|
|
|
|
| 667 |
```bash
|
|
|
|
| 668 |
pip install datasets[audio]
|
| 669 |
```
|
| 670 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 671 |
**Loading ASR Data**
|
| 672 |
|
| 673 |
To load ASR data for a specific language, specify the configuration name, e.g.
|
|
|
|
| 662 |
Python, at scale.
|
| 663 |
|
| 664 |
First, ensure you have the necessary dependencies installed to handle audio
|
| 665 |
+
data. You will need `ffmpeg` installed on your system.
|
| 666 |
|
| 667 |
+
**Google Colab / Ubuntu**
|
| 668 |
```bash
|
| 669 |
+
sudo apt-get install ffmpeg
|
| 670 |
pip install datasets[audio]
|
| 671 |
```
|
| 672 |
|
| 673 |
+
**macOS**
|
| 674 |
+
```bash
|
| 675 |
+
brew install ffmpeg
|
| 676 |
+
pip install datasets[audio]
|
| 677 |
+
```
|
| 678 |
+
|
| 679 |
+
**Windows**
|
| 680 |
+
Download and install from [ffmpeg.org](https://ffmpeg.org/download.html) and ensure it's in your PATH.
|
| 681 |
+
```bash
|
| 682 |
+
pip install datasets[audio]
|
| 683 |
+
```
|
| 684 |
+
|
| 685 |
+
If you encounter `RuntimeError: Could not load libtorchcodec`, please ensure `ffmpeg` is correctly installed or check for compatibility between your `torch`, `torchaudio`, and `torchcodec` versions.
|
| 686 |
+
|
| 687 |
**Loading ASR Data**
|
| 688 |
|
| 689 |
To load ASR data for a specific language, specify the configuration name, e.g.
|