Update README.md
Browse files
README.md
CHANGED
@@ -175,6 +175,7 @@ The model checkpoint uploaded here is a conversion from torchaudio to HF Transfo
|
|
175 |
pip install git+https://github.com/MahmoudAshraf97/ctc-forced-aligner.git
|
176 |
```
|
177 |
## Usage
|
|
|
178 |
```python
|
179 |
from ctc_forced_aligner import (
|
180 |
load_audio,
|
@@ -191,9 +192,10 @@ text_path = "your/text/path"
|
|
191 |
language = "iso" # ISO-639-3 Language code
|
192 |
|
193 |
audio_waveform = load_audio(audio_path, model.dtype, model.device)
|
194 |
-
|
195 |
-
|
196 |
-
|
|
|
197 |
|
198 |
with open(text_path, "r") as f:
|
199 |
lines = f.readlines()
|
|
|
175 |
pip install git+https://github.com/MahmoudAshraf97/ctc-forced-aligner.git
|
176 |
```
|
177 |
## Usage
|
178 |
+
|
179 |
```python
|
180 |
from ctc_forced_aligner import (
|
181 |
load_audio,
|
|
|
192 |
language = "iso" # ISO-639-3 Language code
|
193 |
|
194 |
audio_waveform = load_audio(audio_path, model.dtype, model.device)
|
195 |
+
|
196 |
+
emissions, stride = generate_emissions(
|
197 |
+
model, audio_waveform, args.window_size, args.context_size, args.batch_size
|
198 |
+
)
|
199 |
|
200 |
with open(text_path, "r") as f:
|
201 |
lines = f.readlines()
|