cdminix commited on
Commit
8893fce
1 Parent(s): 898401c

fix typo and formatting in readme

Browse files
Files changed (1) hide show
  1. README.md +7 -6
README.md CHANGED
@@ -44,7 +44,8 @@ This dataset has the following splits:
44
  'text': 'the day after, diana and mary quitted it for distant b.',
45
  'start': 0.0,
46
  'end': 3.6500000953674316,
47
- 'phones': ['[SILENCE]', 'ð', 'ʌ', '[SILENCE]', 'd', 'eɪ', '[SILENCE]', 'æ', 'f', 't', 'ɜ˞', '[COMMA]', 'd', 'aɪ', 'æ', 'n', 'ʌ', '[SILENCE]', 'æ', 'n', 'd', '[SILENCE]', 'm', 'ɛ', 'ɹ', 'i', '[SILENCE]', 'k', 'w', 'ɪ', 't', 'ɪ', 'd', '[SILENCE]', 'ɪ', 't', '[SILENCE]', 'f', 'ɜ˞', '[SILENCE]', 'd', 'ɪ', 's', 't', 'ʌ', 'n', 't', '[SILENCE]', 'b', 'i', '[FULL STOP]'], 'phone_durations': [5, 2, 4, 0, 5, 13, 0, 16, 7, 5, 20, 2, 6, 9, 15, 4, 2, 0, 11, 3, 5, 0, 3, 8, 9, 8, 0, 13, 3, 5, 3, 6, 4, 0, 8, 5, 0, 9, 5, 0, 7, 5, 6, 7, 4, 5, 10, 0, 3, 35, 9],
 
48
  'audio': '/dev/shm/metts/train-clean-360-alignments/100/100_122655_000073_000002.wav'
49
  }
50
  ```
@@ -72,17 +73,17 @@ from torch.utils.data import DataLoader
72
 
73
  dataset = load_dataset('libritts_align', split="train")
74
 
75
- speaker2ixd = json.load(open("speaker2ixd.json"))
76
- phone2ixd = json.load(open("phone2ixd.json"))
77
 
78
  collator = SpeechCollator(
79
- speaker2ixd=speaker2ixd,
80
- phone2ixd=phone2ixd,
81
  )
82
  dataloader = DataLoader(dataset, collate_fn=collator.collate_fn, batch_size=8)
83
  ```
84
 
85
- You can either download the ``speaker2ixd.json`` and ``phone2ixd.json`` files from [here](https://huggingface.co/datasets/cdminix/libritts-aligned/tree/main/data) or create them yourself using the following code:
86
 
87
  ```python
88
  import json
 
44
  'text': 'the day after, diana and mary quitted it for distant b.',
45
  'start': 0.0,
46
  'end': 3.6500000953674316,
47
+ 'phones': ['[SILENCE]', 'ð', 'ʌ', '[SILENCE]', 'd', 'eɪ', '[SILENCE]', 'æ', 'f', 't', 'ɜ˞', '[COMMA]', 'd', 'aɪ', 'æ', 'n', 'ʌ', '[SILENCE]', 'æ', 'n', 'd', '[SILENCE]', 'm', 'ɛ', 'ɹ', 'i', '[SILENCE]', 'k', 'w', 'ɪ', 't', 'ɪ', 'd', '[SILENCE]', 'ɪ', 't', '[SILENCE]', 'f', 'ɜ˞', '[SILENCE]', 'd', 'ɪ', 's', 't', 'ʌ', 'n', 't', '[SILENCE]', 'b', 'i', '[FULL STOP]'],
48
+ 'phone_durations': [5, 2, 4, 0, 5, 13, 0, 16, 7, 5, 20, 2, 6, 9, 15, 4, 2, 0, 11, 3, 5, 0, 3, 8, 9, 8, 0, 13, 3, 5, 3, 6, 4, 0, 8, 5, 0, 9, 5, 0, 7, 5, 6, 7, 4, 5, 10, 0, 3, 35, 9],
49
  'audio': '/dev/shm/metts/train-clean-360-alignments/100/100_122655_000073_000002.wav'
50
  }
51
  ```
 
73
 
74
  dataset = load_dataset('libritts_align', split="train")
75
 
76
+ speaker2ixd = json.load(open("speaker2idx.json"))
77
+ phone2ixd = json.load(open("phone2idx.json"))
78
 
79
  collator = SpeechCollator(
80
+ speaker2ixd=speaker2idx,
81
+ phone2ixd=phone2idx ,
82
  )
83
  dataloader = DataLoader(dataset, collate_fn=collator.collate_fn, batch_size=8)
84
  ```
85
 
86
+ You can either download the ``speaker2idx.json`` and ``phone2idx.json`` files from [here](https://huggingface.co/datasets/cdminix/libritts-aligned/tree/main/data) or create them yourself using the following code:
87
 
88
  ```python
89
  import json