mrfakename commited on
Commit
4abee34
·
verified ·
1 Parent(s): 125d05f

Upload folder using huggingface_hub

Browse files
Files changed (15) hide show
  1. .gitattributes +12 -0
  2. archive.z01 +3 -0
  3. archive.z02 +3 -0
  4. archive.z03 +3 -0
  5. archive.z04 +3 -0
  6. archive.z05 +3 -0
  7. archive.z06 +3 -0
  8. archive.z07 +3 -0
  9. archive.z08 +3 -0
  10. archive.z09 +3 -0
  11. archive.z10 +3 -0
  12. archive.z11 +3 -0
  13. archive.z12 +3 -0
  14. archive.zip +3 -0
  15. main.py +32 -0
.gitattributes CHANGED
@@ -57,3 +57,15 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
57
  # Video files - compressed
58
  *.mp4 filter=lfs diff=lfs merge=lfs -text
59
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  # Video files - compressed
58
  *.mp4 filter=lfs diff=lfs merge=lfs -text
59
  *.webm filter=lfs diff=lfs merge=lfs -text
60
+ archive.z01 filter=lfs diff=lfs merge=lfs -text
61
+ archive.z02 filter=lfs diff=lfs merge=lfs -text
62
+ archive.z03 filter=lfs diff=lfs merge=lfs -text
63
+ archive.z04 filter=lfs diff=lfs merge=lfs -text
64
+ archive.z05 filter=lfs diff=lfs merge=lfs -text
65
+ archive.z06 filter=lfs diff=lfs merge=lfs -text
66
+ archive.z07 filter=lfs diff=lfs merge=lfs -text
67
+ archive.z08 filter=lfs diff=lfs merge=lfs -text
68
+ archive.z09 filter=lfs diff=lfs merge=lfs -text
69
+ archive.z10 filter=lfs diff=lfs merge=lfs -text
70
+ archive.z11 filter=lfs diff=lfs merge=lfs -text
71
+ archive.z12 filter=lfs diff=lfs merge=lfs -text
archive.z01 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:900c6a5c7f37dd1271a31d403239c91199930b31abdbf90e800668913c581dd3
3
+ size 10737418240
archive.z02 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c046c63c120bee1422f75dfb884231ff089311b384e26976b660ba1c44cf9a61
3
+ size 10737418240
archive.z03 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:01d54669556f627dcdc88f1792c9ef6c51c0f82314e415b107b20608bc6b3e2f
3
+ size 10737418240
archive.z04 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8e2d3807c31778ea239e3fcbc7f33eb6698c72ad850fd402e0eee9ff92dac4e1
3
+ size 10737418240
archive.z05 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0c67ac736783ca431c4f2e2254e7e48d71c4e71cfa0912d2a991cc8028967656
3
+ size 10737418240
archive.z06 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1e5339beedd38d9f01fe9e93536bcfe4d97c6d9fc860514eb33cbcb2d35da323
3
+ size 10737418240
archive.z07 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4d54b63e1e8db7a022a916cb8c432037764847134efed814819641d22345c529
3
+ size 10737418240
archive.z08 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af7bc6b1393b3aeb65acc5906ed93a2e07bb8f9913bf19c51f30de836ee47a28
3
+ size 10737418240
archive.z09 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:35515168d2d996c3a3e22d4e23ff207031f18060a1ceaceb5539ba49b5df0391
3
+ size 10737418240
archive.z10 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ad778c147a469b220318234792fe6acd4a422d5a3b2ce3cff5f76548b04aa3be
3
+ size 10737418240
archive.z11 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ceecf96a49b3afc6b78235a6173bdff34321b899ab15bc5d5761c63d4ab7437a
3
+ size 10737418240
archive.z12 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e23aa465a895c0a8e1273fcb9e3c876a6e73d61472cc19255310f74e5abbac0a
3
+ size 10737418240
archive.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:067a2b533582ac4b0a87f9a4df0751d56e71c97b41cdf8ef097d07aa361816e9
3
+ size 4727455515
main.py ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import uuid
3
+ import soundfile as sf
4
+ from datasets import load_dataset
5
+
6
+ # Settings
7
+ dataset_name = "MushanW/GLOBE_V2" # e.g., "librispeech_asr"
8
+ split = "train" # or "test", "validation", etc.
9
+ output_dir = "./wav_output"
10
+
11
+ # Load dataset
12
+ ds = load_dataset(dataset_name, split=split, verification_mode="no_checks")
13
+
14
+ # Make sure output directory exists
15
+ os.makedirs(output_dir, exist_ok=True)
16
+
17
+ # Iterate through dataset and save audio
18
+ for i, sample in enumerate(ds):
19
+ audio = sample["audio"]
20
+ samples = audio["array"]
21
+ sample_rate = audio["sampling_rate"]
22
+
23
+ filename = f"{uuid.uuid4()}.wav"
24
+ filepath = os.path.join(output_dir, filename)
25
+
26
+ # Save as .wav file
27
+ sf.write(filepath, samples, sample_rate)
28
+
29
+ if (i + 1) % 100 == 0:
30
+ print(f"Saved {i+1} files...")
31
+
32
+ print(f"Done! Saved {len(ds)} files to '{output_dir}'")