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
File size: 1,210 Bytes
f1e4744 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | #!/bin/zsh
# 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
|