Views
No views yet
Jingmiao/whisper-small-zh_tw, which is a fine-tuned variant of OpenAI's whisper-small model, optimized for Taiwanese Mandarin (zh-TW) automatic speech recognition (ASR).ct2-transformers-converter tool from CTranslate2, allowing for fast CPU inference with faster-whisper.1from faster_whisper import WhisperModel
2
3model = WhisperModel("Luigi/whisper-small-zh_tw-ct2", device="cpu", compute_type="int8")
4
5segments, _ = model.transcribe("your_audio_file.wav", beam_size=5)
6transcription = "".join([seg.text for seg in segments])
7print(transcription)faster-whispermodel.bin: The converted quantized model.vocab.json, tokenizer.json, config.json: Tokenizer and model configs.faster-whisper runtime.1ct2-transformers-converter --model YOUR_MODEL_DIR \
2 --output_dir YOUR_OUTPUT_DIR \
3 --quantization int8 \
4 --copy_files tokenizer.json