Datasets:

Modalities:
Audio
Text
Size:
< 1K
ArXiv:
DOI:
Libraries:
Datasets
cifkao commited on
Commit
3c97952
·
1 Parent(s): 43e58a9

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -1
README.md CHANGED
@@ -64,7 +64,9 @@ compute_metrics(dataset["text"], transcriptions, languages=dataset["language"])
64
  By default, the dataset includes the audio, allowing you to run transcription directly.
65
  For example, the following code can be used to evaluate Whisper:
66
  ```python
67
- dataset = load_dataset("audioshake/jam-alt", revision="v1.0.0", decode_audio=False)["test"]
 
 
68
  model = whisper.load_model("tiny")
69
  transcriptions = [
70
  "\n".join(s["text"].strip() for s in model.transcribe(a["path"])["segments"])
 
64
  By default, the dataset includes the audio, allowing you to run transcription directly.
65
  For example, the following code can be used to evaluate Whisper:
66
  ```python
67
+ dataset = load_dataset("audioshake/jam-alt", revision="v1.0.0")["test"]
68
+ dataset = dataset.cast_column("audio", datasets.Audio(decode=False)) # Get the raw audio file, let Whisper decode it
69
+
70
  model = whisper.load_model("tiny")
71
  transcriptions = [
72
  "\n".join(s["text"].strip() for s in model.transcribe(a["path"])["segments"])