Model reference · open weights
wav2vec2-xlsr-53-ft-cy-en is an open-weight audio or speech model from techiaith. 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 | techiaith |
|---|---|
| Type | Audio & music |
| Task | Speech→text |
| Parameters (lead) | 315M |
| Runs with | transformers |
| Released | 2022-10-24 |
| Popularity | 2k downloads / month |
| Licence | Open weights |
About
An acoustic encoder model for Welsh and English speech recognition, fine-tuned from facebook/wav2vec2-large-xlsr-53 using transcribed spontaneous speech from techiaith/banc-trawsgrifiadau-bangor (v24.01) as well as Welsh and English speech data derived from version 16.1 the Common Voice datasets techiaith/commonvoice_16_1_en_cy
The wav2vec2-xlsr-ft-cy-en model can be used directly as follows:
import torch
import torchaudio
import librosa
from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor
processor = Wav2Vec2Processor.from_pretrained("techiaith/wav2vec2-xlsr-ft-cy-en")
model = Wav2Vec2ForCTC.from_pretrained("techiaith/wav2vec2-xlsr-ft-cy-en")
audio, rate = librosa.load(audio_file, sr=16000)
inputs = processor(audio, sampling_rate=16_000, return_tensors="pt", padding=True)
with torch.no_grad():
tlogits = model(inputs.input_values, attention_mask=inputs.attention_mask).logits
# greedy decoding
predicted_ids = torch.argmax(logits, dim=-1)
print("Prediction:", processor.batch_decode(predicted_ids))
From the published model card. Full card on the HuggingFace links in the sidebar.
Using it via the API
Once AxForge deploys wav2vec2-xlsr-53-ft-cy-en for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (wav2vec2-xlsr-53-ft-cy-en 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-xlsr-53-ft-cy-en" -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.