Instructions to use capacit-ai/saga-2-m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use capacit-ai/saga-2-m with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="capacit-ai/saga-2-m")# Load model directly from transformers import WQwenForASR model = WQwenForASR.from_pretrained("capacit-ai/saga-2-m", device_map="auto") - Notebooks
- Google Colab
- Kaggle
saga-2
Danish speech recognition.
Inference
pip install -r requirements.txt
python run.py clip.wav # weights from this directory
python run.py --repo capacit-ai/saga-2-m a.wav b.mp3 # or fetch from the hub
python run.py --json out.jsonl *.flac
from saga2 import load
m = load("capacit-ai/saga-2-m") # cuda if available, else cpu
print(m.transcribe("clip.wav"))
print(m.transcribe(["a.wav", "b.wav"], batch_size=8))
Any sample rate or container librosa can read. Audio over 30 s is split at silences into pieces of at most 28 s and joined.
- Downloads last month
- -