Datasets:
Yehor Smoliakov
commited on
Commit
•
3efa218
1
Parent(s):
da72346
Sync
Browse files- .gitignore +1 -0
- README.md +12 -1
- add_audio_field.py +15 -0
- requirements-dev.txt +1 -0
- requirements.txt +5 -0
- train.jsonl +0 -0
- train.parquet +3 -0
.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
.venv/
|
README.md
CHANGED
@@ -46,4 +46,15 @@ Silence is removed by https://github.com/proger/uk#align-text-to-audio-and-trim-
|
|
46 |
|
47 |
- 48000 Hz: https://huggingface.co/datasets/Yehor/ukrainian-tts-mykyta/resolve/main/dataset_mykyta_trimmed_48khz.zip
|
48 |
- 22050 Hz: https://huggingface.co/datasets/Yehor/ukrainian-tts-mykyta/resolve/main/dataset_mykyta_trimmed_22khz.zip
|
49 |
-
- 16000 Hz: https://huggingface.co/datasets/Yehor/ukrainian-tts-mykyta/resolve/main/dataset_mykyta_trimmed_16khz.zip
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
|
47 |
- 48000 Hz: https://huggingface.co/datasets/Yehor/ukrainian-tts-mykyta/resolve/main/dataset_mykyta_trimmed_48khz.zip
|
48 |
- 22050 Hz: https://huggingface.co/datasets/Yehor/ukrainian-tts-mykyta/resolve/main/dataset_mykyta_trimmed_22khz.zip
|
49 |
+
- 16000 Hz: https://huggingface.co/datasets/Yehor/ukrainian-tts-mykyta/resolve/main/dataset_mykyta_trimmed_16khz.zip
|
50 |
+
|
51 |
+
## Development
|
52 |
+
|
53 |
+
```
|
54 |
+
uv venv --python 3.12
|
55 |
+
|
56 |
+
source .venv/bin/activate
|
57 |
+
|
58 |
+
uv pip install -r requirements.txt
|
59 |
+
uv pip install -r requirements-dev.txt
|
60 |
+
```
|
add_audio_field.py
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from datasets import load_dataset, Audio
|
2 |
+
|
3 |
+
dataset = load_dataset('json', data_files="train.jsonl")
|
4 |
+
print(dataset)
|
5 |
+
|
6 |
+
dataset_audio = dataset.cast_column(
|
7 |
+
"audio", Audio(sampling_rate=48_000, mono=True, decode=True)
|
8 |
+
)
|
9 |
+
print(dataset_audio)
|
10 |
+
|
11 |
+
train_set = dataset_audio['train']
|
12 |
+
|
13 |
+
train_set.to_parquet("train.parquet")
|
14 |
+
|
15 |
+
print(train_set[1])
|
requirements-dev.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
ruff
|
requirements.txt
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
polars
|
2 |
+
datasets
|
3 |
+
|
4 |
+
librosa
|
5 |
+
soundfile
|
train.jsonl
CHANGED
The diff for this file is too large to render.
See raw diff
|
|
train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:44fdc3b9115841a8572ea480c9184f6cc32b9deccbb85d9db76aac8eae4d3c4c
|
3 |
+
size 832241
|