Views
No views yet
so)pipeline:1from transformers import pipeline
2
3# Load the Somali ASR model
4asr = pipeline("automatic-speech-recognition", model="hamaada/whisper-finetuned-somali-stt")
5
6# Transcribe audio file to text
7result = asr("path_to_somali_audio.wav")
8
9# Output the transcribed text
10print(result['text'])