Downloads · 30 days
28
13% of all-time downloads
harpertoken/harpertokenASR
harpertokenASR is a automatic speech recognition model from harpertoken. Use it when you need speech turned into text. It is set up for transformers. The card lists the license as mit.
This project fine-tunes OpenAI's Whisper (whisper-small) and Facebook's Wav2Vec2 (wav2vec2-base-960h) models for real-time speech recognition using live audio recordings. It’s designed for dynamic environments where l…
Downloads · 30 days
28
13% of all-time downloads
All-time downloads
222
Public
Parameters
242M
1.9 GB on disk
Likes
0
Public
Click a slice to open those files.
.bin967 MB · 50%
From the Hugging Face model README
This project fine-tunes OpenAI's Whisper (whisper-small) and Facebook's Wav2Vec2 (wav2vec2-base-960h) models for real-time speech recognition using live audio recordings. It’s designed for dynamic environments where low-latency transcription is key, such as live conversations or streaming audio.
Fine-tuned Whisper and Wav2Vec2 models for real-time speech recognition on live audio.
Fine-tune the model on live audio:
# For Whisper model
python main.py --model_type whisper
# For Wav2Vec2 model
python main.py --model_type wav2vec2
Records audio in real-time and updates the model continuously. Press Ctrl+C to stop training and save the model automatically.
Test the fine-tuned model:
# For Whisper model
python test_transcription.py --model_type whisper
# For Wav2Vec2 model
python test_transcription.py --model_type wav2vec2
Records 5 seconds of audio (configurable in code) and generates a transcription.
Models are saved by default to:
models/speech_recognition_ai_fine_tune_[model_type]_[timestamp]
Example: models/speech_recognition_ai_fine_tune_whisper_20250225
To customize the save path:
export MODEL_SAVE_PATH="/your/custom/path"
python main.py --model_type [whisper|wav2vec2]
A GPU is recommended for faster fine-tuning. See requirements.txt for the full list.
To load the models from Hugging Face:
from transformers import WhisperForConditionalGeneration, WhisperProcessor
model = WhisperForConditionalGeneration.from_pretrained("harpertoken/harpertokenASR")
processor = WhisperProcessor.from_pretrained("harpertoken/harpertokenASR")
speech-model/
├── dataset.py # Audio recording and preprocessing
├── train.py # Training pipeline
├── test_transcription.py # Transcription testing
├── main.py # Main script for fine-tuning
├── README.md # This file
└── requirements.txt # Dependencies
The models are fine-tuned on live audio recordings collected during runtime. No pre-existing dataset is required—users generate their own data via microphone input.
Future updates will include WER (Word Error Rate) metrics compared to base models.
Licensed under the MIT License.