Tauri Plugin: Device AI APIs
Speech, vision, translation, and a language model for Tauri apps
15725/mo
What is it?
A Tauri v2 plugin for the AI APIs built into the operating system on iOS, Android, macOS, and Windows. Your app calls one set of TypeScript functions, and the plugin runs them with the AI features the device already has.
It also includes a reusable device-ai Rust crate for direct use on desktop.
Key Features
- Speech Speech recognition from the microphone or an audio file, live transcripts, and text-to-speech
- Vision OCR, barcode detection, face detection, and image classification
- Text Language identification and translation
- Language model Generation, streaming, chat sessions, structured output, and built-in tools, on the device
- One API The same TypeScript functions and the same error shape on every platform
- Capability detection
getCapabilities()reports what the current device supports
Platform Support
Feature support differs by platform. For example, translation and the language model need macOS 26 or iOS 26 or later. The README has the full platform table and the requirements for each target.
Tauri Plugin: Device AI APIs
On-Device AI for Tauri Apps
View on GitHub →