File size: 890 Bytes
380c127 dafbeea |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
---
license: mit
base_model:
- openai/whisper-large-v3-turbo
---
# Whisper large-v3-turbo in CTranslate2
This repo contains the CTranslate2 format of the [whisper-large-v3-turbo](https://huggingface.co/openai/whisper-large-v3-turbo)
# Example with whisperx
```Python
from whisperx.asr import WhisperModel
model = WhisperModel(
model_size_or_path="Capy-AI/whisper-v3-large-turbo-ct2",
device=device,
compute_type=compute_type,
cpu_threads=8
)
model = whisperx.load_model("", device, model=model, compute_type=compute_type, download_root=model_dir)
transcription = model.transcribe(audio)
for segment in transcription:
print(f"[{segment['start']:.2f}s - {segment['end']:.2f}s] {segment['text']}")
```
*Note*: Model weights are saved in FP16. This type can be changed when the model is loaded using the compute_type option in CTranslate2 or whisperx.
|