CoolFace
Modelpublic

typhoon-ai/monsoon-whisper-medium-gigaspeech2

sourceHugging Faceapache-2.0updated 4mo agoView on Hugging Face
6likes178downloads
Model Card

Monsoon-Whisper-Medium-Gigaspeech2

Monsoon-Whisper-Medium-GigaSpeech2 is a ๐Ÿ‡น๐Ÿ‡ญ Thai Automatic Speech Recognition (ASR) model. It is based on Whisper-Medium and fine-tuned on GigaSpeech2.

Originally developed as a scale experiment for research on emergent capabilities in ASR tasks. It performs well in the wild, including with audio sourced from YouTube and in noisy environments.

More details can be found in our Typhoon-Audio Release Blog.

By using this model, you agree to the OpenTyphoon Terms and Conditions and acknowledge the Privacy Notice: https://opentyphoon.ai/tac ยท https://opentyphoon.ai/privacy

Model Description

  • โ€”Model type: Whisper Medium.
  • โ€”Requirement: transformers 4.38.0 or newer.
  • โ€”Primary Language(s): Thai ๐Ÿ‡น๐Ÿ‡ญ
  • โ€”License: Apache 2.0

Usage Example

python
from transformers import WhisperProcessor, WhisperForConditionalGeneration
import torchaudio
import torch

model_path = "scb10x/monsoon-whisper-medium-gigaspeech2"
device = "cuda"
filepath = 'audio.wav'

processor = WhisperProcessor.from_pretrained(model_path)
model = WhisperForConditionalGeneration.from_pretrained(
    model_path, torch_dtype=torch.bfloat16
)
model.to(device)
model.eval()

model.config.forced_decoder_ids = processor.get_decoder_prompt_ids(
    language="th", task="transcribe"
)
array, sr = torchaudio.load(filepath)
input_features = (
    processor(array, sampling_rate=sr, return_tensors="pt")
    .to(device)
    .to(torch.bfloat16)
    .input_features
)
predicted_ids = model.generate(input_features)
transcription = processor.batch_decode(predicted_ids, skip_special_tokens=True)
print(transcription)

Evaluation Results

ModelWER (GS2)WER (CV17)CER (GS2)CER (CV17)
whisper-large-v337.0222.6324.038.49
whisper-medium55.6443.0137.5516.41
biodatlab-whisper-th-medium-combined31.0014.2521.205.69
biodatlab-whisper-th-large-v3-combined29.0215.7219.966.32
monsoon-whisper-medium-gigaspeech222.7420.7914.156.92

Intended Uses & Limitations

This model is experimental and may not always be accurate. Developers should carefully assess potential risks in the context of their specific applications.

Follow us & Support

  • โ€”https://twitter.com/opentyphoon
  • โ€”https://discord.gg/us5gAYmrxw

Typhoon Team

Kunat Pipatanakul, Potsawee Manakul, Sittipong Sripaisarnmongkol, Natapong Nitarach, Warit Sirichotedumrong, Adisai Na-Thalang, Phatrasek Jirabovonvisut, Parinthapat Pengpun, Krisanapong Jirayoot, Pathomporn Chokchainant, Kasima Tharnpipitchai