mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-04 05:10:06 +06:00
parent
7d93f93f83
commit
9644acb7cb
@ -106,6 +106,8 @@ dataset[0]["text"]
|
|||||||
Remember to resample the sampling rate to match the pretrained models required sampling rate.
|
Remember to resample the sampling rate to match the pretrained models required sampling rate.
|
||||||
|
|
||||||
```py
|
```py
|
||||||
|
from datasets import Audio
|
||||||
|
|
||||||
dataset = dataset.cast_column("audio", Audio(sampling_rate=16000))
|
dataset = dataset.cast_column("audio", Audio(sampling_rate=16000))
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user