This is an ONNX version of aictsharif/whisper-tiny-fa. It was automatically converted and uploaded using this Hugging Face Space.
Modellquelle
Quellenbeschreibung
This is an ONNX version of aictsharif/whisper-tiny-fa. It was automatically converted and uploaded using this Hugging Face Space.
See the pipeline documentation for :
Quellen
1 QuelleVerifiziert 22. Sept.
Modellartefakte
2 Artefakteonnx/decoder_model_q4.onnx
onnx · Q4 · 94,4 MB · SHA-256 3c406c74950b…0e5c · Hugging Face
HerunterladenQuellenauszüge
2 Auszügeautomatic-speech-recognitionThis model is a fine-tuned version of openai/whisper-tiny on the Common Voice 17.0 dataset.
Whisper-tiny-fa is an automatic speech recognition model specifically adapted for Persian (Farsi) speech. It builds upon OpenAI’s Whisper-tiny architecture, leveraging transfer learning to specialize in transcribing Persian audio. The model is suitable for converting spoken Persian audio into text, enabling applications such as voice assistants, captioning, and speech-driven user interfaces.
Transcribing Persian (Farsi) speech to text from audio files or microphone input. Voice-controlled applications and speech interfaces for Persian speakers. Generating subtitles and closed captions in Persian for audio/video content.
The model is fine-tuned for Persian and may perform poorly on other languages. Performance may degrade with low-quality or noisy audio, accents, or dialects not well represented in the training data. Not suitable for real-time applications with strict latency constraints due to model size and processing requirements.
Dataset: Common Voice 17.0 (Persian subset) Data split: Training, validation, and test splits provided by Common Voice were used. Preprocessing: Audio files were resampled to 16kHz and normalized. Transcripts were cleaned and normalized to standard Persian orthography.
The following hyperparameters were used during training:
import torch
from transformers import AutoModelForSpeechSeq2Seq, AutoProcessor, pipeline
device = "cuda:0" if torch.cuda.is_available() else "cpu"
torch_dtype = torch.float16 if torch.cuda.is_available() else torch.float32
model_id = "aictsharif/whisper-tiny-fa"
model = AutoModelForSpeechSeq2Seq.from_pretrained(
model_id, torch_dtype=torch_dtype, low_cpu_mem_usage=True, use_safetensors=True
)
model.to(device)
processor = AutoProcessor.from_pretrained(model_id)
pipe = pipeline(
"automatic-speech-recognition",
model=model,
tokenizer=processor.tokenizer,
feature_extractor=processor.feature_extractor,
torch_dtype=torch_dtype,
device=device,
)
result = pipe('sample.mp3')
print(result["text"])
--- library_name: transformers.js language: - fa license: apache-2.0 base_model: - aictsharif/whisper-tiny-fa tags: - generated_from_trainer datasets: - mozilla-foundation/common_voice_17_0 model-index: - name: Whisper tiny Fa - Common Voice results: [] pipeline_tag: automatic-speech-recognition --- # whisper-tiny-fa (ONNX) This is an ONNX version of [aictsharif/whisper-tiny-fa](https://huggingface.co/aictsharif/whisper-tiny-fa). It was automatically converted and uploaded using [this Hugging Face Space](https://huggingface.co/spaces/onnx-community/convert-to-onnx). ## Usage with Transformers.js See the pipeline documentation for `automatic-speech-recognition`: https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.AutomaticSpeechRecognitionPipeline --- <!-- This model card has been generated automatically according to the information the Trainer had access to. You should probably proofread and complete it, then remove this comment. --> # Whisper tiny Fa - Common Voice This model is a fine-tuned version of [openai/whisper-tiny](https://huggingface.co/openai/whisper-tiny) on the Common Voice 17.0 dataset. ## Model description Whisper-tiny-fa is an automatic speech recognition model specifically adapted for Persian (Farsi) speech. It builds upon OpenAI’s Whisper-tiny architecture, leveraging transfer learning to specialize in transcribing Persian audio. The model is suitable for converting spoken Persian audio into text, enabling applications such as voice assistants, captioning, and speech-driven user interfaces. - Base model: openai/whisper-tiny - Fine-tuned on: Common Voice 17.0 Persian subset - Languages supported: Persian (Farsi) - Model type: Encoder-decoder transformer (speech-to-text) ## Intended uses & limitations ### Intended uses: Transcribing Persian (Farsi) speech to text from audio files or microphone input. Voice-controlled applications and speech interfaces for Persian speakers. Generating subtitles and closed captions in Persian for audio/video content. ### Limitations: The model is fine-tuned for Persian and may perform poorly on other languages. Performance may degrade with low-quality or noisy audio, accents, or dialects not well represented in the training data. Not suitable for real-time applications with strict latency constraints due to model size and processing requirements. ## Training and eval...
Source context: 25 downloads · 0 likes · Pipeline automatic-speech-recognition · Library transformers.js · Repo onnx-community/whisper-tiny-fa-ONNX