anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Turns English speech audio sampled at 16 kHz into text. A base wav2vec 2.0 model fine-tuned on 960 hours of Librispeech, for developers and researchers who need a transcription baseline.
Wav2Vec2-Base-960h is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install -U huggingface_hub hf download facebook/wav2vec2-base-960h
Wav2Vec2-Base-960h is a speech-to-text model for English. It reads an audio clip and writes out the words. Facebook pretrained the base model on speech audio and then fine-tuned it on 960 hours of Librispeech.
It suits developers and researchers who need English transcription or a baseline to compare against. People have published 181 fine-tuned versions of it.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Software | Developers | Add English transcription to an app | A script that transcribes audio files |
| Research | Speech researchers | Use it as a baseline and measure word error rate | Scores on the clean and other LibriSpeech test sets |
| Education | Students of speech recognition | Study how a speech model turns audio into text | Run the card's sample on a small dataset |
If your audio is not English, you can skip it.
| Use case | Who | What they get back |
|---|---|---|
| Transcribing audio files | Developers | Text decoded from the audio clip |
| Measuring accuracy | Researchers | A word error rate on LibriSpeech test data |
pip install -U huggingface_hub hf download facebook/wav2vec2-base-960h
Load the processor and the model, turn the audio array into input values, take the most likely token at each step, and decode the ids into text. The card shows this on a small sample dataset.
from transformers import Wav2Vec2Processor, Wav2Vec2ForCTC
from datasets import load_dataset
import torch
# load model and tokenizer
processor = Wav2Vec2Processor.from_pretrained("facebook/wav2vec2-base-960h")
model = Wav2Vec2ForCTC.from_pretrained("facebook/wav2vec2-base-960h")
# load dummy dataset and read soundfiles
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
# tokenize
input_values = processor(ds[0]["audio"]["array"], return_tensors="pt", padding="longest").input_values # Batch size 1
# retrieve logits
logits = model(input_values).logits
# take argmax and decode
predicted_ids = torch.argmax(logits, dim=-1)
transcription = processor.batch_decode(predicted_ids)| Tool | What it does |
|---|---|
| Wav2Vec2Processor | Turns the audio array into input values for the model |
| Wav2Vec2ForCTC | Runs the model and returns scores for each step |
| torch.argmax | Picks the most likely token at every step |
| batch_decode | Turns the chosen token ids into text |
You load the first clip of the card's small sample dataset and run the code above. The model reads the audio and gives back its transcription as a text string, which you can compare with the clip's reference text.
If you are new, think of this as a program that listens to a recording and types what it hears. The first small thing to try is the sample code on the one clip from the card's dataset.
If you know the field, wav2vec 2.0 pretrains by masking parts of the audio features, then solving a contrastive task on quantised latent values. This checkpoint is used as a standalone acoustic model with CTC and no language model. The trade-off is accuracy on harder audio, with a word error rate of 3.4 on clean and 8.6 on other.
Turns English speech audio sampled at 16 kHz into text. A base wav2vec 2.0 model fine-tuned on 960 hours of Librispeech, for developers and researchers who need a transcription baseline.
Made by facebook on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.
What it is: Wav2Vec2-Base-960h is a speech-to-text model for English. It reads an audio clip and writes out the words. Facebook pretrained the base model on speech audio and then fine-tuned it on 960 hours of Librispeech.
Who it suits: It suits developers and researchers who need English transcription or a baseline to compare against. People have published 181 fine-tuned versions of it.
Title: Who runs it
Industry | Who uses it | How they use it | Example
Software | Developers | Add English transcription to an app | A script that transcribes audio files
Research | Speech researchers | Use it as a baseline and measure word error rate | Scores on the clean and other LibriSpeech test sets
Education | Students of speech recognition | Study how a speech model turns audio into text | Run the card's sample on a small dataset
If your audio is not English, you can skip it.
Where to use it:
Title: Jobs it does
Use case | Who | What they get back
Transcribing audio files | Developers | Text decoded from the audio clip
Measuring accuracy | Researchers | A word error rate on LibriSpeech test data
How to set it up:
pip install -U huggingface_hub
hf download facebook/wav2vec2-base-960h
How to use it: Load the processor and the model, turn the audio array into input values, take the most likely token at each step, and decode the ids into text. The card shows this on a small sample dataset.
from transformers import Wav2Vec2Processor, Wav2Vec2ForCTC
from datasets import load_dataset
import torch
# load model and tokenizer
processor = Wav2Vec2Processor.from_pretrained("facebook/wav2vec2-base-960h")
model = Wav2Vec2ForCTC.from_pretrained("facebook/wav2vec2-base-960h")
# load dummy dataset and read soundfiles
ds = load_dataset("patrickvonplaten/librispeech_asr_dummy", "clean", split="validation")
# tokenize
input_values = processor(ds[0]["audio"]["array"], return_tensors="pt", padding="longest").input_values # Batch size 1
# retrieve logits
logits = model(input_values).logits
# take argmax and decode
predicted_ids = torch.argmax(logits, dim=-1)
transcription = processor.batch_decode(predicted_ids)
Title: Pieces of the code
Tool | What it does
Wav2Vec2Processor | Turns the audio array into input values for the model
Wav2Vec2ForCTC | Runs the model and returns scores for each step
torch.argmax | Picks the most likely token at every step
batch_decode | Turns the chosen token ids into text
Example: You load the first clip of the card's small sample dataset and run the code above. The model reads the audio and gives back its transcription as a text string, which you can compare with the clip's reference text.
For newcomers and experts: If you are new, think of this as a program that listens to a recording and types what it hears. The first small thing to try is the sample code on the one clip from the card's dataset.
If you know the field, wav2vec 2.0 pretrains by masking parts of the audio features, then solving a contrastive task on quantised latent values. This checkpoint is used as a standalone acoustic model with CTC and no language model. The trade-off is accuracy on harder audio, with a word error rate of 3.4 on clean and 8.6 on other.
Audio sampled at 16 kHz
Processor makes input values
Wav2Vec2ForCTC returns logits
Argmax picks token ids
batch_decode writes the text
Good to know:
Title: Word error rate on LibriSpeech test data
clean: 3.4%
other: 8.6%
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download facebook/wav2vec2-base-960h
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 5 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| Wav2Vec2-Base-960h This page | 1,794,378 | 418 | 94.4M | apache-2.0 | |
| Parakeet RNNT 1.1BShares hf-asr-leaderboard · automatic-speech-recognition · audio | 8,709 | 189 | 1.1B | cc-by-4.0 | |
| ARK-ASR-3BShares automatic-speech-recognition · audio · pytorch | 1,655 | 115 | 4.1B | apache-2.0 | |
| whisper-persian-v4Shares model-index · automatic-speech-recognition · transformers | 1,071 | 21 | 1.5B | apache-2.0 | |
| whisper-large-v3-turboShares automatic-speech-recognition · audio · transformers | 4,969,987 | 3,524 | 809M | mit | |
| Distil-Whisper distil-large-v3Shares automatic-speech-recognition · audio · transformers | 754,155 | 386 | 756M | mit |
Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
block · Kit
Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…
backnotprop · Kit
Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.