Skip to content

Commit f8d11df

Browse files
committed
docs: Update README example commands with generic audio path
1 parent 44e8bf5 commit f8d11df

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ To **enable Speaker Diarization**, include your Hugging Face access token (read)
129129

130130
Run whisper on example segment (using default params, whisper small) add `--highlight_words True` to visualise word timings in the .srt file.
131131

132-
whisperx examples/sample01.wav
132+
whisperx path/to/audio.wav
133133

134134

135135
Result using *WhisperX* with forced alignment to wav2vec2.0 large:
@@ -143,16 +143,16 @@ https://user-images.githubusercontent.com/36994049/207743923-b4f0d537-29ae-4be2-
143143

144144
For increased timestamp accuracy, at the cost of higher gpu mem, use bigger models (bigger alignment model not found to be that helpful, see paper) e.g.
145145

146-
whisperx examples/sample01.wav --model large-v2 --align_model WAV2VEC2_ASR_LARGE_LV60K_960H --batch_size 4
146+
whisperx path/to/audio.wav --model large-v2 --align_model WAV2VEC2_ASR_LARGE_LV60K_960H --batch_size 4
147147

148148

149149
To label the transcript with speaker ID's (set number of speakers if known e.g. `--min_speakers 2` `--max_speakers 2`):
150150

151-
whisperx examples/sample01.wav --model large-v2 --diarize --highlight_words True
151+
whisperx path/to/audio.wav --model large-v2 --diarize --highlight_words True
152152

153153
To run on CPU instead of GPU (and for running on Mac OS X):
154154

155-
whisperx examples/sample01.wav --compute_type int8
155+
whisperx path/to/audio.wav --compute_type int8
156156

157157
### Other languages
158158

@@ -163,7 +163,7 @@ Currently default models provided for `{en, fr, de, es, it}` via torchaudio pipe
163163

164164

165165
#### E.g. German
166-
whisperx --model large-v2 --language de examples/sample_de_01.wav
166+
whisperx --model large-v2 --language de path/to/audio.wav
167167

168168
https://user-images.githubusercontent.com/36994049/208298811-e36002ba-3698-4731-97d4-0aebd07e0eb3.mov
169169

0 commit comments

Comments
 (0)