Downloads · 30 days
6
22% of all-time downloads
Thanakron/whisperConformer-medium-th
whisperConformer-medium-th is a machine learning model from Thanakron. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
WhisperConformer is a modified ASR model from Whisper and Conformer architecture to capture global context and local feature extraction to improve recognition accuracy. The model is trained on 387 hours of Thai speech…
Downloads · 30 days
6
22% of all-time downloads
All-time downloads
27
Public
Parameters
740M
3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors3 GB · 100%
From the Hugging Face model README
WhisperConformer is a modified ASR model from Whisper and Conformer architecture to capture global context and local feature extraction to improve recognition accuracy. The model is trained on 387 hours of Thai speech data.
This Model Can be fine-tuning based on this Fine-Tune Whisper with 🤗 Transformers
pip install --upgrade pip
pip install WhisperConformer
The model can be used with the pipeline class to transcribe audios of arbitrary length:
from transformers import pipeline
from transformers import WhisperTokenizer,WhisperFeatureExtractor
from WhisperConformer import WhisperConformerModel
model_name = "Thanakron/whisperConformer-medium-th"
feature_extractor = WhisperFeatureExtractor.from_pretrained(model_name)
tokenizer = WhisperTokenizer.from_pretrained(model_name)
model = WhisperConformerModel.from_pretrained(model_name)
pipe = pipeline(task="automatic-speech-recognition",model=model,tokenizer=tokenizer,feature_extractor=feature_extractor)
input = "audio.wav"
def transcribe(audio):
text = pipe(audio)["text"]
return text
print(transcribe(input))