Views
No views yet
ct2-transformers-converter --model openai/whisper-large-v3-turbo --output_dir whisper-large-v3-turbo --copy_files tokenizer.json preprocessor_config.json --quantization float16 1from whisperx.asr import WhisperModel
2
3model = WhisperModel(
4 model_size_or_path="Capy-AI/whisper-v3-large-turbo-ct2",
5 device=device,
6 compute_type=compute_type,
7 cpu_threads=8
8 )
9model = whisperx.load_model("", device, model=model, compute_type=compute_type, download_root=model_dir)
10
11transcription = model.transcribe(audio)
12
13for segment in transcription:
14 print(f"[{segment['start']:.2f}s - {segment['end']:.2f}s] {segment['text']}")