nabz0r / mac-local-translator

Local translation app for Mac using speech recognition and offline translation

Repository from Github https://github.comnabz0r/mac-local-translatorRepository from Github https://github.comnabz0r/mac-local-translator

Build Status License: MIT Swift Version Platform

Real-time, fully offline, privacy-friendly conversational translation ๐Ÿ”’

Buy Me A Coffee

๐ŸŒŸ Key Features

  • Fully local: No internet connection required ๐Ÿ“ถ
  • Private & Secure: Your conversations never leave your device ๐Ÿ”
  • Bidirectional: Natural translation between two speakers ๐Ÿ‘ฅ
  • Powerful: Models optimized for Intel and Apple Silicon Macs โšก
  • Intuitive: Elegant, conversation-centric interface ๐Ÿ’ฌ

๐Ÿ” Overview

Mac Local Translator allows you to translate conversations in real-time without relying on cloud services. The app uses advanced local models for speech recognition and translation, ensuring your privacy while delivering excellent performance.

flowchart LR
A[User speech A] -->|Microphone| B[Speech recognition]
B -->|Transcribed text| C[Translation]
C -->|Translated text| D[Text-to-speech]
D -->|Audio| E[User B hears]
E -->|Answers| F[Reverse cycle]
F -->|Microphone| B
Loading

๐Ÿš€ Quick Install

Requirements

  • macOS 12.0 or newer
  • 8 GB RAM minimum (16 GB recommended)
  • 5 GB of available disk space

Method 1: Install from DMG

  1. Download the latest version from the releases page
  2. Mount the DMG file and drag the application into your Applications folder
  3. Launch the application

Method 2: Build from source

# Clone the repository
git clone https://github.com/nabz0r/mac-local-translator.git
cd mac-local-translator

# Install dependencies and download models
make download-models

# Build the application
make build

# Launch the application
make run

๐Ÿ›๏ธ Architecture

The application is built on a modular architecture for easy maintenance and extension.

releasesarchitecture_overviewpage

๐ŸŽฏ User Guide

  1. Language Selection: Choose the source and target languages โ€‹โ€‹in the bar tools
  2. Start: Press the record button or use Cmd+Space
  3. Speak: Speak clearly into your microphone (the audio level indicator will help you)
  4. Listen: The translation will be displayed and pronounced automatically
  5. Reply: Your interlocutor can respond in their language and the cycle continues

๐Ÿ› ๏ธ Technologies used

  • User interface: SwiftUI
  • Speech recognition: Whisper.cpp (optimized version of OpenAI Whisper)
  • Translation: Optimized LibreTranslate/Argos Translate models
  • Text-to-speech: AVSpeechSynthesizer with quality voices

๐Ÿ—ฃ๏ธ Supported languages

  • ๐Ÿ‡ซ๐Ÿ‡ท French
  • ๐Ÿ‡ฌ๐Ÿ‡ง English
  • ๐Ÿ‡ช๐Ÿ‡ธ Spanish
  • ๐Ÿ‡ฉ๐Ÿ‡ช German
  • ๐Ÿ‡ฎ๐Ÿ‡น Italian
  • ๐Ÿ‡ต๐Ÿ‡น Portuguese

More languages โ€‹โ€‹are under development. Check out the roadmap for more information.

๐Ÿค Contribution

We welcome:

  • ๐Ÿ’ป Network Engineers
  • ๐Ÿ‘€ Research Scientists
  • ๐ŸŒŽ Cloud Architects
  • ๐Ÿค– AI/ML Specialists

๐Ÿ“ฑ Contact

๐Ÿ“„ License

MIT License - Innovation without Boundaries

๐Ÿ™ Thanks

About

Local translation app for Mac using speech recognition and offline translation

License:MIT License


Languages

Language:Swift 96.0%Language:Shell 2.1%Language:Makefile 1.9%