Nava-ct2
Nimruz/Nava-ct2
- 作者
- Nimruz
- 任务
- 语音识别
- 下载量
- 432
- 点赞数
- 4
- 趋势分
- 3
- 许可证
- mit
- 收录时间
- 2026/12/1
language:
- fa license: mit library_name: ctranslate2 pipeline_tag: automatic-speech-recognition base_model: Nimruz/Nava base_model_relation: quantized tags:
- whisper
- persian
- farsi
- faster-whisper
- ctranslate2
Nava for faster-whisper
Nava, a Persian speech-to-text model, converted to CTranslate2 (float16) for faster-whisper. Results, training details and limitations are on the main model page.
from faster_whisper import WhisperModel
model = WhisperModel("Nimruz/Nava-ct2", device="cuda", compute_type="float16")
segments, _ = model.transcribe(
"audio.wav", language="fa", beam_size=1,
without_timestamps=True, condition_on_previous_text=False,
)
print(" ".join(s.text.strip() for s in segments))
On CPU use device="cpu", compute_type="float32", or "int8" for less memory.
Things to know
- Always pass
language="fa"andwithout_timestamps=True. Nava was fine-tuned with the Persian prompt and without timestamp tokens. - Audio longer than 30 seconds needs splitting. Cut it at quiet points into pieces of at most 30 seconds, or use the
transcribe.pyscript in the main repo.vad_filter=Trueshould serve the same purpose but has not been tested with Nava. - Output has no punctuation and spells numbers out. The main repo has a formatter that turns spoken numbers, dates and times into digits.
This conversion gave the same text as the original model on 9 of 10 FLEURS test clips, with a difference of a word or two on the tenth.
内容来源:Hugging Face 模型卡
在 Hugging Face 查看