Run this model with HF Jobs
Run harpertoken/talk on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/harpertoken/talk. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/harpertoken/talk on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use harpertoken/talk with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use harpertoken/talk with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="harpertoken/talk")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq processor = AutoProcessor.from_pretrained("harpertoken/talk") model = AutoModelForSpeechSeq2Seq.from_pretrained("harpertoken/talk", device_map="auto") - Notebooks
- Google Colab
- Kaggle
bniladridas commited on
Commit ·
cf00f16
1
Parent(s): 6369f85
Update README with rebranding and cleanup
Browse files21 unmodified lines222324252625262730282930312 unmodified lines34353639404142434445464748495051525337383955 unmodified lines959697115116989910010110212 unmodified lines11511611713511811912013812121 unmodified lines
# Speech Recognition AI: Fine-Tuned Whisper and Wav2Vec2 for Real-Time Audio

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.
## Model DescriptionThis is a fine-tuned version of [OpenAI's Whisper small model](https://huggingface.co/openai/whisper-small) and [Facebook's Wav2Vec2 base model](https://huggingface.co/facebook/wav2vec2-base-960h), optimized for real-time speech-to-text transcription. The models were trained on live 16kHz mono audio recordings, improving transcription accuracy over their base versions for continuous input scenarios.Fine-tuned Whisper and Wav2Vec2 models for real-time speech recognition on live audio.
## Features- **Real-time audio recording**: Captures live 16kHz mono audio via microphone input.2 unmodified lines- **Model saving/loading**: Automatically saves fine-tuned models with timestamps.- **Dual model support**: Choose between Whisper and Wav2Vec2 architectures.
*Note*: Currently supports English-only transcription.
## InstallationClone the repository and install the dependencies:```bashgit clone https://github.com/bniladridas/speech-model.gitcd speech-modelpip install -r requirements.txt```
Optional: Install system dependencies for Sounddevice (e.g., libsoundio on Linux):```bashsudo apt-get install libsndfile1```
## Usage
### Start Fine-Tuning55 unmodified linesTo load the models from Hugging Face:```pythonfrom transformers import WhisperForConditionalGeneration, WhisperProcessormodel = WhisperForConditionalGeneration.from_pretrained("bniladridas/speech-recognition-ai-fine-tune")processor = WhisperProcessor.from_pretrained("bniladridas/speech-recognition-ai-fine-tune")model = WhisperForConditionalGeneration.from_pretrained("harpertoken/harpertokenASR")processor = WhisperProcessor.from_pretrained("harpertoken/harpertokenASR")```
## Repository Structure12 unmodified linesThe 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.
## Evaluation ResultsPlaceholder: Future updates will include WER (Word Error Rate) metrics compared to base models.Future updates will include WER (Word Error Rate) metrics compared to base models.
## LicenseLicensed under the MIT License. See the LICENSE file for details.Licensed under the MIT License.README.md+5-22