Automatic Speech Recognition
WhisperKit
Core ML
Portuguese
Spanish
English
macos
apple-silicon
swift
live-captions
subtitles
speech-recognition
machine-translation
on-device
local-first
ollama
Instructions to use Veronyka/livecaption with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- WhisperKit
How to use Veronyka/livecaption with WhisperKit:
# Install CLI with Homebrew on macOS device brew install whisperkit-cli # View all available inference options whisperkit-cli transcribe --help # Download and run inference using whisper base model whisperkit-cli transcribe --audio-path /path/to/audio.mp3 # Or use your preferred model variant whisperkit-cli transcribe --model "large-v3" --model-prefix "distil" --audio-path /path/to/audio.mp3 --verbose
- Notebooks
- Google Colab
- Kaggle
Download scripts/build_app.sh from Veronyka/livecaption: direct link, hf CLI and curl.
- Browser
- Download file 1.21 kB
-
https://huggingface.co/Veronyka/livecaption/resolve/main/scripts/build_app.sh
- Command line
-
hf download hf://Veronyka/livecaption/scripts/build_app.sh
-
curl -L -o build_app.sh https://huggingface.co/Veronyka/livecaption/resolve/main/scripts/build_app.sh
1.21 kB
| # Compila e empacota LiveCaption.app (use --install para copiar também para /Applications) (o bundle é necessário para o macOS pedir permissão de microfone). | |
| set -e | |
| cd "$(dirname "$0")/.." | |
| swift build -c release | |
| APP=LiveCaption.app | |
| rm -rf $APP | |
| mkdir -p $APP/Contents/MacOS | |
| cp .build/release/LiveCaption $APP/Contents/MacOS/LiveCaption | |
| cat > $APP/Contents/Info.plist <<PL | |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"><dict> | |
| <key>CFBundleName</key><string>LiveCaption</string> | |
| <key>CFBundleIdentifier</key><string>local.livecaption</string> | |
| <key>CFBundleExecutable</key><string>LiveCaption</string> | |
| <key>CFBundlePackageType</key><string>APPL</string> | |
| <key>CFBundleVersion</key><string>1</string> | |
| <key>LSMinimumSystemVersion</key><string>14.0</string> | |
| <key>NSMicrophoneUsageDescription</key><string>Transcrever sua fala em tempo real para a legenda.</string> | |
| </dict></plist> | |
| PL | |
| codesign --force --sign - $APP | |
| echo "pronto: $PWD/$APP" | |
| if [[ "$1" == "--install" ]]; then rm -rf "/Applications/$APP" && ditto "$APP" "/Applications/$APP" && echo "instalado em /Applications/$APP"; fi | |