Model reference · open weights
wav2vec2-large-xlsr-53-amharic is an open-weight audio or speech model from agkphysics. AxForge deploys and operates it for you on dedicated EU-owned hardware — with the licence handled where one is required.
Available as managed deployment — configured and operated for you on dedicated EU hardware, quoted per deployment.
What it is
| Released by | agkphysics |
|---|---|
| Type | Audio & music |
| Task | Speech→text |
| Parameters (lead) | 316M |
| Runs with | transformers |
| Released | 2023-05-18 |
| Popularity | 129k downloads / month |
| Licence | Open weights |
About
This is a finetuned version of facebook/wav2vec2-large-xlsr-53 trained on the Amharic Speech Corpus. This corpus was produced by Abate et al. (2005) (10.21437/Interspeech.2005-467).
The model achieves a WER of 26% and a CER of 7% on the validation set of the Amharic Readspeech data.
The model can be used as follows:
import librosa
from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor
model = Wav2Vec2ForCTC.from_pretrained("agkphysics/wav2vec2-large-xlsr-53-amharic")
processor = Wav2Vec2Processor.from_pretrained("agkphysics/wav2vec2-large-xlsr-53-amharic")
audio, _ = librosa.load("/path/to/audio.wav", sr=16000)
input_values = processor(
audio.squeeze(),
sampling_rate=16000,
return_tensors="pt"
).input_values
model.eval()
with torch.no_grad():
logits = model(input_values).logits
preds = logits.argmax(-1)
texts = processor.batch_decode(preds)
print(texts[0])
The code to train this model is available at https://github.com/agkphysics/amharic-asr.
From the published model card. Full card on the HuggingFace links in the sidebar.
Using it via the API
Once AxForge deploys wav2vec2-large-xlsr-53-amharic for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (wav2vec2-large-xlsr-53-amharic below is illustrative; you get the exact model name on deployment.)
$ curl -sS https://api.axforge.ai/v1/audio/transcriptions \ -H "Authorization: Bearer $AXFORGE_API_KEY" \ -F model="wav2vec2-large-xlsr-53-amharic" -F file=@audio.mp3
Create an account — your API key is available in the console. 3M free tokens every 30 days with every new account.