Skip to content

About

🎀 AI-powered voice input for macOS β€” Azure Speech + DeepSeek auto-correction. Like θ±†εŒ…θ―­ιŸ³θΎ“ε…₯法 for Mac.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

🎀 VoiceInput β€” AI-Powered Voice Input for macOS

Smart voice input for macOS: speak in Finnish (or any language), get corrected text pasted directly at your cursor.

Like θ±†εŒ…θ―­ιŸ³θΎ“ε…₯法, but for macOS β€” and fully customizable.

How It Works

πŸŽ™οΈ Record Audio β†’ Azure Speech-to-Text β†’ DeepSeek AI Correction β†’ πŸ“‹ Auto-Paste
  1. Press Ctrl+Space (or click menu bar icon)
  2. Speak for up to 10 seconds
  3. Your text appears at the cursor β€” auto-corrected with proper punctuation

Features

  • 🌍 Multi-language: Finnish, Chinese, Swedish, English (configurable)
  • πŸ€– AI Auto-Correction: Fixes speech recognition errors, adds punctuation
  • ⌨️ Global Hotkey: Ctrl+Space from anywhere in macOS
  • πŸ”’ Privacy: Audio processed via Azure (EU region), text corrected by DeepSeek
  • 🎯 Menu Bar App: No Dock icon, lives in status bar
  • πŸ“‹ Auto-Paste: Text appears directly at cursor position

Requirements

Installation

Quick Install

# Clone
git clone https://github.com/YOUR_USERNAME/voice-input-macos.git
cd voice-input-macos

# Setup
chmod +x setup.sh && ./setup.sh

# Run
open VoiceInput.app

Manual Setup

# Install dependencies
brew install ffmpeg sox

# Create Python environment
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

# Configure API keys
cp .env.example .env
# Edit .env with your API keys

# Build app
chmod +x build-app.sh && ./build-app.sh

# Run
open VoiceInput.app

Configuration

Edit .env:

# Azure Speech (required)
AZURE_SPEECH_REGION=norwayeast
AZURE_SPEECH_KEY=your-azure-key

# DeepSeek for AI correction (optional but recommended)
DEEPSEEK_API_KEY=your-deepseek-key

# Language (fi-FI, zh-CN, sv-SE, en-US)
VOICE_LANGUAGE=fi-FI

# Recording duration (seconds)
RECORD_DURATION=10

Usage

Action How
Start recording Ctrl+Space or click 🎀 menu bar icon
Stop recording Wait for auto-stop (10s)
Change language Edit .env β†’ VOICE_LANGUAGE
Skip AI correction Use --no-correct flag in CLI mode

CLI Mode (without app)

source .venv/bin/activate

# Full pipeline: record β†’ transcribe β†’ correct β†’ paste
python3 smart-voice.py --duration 10

# Azure only (no AI correction)
python3 azure-stt.py --duration 10

# Chinese
python3 smart-voice.py --lang zh-CN --duration 10

Architecture

voice-input-macos/
β”œβ”€β”€ voice-app.py          # macOS menu bar app (rumps)
β”œβ”€β”€ smart-voice.py        # CLI: Azure STT + DeepSeek correction
β”œβ”€β”€ azure-stt.py          # CLI: Azure STT only
β”œβ”€β”€ whisper-stt.py        # CLI: Offline Whisper (optional)
β”œβ”€β”€ build-app.sh          # Build VoiceInput.app bundle
β”œβ”€β”€ setup.sh              # One-click setup script
β”œβ”€β”€ requirements.txt      # Python dependencies
β”œβ”€β”€ .env.example          # API key template
└── VoiceInput.app/       # Built macOS app bundle

Cost Estimate

Service Free Tier Paid
Azure Speech 5 hours/month $1/hour
DeepSeek β€” ~$0.001 per correction

Typical usage: ~$0.50/month for daily voice input.

Roadmap

  • Real-time streaming transcription (no 10s wait)
  • Multiple language profiles with hotkey switching
  • Local Whisper option (fully offline)
  • Custom correction prompts per app
  • Swift native app (no Python dependency)
  • Mac App Store distribution

License

MIT License β€” use it, modify it, ship it.

Acknowledgments

About

🎀 AI-powered voice input for macOS β€” Azure Speech + DeepSeek auto-correction. Like θ±†εŒ…θ―­ιŸ³θΎ“ε…₯法 for Mac.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages