Sure! Below are example commands for using whisperx with different model sizes (small, medium) as well as English-specific models (small.en, medium.en). Each command maintains the same structure and options as your original example:
1. Small Model (Multilingual)
whisperx ~/Downloads/audio.mp3 --model small --compute_type float32 --output_dir ~/Downloads/output
2. Medium Model (Multilingual)
whisperx ~/Downloads/audio.mp3 --model medium --compute_type float32 --output_dir ~/Downloads/output
3. Small Model (English Only)
whisperx ~/Downloads/audio.mp3 --model small.en --compute_type float32 --output_dir ~/Downloads/output
4. Medium Model (English Only)
whisperx ~/Downloads/audio.mp3 --model medium.en --compute_type float32 --output_dir ~/Downloads/output
Explanation of Parameters:
~/Downloads/audio.mp3: Path to your input audio file.
--model: Specifies the model size. Options include small, medium, small.en, medium.en, etc.
- Multilingual Models:
small, medium (supports multiple languages)
- English-Only Models:
small.en, medium.en (optimized for English)
--compute_type float32: Determines the precision for computation. float32 is standard, but you can use other options like float16 or int8 based on your requirements and hardware capabilities.
--output_dir ~/Downloads/output: Specifies the directory where the output files will be saved.
Additional Tips:
Example with Compute Type Adjusted for GPU (float16):
If you're using a GPU and want to leverage faster computation:
whisperx ~/Downloads/audio.mp3 --model medium.en --compute_type float16 --output_dir ~/Downloads/output
Feel free to adjust the parameters based on your specific needs and the capabilities of your hardware. Let me know if you need further assistance!