Views
No views yet
Pakorn2112/whisper-model-large-hmong-multi-speech1pip install transformers datasets torchaudio librosa accelerate
2pip install torchpip install soundfile1from transformers import pipeline
2
3model_id = "Pakorn2112/whisper-model-large-hmong-multi-speech"
4
5pipe = pipeline(
6 "automatic-speech-recognition",
7 model=model_id
8)
9
10result = pipe("your_audio.wav")
11
12print(result["text"])1from transformers import pipeline
2import torch
3
4model_id = "Pakorn2112/whisper-model-large-hmong-multi-speech"
5
6device = 0 if torch.cuda.is_available() else -1
7
8pipe = pipeline(
9 "automatic-speech-recognition",
10 model=model_id,
11 device=device
12)
13
14result = pipe(
15 "your_audio.wav",
16 generate_kwargs={
17 "language": "hmong",
18 "task": "transcribe"
19 }
20)
21
22print(result["text"])AutoProcessor and AutoModelForSpeechSeq2Seq.1from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq
2import torch
3
4model_id = "Pakorn2112/whisper-model-large-hmong-multi-speech"
5
6processor = AutoProcessor.from_pretrained(model_id)
7model = AutoModelForSpeechSeq2Seq.from_pretrained(model_id)
8
9model.eval()
10
11print("Model loaded successfully")hmong_speech.wavKuv mus tom khw hnub noI went to the market today1@misc{pakorn_hmong_whisper,
2 author = {Pakorn},
3 title = {Whisper Large Fine-tuned for Hmong ASR},
4 year = {2026},
5 publisher = {Hugging Face},
6 howpublished = {\url{https://huggingface.co/Pakorn2112/whisper-model-large-hmong-multi-speech}}
7}