EasyTranscribe
A simple Python-based voice assistant that captures speech from your microphone or from recorded file, detects silence, and transcribes spoken words to text using OpenAI Whisper. Easily extensible for integration with LLMs like Ollama or Gemma.
Features
- Real-time microphone audio capture
- Automatic silence detection and recording stop
- Speech-to-text transcription using Whisper
- Comprehensive transcription logging with detailed metrics
- Easy integration with other AI models
Installation
-
Clone the repository:
git clone https://github.com/akhshyganesh/easytranscribe.git cd easytranscribe
-
Install dependencies:
pip install -r requirements.txt
Usage
Run the main script:
python main.py
Speak into your microphone. The assistant will automatically stop recording after a few seconds of silence and transcribe your speech.
easytranscribe
Easy speech-to-text transcription from audio files or live microphone input using OpenAI's Whisper.
✨ Features
- 🎤 Live microphone transcription with automatic silence detection
- 📁 Audio file transcription supporting multiple formats
- 📊 Automatic logging with timestamps and performance metrics
- 🔧 Simple CLI interface for quick usage
- 🐍 Easy Python API for integration into your projects
- 📈 Log analysis tools to view transcription history and statistics
🚀 Quick Start
Installation
pip install easytranscribe
Python API
Live microphone transcription:
from easytranscribe import capture_and_transcribe
# Start live transcription (speaks and waits for silence)
text = capture_and_transcribe(model_name="base")
print(f"You said: {text}")
Audio file transcription:
from easytranscribe import transcribe_audio_file
# Transcribe an audio file
text = transcribe_audio_file("path/to/audio.wav", model_name="base")
print(f"Transcription: {text}")
View transcription logs:
from easytranscribe import view_logs
# View today's logs with statistics
logs = view_logs(date="today", stats=True)
print(f"Total entries: {logs['total_count']}")
Command Line Interface
Live transcription:
easytranscribe live --model base
File transcription:
easytranscribe file path/to/audio.wav --model base
View logs:
# View today's logs
easytranscribe logs --date today --stats
# View last 10 entries
easytranscribe logs --tail 10
# List available log dates
easytranscribe logs --list-dates
📋 Available Whisper Models
| Model | Size | Speed | Accuracy | Use Case |
|---|---|---|---|---|
tiny |
39MB | Fastest | Good | Real-time, low resource |
base |
74MB | Fast | Better | Balanced performance |
small |
244MB | Medium | Good | Higher accuracy |
medium |
769MB | Slow | Very Good | Professional use |
large |
1550MB | Slowest | Best | Maximum accuracy |
turbo |
809MB | Fast | Excellent | Best balance (default) |
🔧 Configuration
Audio Settings (Live Recording)
The package automatically handles:
- ✅ Silence detection (3 seconds of silence stops recording)
- ✅ Minimum recording time (2 seconds)
- ✅ Audio level monitoring
- ✅ Automatic microphone input
Logging
Transcriptions are automatically logged to logs/transcription_YYYY-MM-DD.log with:
- 📅 Timestamp
- 🤖 Model used
- ⏱️ Processing time
- 🎵 Audio duration (for live recording)
- 📝 Transcribed text
🛠️ Development
Install from Source
git clone https://github.com/akhshyganesh/easytranscribe.git
cd easytranscribe
pip install -e .
Run Tests
python test/test_integration.py
📄 Requirements
- Python 3.8+
- OpenAI Whisper
- sounddevice (for microphone input)
- numpy
📖 Documentation
For comprehensive documentation, examples, and API reference, visit:
🌐 EasyTranscribe Documentation
The documentation includes:
- 🚀 Quick Start Guide
- 💻 CLI Usage
- 🐍 Python API
- 📝 Examples
- ⚙️ Configuration
- 🔧 Advanced Usage
🤝 Contributing
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
📜 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
- OpenAI Whisper for the amazing speech recognition model
- sounddevice for microphone input handling
Metadata
Release files for easytranscribe 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| easytranscribe-0.1.2.tar.gz | 57.6 kB | Without provenance | Details for easytranscribe-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| easytranscribe-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for easytranscribe-0.1.2-py3-none-any.whl |
Total release size: 69.6 kB
Release files / easytranscribe-0.1.2.tar.gz
| Download URL | easytranscribe-0.1.2.tar.gz |
|---|---|
| Size | 57.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
73d6677d46cfacb8bfac4147faca0c882753492e1194678a621939d6cb0eb30f
|
|
BLAKE2b-256 checksum How to use checksums |
ee75138cad053714aeb83d4df60287c6ace86e5b59705e0dd3b2123c0635c122
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.18
|
Release files / easytranscribe-0.1.2-py3-none-any.whl
| Download URL | easytranscribe-0.1.2-py3-none-any.whl |
|---|---|
| Size | 11.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a3572e28b159fafaea66d106f7a3749c87d01920853ff66a30dcb143f1ba7165
|
|
BLAKE2b-256 checksum How to use checksums |
edf944f85d0178f9ec05cc8d909a4b77e03fb9bc7787c3533ed16a54adf21376
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.18
|
Security for easytranscribe 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.