Skip to main content

Lite wrapper for the useful-moonshine speech to text models

Project description

🎙️ Moonshine Lite

Release Build status License

🚀 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 and transcribe 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

📚 Documentation

No need :-D


Made with ❤️ by Yaser Martinez Palenzuela

Project details


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)

Uploaded Source

Built Distribution

moonshine_lite-0.0.3-py3-none-any.whl (520.1 kB view details)

Uploaded Python 3

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

Hashes for moonshine_lite-0.0.3.tar.gz
Algorithm Hash digest
SHA256 2a19e7effd2621d68e6e5cff8c5fd5846c88b0bc7543ee46558e0296be2dd0f8
MD5 a4011cbf378c9575dfade2d7df4e6dd3
BLAKE2b-256 cf8c91759df03e2de8a9b129076ecca37335cb4272146aa8e52e0f46321c344c

See more details on using hashes here.

File details

Details for the file moonshine_lite-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for moonshine_lite-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 91793271843ca87f8b3d21b4d381c434fe3568c6a0f8023258eed4b9cae68672
MD5 22c5e3239d794f0a721388e4df05949f
BLAKE2b-256 adcf3866f2b05e705a840764efde724e55edfe06fe6fe0dbabe09003da48bb46

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page