Fix example usage

#202
by bezzam HF Staff - opened
Files changed (1) hide show
  1. README.md +6 -1
README.md CHANGED
@@ -178,10 +178,15 @@ pipe = pipeline(
178
  dataset = load_dataset("distil-whisper/librispeech_long", "clean", split="validation")
179
  sample = dataset[0]["audio"]
180
 
181
- result = pipe(sample)
182
  print(result["text"])
183
  ```
184
 
 
 
 
 
 
185
  To transcribe a local audio file, simply pass the path to your audio file when you call the pipeline:
186
 
187
  ```python
 
178
  dataset = load_dataset("distil-whisper/librispeech_long", "clean", split="validation")
179
  sample = dataset[0]["audio"]
180
 
181
+ result = pipe(sample, return_timestamps=True)
182
  print(result["text"])
183
  ```
184
 
185
+ It is also possible to transcribe a link to an audio file:
186
+ ```python
187
+ result = pipe("https://huggingface.co/datasets/Narsil/asr_dummy/resolve/main/mlk.flac")
188
+ ```
189
+
190
  To transcribe a local audio file, simply pass the path to your audio file when you call the pipeline:
191
 
192
  ```python