Lite wrapper for the useful-moonshine speech to text models
Project description
🎙️ Moonshine Lite
🚀 A lightweight Python wrapper for the moonshine speech-to-text models with real-time transcription capabilities
✨ Features
- ⚡ Small and fast (60MB model size)
- 🎤 Real-time transcription from microphone
- ⌨️ Simulated keyboard typing for app integration
- 📝 Support for WAV file transcription
- 🎯 Simple API (
listen
andtranscribe
methods)
🚀 Quick Start
Installation
pip install moonshine-lite
Basic Usage
from moonshine_lite import Moonshine
moonshine = Moonshine()
# Transcribe a WAV file
text = moonshine.transcribe("audio.wav")
print(text)
# Start live transcription (text will be typed in the current application)
# you need to press and hold the activation key (Cmd by default) to start listening
moonshine.listen()
💻 CLI
# Transcribe a WAV file
moonshine transcribe "audio.wav"
# Start live transcription (text will be typed in the current application)
# you need to press and hold the activation key (Cmd by default) to start listening
moonshine listen
# Use tiny model
moonshine --model moonshine/tiny listen
🙏 Credits
- Useful Sensors' Moonshine models
- Silero VAD for voice activity detection
📚 Documentation
No need :-D
Made with ❤️ by Yaser Martinez Palenzuela
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
moonshine_lite-0.0.3.tar.gz
(506.9 kB
view details)
Built Distribution
File details
Details for the file moonshine_lite-0.0.3.tar.gz
.
File metadata
- Download URL: moonshine_lite-0.0.3.tar.gz
- Upload date:
- Size: 506.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a19e7effd2621d68e6e5cff8c5fd5846c88b0bc7543ee46558e0296be2dd0f8 |
|
MD5 | a4011cbf378c9575dfade2d7df4e6dd3 |
|
BLAKE2b-256 | cf8c91759df03e2de8a9b129076ecca37335cb4272146aa8e52e0f46321c344c |
File details
Details for the file moonshine_lite-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: moonshine_lite-0.0.3-py3-none-any.whl
- Upload date:
- Size: 520.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91793271843ca87f8b3d21b4d381c434fe3568c6a0f8023258eed4b9cae68672 |
|
MD5 | 22c5e3239d794f0a721388e4df05949f |
|
BLAKE2b-256 | adcf3866f2b05e705a840764efde724e55edfe06fe6fe0dbabe09003da48bb46 |