Skip to content

Commit 98a3c7d

Browse files
committed
update whisper readme
1 parent 0b4d0bc commit 98a3c7d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

examples/models/whisper/README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ This command generates:
6161
Export a preprocessor to convert raw audio to mel-spectrograms:
6262

6363
```bash
64+
# Use --feature_size 128 for whisper-large-v3 and whisper-large-v3-turbo
6465
python -m executorch.extension.audio.mel_spectrogram \
6566
--feature_size 80 \
6667
--stack_output \
@@ -90,14 +91,22 @@ optimum-cli export executorch \
9091

9192
### Download Tokenizer
9293

93-
Download the tokenizer files required for inference:
94+
Download the tokenizer files required for inference according to your model version:
9495

96+
**For Whisper Small:**
9597
```bash
9698
curl -L https://huggingface.co/openai/whisper-small/resolve/main/tokenizer.json -o tokenizer.json
9799
curl -L https://huggingface.co/openai/whisper-small/resolve/main/tokenizer_config.json -o tokenizer_config.json
98100
curl -L https://huggingface.co/openai/whisper-small/resolve/main/special_tokens_map.json -o special_tokens_map.json
99101
```
100102

103+
**For Whisper Large v2:**
104+
```bash
105+
curl -L https://huggingface.co/openai/whisper-large-v2/resolve/main/tokenizer.json -o tokenizer.json
106+
curl -L https://huggingface.co/openai/whisper-large-v2/resolve/main/tokenizer_config.json -o tokenizer_config.json
107+
curl -L https://huggingface.co/openai/whisper-large-v2/resolve/main/special_tokens_map.json -o special_tokens_map.json
108+
```
109+
101110
### Prepare Audio
102111

103112
Generate test audio or use an existing WAV file. The model expects 16kHz mono audio.

0 commit comments

Comments
 (0)