logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt
How to install moonshine-ai/moonshine. Official installation instructions. Project installation guide. Framework or library installation. Build installation instructions. How to setup and install from GitHub. Installation steps and setup instructions. Official docs and installation instructions GitHub.

moonshine-ai/moonshine Installation Guide

How to install moonshine-ai/moonshine. Official project installation instructions and setup guide.

Automated Install (Recommended)

Quick installation instructions for moonshine-ai/moonshine. This is the fastest way to complete project installation and setup.

Install via curl

curl -fsSL https://hexmos.com/ipm-install | bash && 
ipm i moonshine-ai/moonshine
or

Install via npx

npx @hexmos/ipm i moonshine-ai/moonshine

Prerequisites

Python

language

Version: >=3.8

CMake

build tool

Xcode

IDE

Version: >=13.0

Android Studio

IDE

Visual Studio

IDE

Onnx Runtime

library

Manual Installation Methods

Manual installation instructions. How to install from GitHub source.

Python (pip)

pip install moonshine-voice

python -m moonshine_voice.download --language en

iOS/MacOS (Xcode)

https://github.com/moonshine-ai/moonshine-swift/

Android (Gradle)

implementation(libs.moonshine.voice)

Linux (Source)

git clone https://github.com/moonshine-ai/moonshine.git

cd moonshine

cd core

mkdir build

cd build

cmake .. -DBUILD_SHARED_LIBS=ON

cmake --build .

Windows (Visual Studio)

git clone https://github.com/moonshine-ai/moonshine.git

cd moonshine

examples\windows\cli-transcriber\download-lib.bat

cd examples\windows\cli-transcriber

msbuild cli-transcriber.sln /p:Configuration=Release /p:Platform=x64

Raspberry Pi (pip)

sudo pip install --break-system-packages moonshine-voice

python -m moonshine_voice.download --language en

Post Installation Steps

  • For Python, run `python -m moonshine_voice.mic_transcriber --language en` to listen to the microphone and print updates to the transcript.
  • For Python, run `python -m moonshine_voice.intent_recognizer` to listen for user-defined action phrases.
  • For iOS, download and extract `ios-examples.tar.gz`, then open `Transcriber/Transcriber.xcodeproj` in Xcode.
  • For Android, download and extract `android-examples.tar.gz`, then open the `Transcriber` folder in Android Studio.
  • For Linux, after building, run `./moonshine-cpp-test`.
  • For MacOS, download and extract `macos-examples.tar.gz`, then open `MicTranscription/MicTranscription.xcodeproj` in Xcode.
  • For Windows, after building, navigate to `x64\Release` and run `cli-transcriber.exe --model-path <path from download> --model-arch <number from download>`.
  • For Raspberry Pi, run `python -m moonshine_voice.mic_transcriber --language en`.