File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ This command generates:
6161Export 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
6465python -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
9698curl -L https://huggingface.co/openai/whisper-small/resolve/main/tokenizer.json -o tokenizer.json
9799curl -L https://huggingface.co/openai/whisper-small/resolve/main/tokenizer_config.json -o tokenizer_config.json
98100curl -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
103112Generate test audio or use an existing WAV file. The model expects 16kHz mono audio.
You can’t perform that action at this time.
0 commit comments