An open API service indexing awesome lists of open source software.

https://github.com/nabz0r/mac-local-translator

Local translation app for Mac using speech recognition and offline translation
https://github.com/nabz0r/mac-local-translator

macos offline openai shell speech-recognition swift wisper

Last synced: 3 months ago
JSON representation

Local translation app for Mac using speech recognition and offline translation

Awesome Lists containing this project

README

        

[![Build Status](https://img.shields.io/github/workflow/status/nabz0r/mac-local-translator/CI?style=flat-square)](https://github.com/nabz0r/mac-local-translator/actions)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square)](https://opensource.org/licenses/MIT)
[![Swift Version](https://img.shields.io/badge/Swift-5.7-orange.svg?style=flat-square)](https://swift.org)
[![Platform](https://img.shields.io/badge/Platform-macOS%2012%2B-lightgrey?style=flat-square)](https://www.apple.com/macos/)

> **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.

```mermaid
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
```

## ๐Ÿš€ 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](https://github.com/nabz0r/mac-local-translator/releases)
2. Mount the DMG file and drag the application into your Applications folder
3. Launch the application

### Method 2: Build from source

```bash
# 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](https://github.com/nabz0r/mac-local-translator/docs/architecture_overview.md)

## ๐ŸŽฏ 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](ROADMAP.md) for more information.

## ๐Ÿค Contribution

We welcome:

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

## ๐Ÿ“ฑ Contact

- ๐Ÿ“ง Email: [email protected]
- ๐Ÿ™ GitHub: [@nabz0r](https://github.com/nabz0r)

## ๐Ÿ“„ License

[MIT License](LICENSE) - Innovation without Boundaries

## ๐Ÿ™ Thanks

- [OpenAI Whisper](https://github.com/openai/whisper) for the speech recognition model
- [LibreTranslate](https://github.com/LibreTranslate/LibreTranslate) for the translation models