Update README.md
Browse files
README.md
CHANGED
@@ -49,9 +49,9 @@ For the results check the [article (Soon)]()
|
|
49 |
|
50 |
|
51 |
```python
|
52 |
-
dataset = load_dataset("common_voice", "
|
53 |
|
54 |
-
resampler = torchaudio.transforms.
|
55 |
|
56 |
def map_to_array(batch):
|
57 |
speech, _ = torchaudio.load(batch["path"])
|
|
|
49 |
|
50 |
|
51 |
```python
|
52 |
+
dataset = load_dataset("common_voice", "ru", split="test", data_dir="./cv-corpus-7.0-2021-07-21")
|
53 |
|
54 |
+
resampler = torchaudio.transforms.Resampl(orig_freq=48_000, new_freq=16_000)
|
55 |
|
56 |
def map_to_array(batch):
|
57 |
speech, _ = torchaudio.load(batch["path"])
|