# Repository Briefing: argmaxinc/argmax-oss-swift
> Source: https://repoforai.com/repo/argmaxinc/argmax-oss-swift (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/argmaxinc/argmax-oss-swift
- **Category**: Voice, Vision & Video (语音 / 视觉 / 视频生成)
- **Primary Language**: Swift
- **License**: MIT
- **Engineering Health**: A (83/100 · Maintenance 26/35 · Adoption 20/25 · Releases 17/20 · License 20/20)
- **Latest Release**: v1.1.1 (2026-10-08) — https://github.com/argmaxinc/argmax-oss-swift/releases
- **Review Snapshot**: 2026-12-01
- **Deployment / Stack Signals**: Local AI, CLI, API
- **Momentum**: 6,482 ★ total (+2 24h / +8 7d) · 645 forks
- **Topics**: `inference`, `ios`, `macos`, `pyannote`, `qwen3-tts`, `speaker-diarization`, `speakerkit`, `speech-recognition`, `speech-to-text`, `swift`, `text-to-speech`, `transformers`
- **When to Use**: Best for: Apple-native apps that need local transcription, speaker diarization, or speech synthesis, and teams that want to reuse OpenAI-style file transcription clients against an Apple host. Skip if: You need a Linux or Android runtime, managed capacity, full OpenAI Audio API parity, or a ready-made real-time WebSocket service with speaker attribution in the open-source edition.

## Overview
```text
### Architecture & Core Mechanics
Argmax is an Apple-focused Swift inference SDK, not a single speech pipeline. SwiftPM exposes three independent products: WhisperKit for Whisper speech recognition, SpeakerKit for Pyannote diarization, and TTSKit for Qwen3-TTS synthesis. ArgmaxOSS imports all three, and the v1.0.0 consolidation also ships ArgmaxCore. WhisperKit loads Core ML Whisper variants, including custom conversions from a configurable Hugging Face repository; TTSKit loads its tokenizer and Core ML models lazily on first generation.

The integration surface is native Swift with async initialization and inference calls, plus an argmax-cli executable for shell workflows. An optional build adds an HTTP adapter for WhisperKit: POST /v1/audio/transcriptions and POST /v1/audio/translations offer an OpenAI Audio API subset, with Server-Sent Events for output streaming. The OpenAPI specification supports client generation, but these routes do not make the three kits a unified network API.

### Key Capabilities & Differentiators
WhisperKit transcribes WAV, MP3, M4A, and FLAC, with automatic or explicit language selection and word- or segment-level timestamps. The local server also translates to English and exposes prompt, temperature, and token log-probability controls. The CLI can take microphone input; that is distinct from the server's SSE output for uploaded audio. For long files, incremental loading reads bounded chunks from disk at VAD boundaries and preserves the full-file VAD chunking behavior. v1.1.0 reports more than 70% lower peak memory for a three-hour input.

SpeakerKit exposes speaker centroid embeddings for downstream matching. TTSKit provides nine built-in voices across ten languages and can begin playback before generation finishes, with automatic, fixed, immediate, or full-generation buffering. Its decoder processes one RVQ frame per call in latency mode or four in throughput mode, corresponding to about 80 ms and 320 ms of audio per call. Those values describe audio payload, not measured wall-clock latency.

### Trade-offs & Limitations
Compared with a hosted Whisper API, the SDK can keep recordings on the Apple device or host doing inference, and a provisioned native app need not depend on a network request for each job. In exchange, the application team owns artifact provisioning, cold-start behavior, memory pressure, and capacity under concurrent load. The default 0.6B TTS variant is roughly a 1 GB download; the higher-quality macOS-only option is roughly 2.2 GB. Neither download size establishes runtime memory use. Lower first-audio latency and higher decoder throughput also require different configurations.

The HTTP adapter is useful for reusing file-based OpenAI clients, but only json and verbose_json responses are supported, and the served model is chosen at process startup rather than per request. SSE streams the output; it is not the Pro server's WebSocket path for live audio, and the open-source interface should not be selected on the assumption that it provides real-time speaker-attributed transcription. The fair replacement test is to run representative files on the intended hardware and compare accuracy, latency, and concurrency against the hosted service.

### Hardware & Deployment Guide
For native integration, add the SwiftPM package in Xcode or Package.swift and select the needed products. The listed setup prerequisites are macOS 14+ and Xcode 16+; TTSKit specifically requires macOS 15+ or iOS 18+. For CLI testing, run make setup and make download-model MODEL=large-v3-v20240930_626MB with Git LFS installed, then pass a local model directory via --model-path. Inference can run offline once the required artifacts are provisioned; the default TTSKit initializer downloads its model on first run.

For HTTP integration, build with make build-local-server and run BUILD_ALL=1 swift run argmax-cli serve --model tiny. Start with a local-only integration and establish access controls before exposing the service to other hosts. v1.0.0 consolidated the SDK and added full Swift 6 concurrency support. v1.1.0 reduced long-file transcription memory and reports about a 40% end-to-end speedup for Qwen3-TTS; v1.1.1 addresses crashes, text chunking, and model download efficiency and error handling.
```

## Key Capabilities
```text
- Package layout: SwiftPM exposes WhisperKit, SpeakerKit, and TTSKit separately or together through ArgmaxOSS.
- Long recordings: Incremental disk reads use VAD boundaries; v1.1.0 reports over 70% peak-memory savings for a three-hour input.
- Speaker diarization: SpeakerKit uses Pyannote and exposes speaker centroid embeddings for downstream matching.
- Speech synthesis: Core ML Qwen3-TTS offers nine built-in voices, ten languages, and configurable buffering before playback.
- Decoder tuning: The latency mode processes one RVQ frame per call (~80 ms of audio); throughput mode processes four (~320 ms).
- Local HTTP interface: argmax-cli serve exposes OpenAI-style transcription and translation routes with SSE output and word or segment timestamps.
```

## Quick Start / Clone
```bash
brew install whisperkit-cli
```
