React Native binding for high-performance local speech recognition
Top 56.1% on sourcepulse
This project provides React Native bindings for whisper.cpp
, enabling high-performance speech-to-text inference directly within mobile applications. It targets React Native developers seeking to integrate advanced Automatic Speech Recognition (ASR) capabilities, offering both file-based and real-time transcription.
How It Works
The library leverages whisper.cpp
's C++ core for efficient Whisper model execution. It exposes JavaScript APIs for initializing the Whisper context with model files and performing transcription tasks. For iOS, it supports leveraging Core ML for hardware-accelerated inference, falling back to the GGML model if necessary.
Quick Start & Requirements
npm install whisper.rn
npx pod-install
. Extended Virtual Addressing recommended for medium/large models. Microphone permission required for real-time transcription.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
Bundling large models as assets can significantly increase app size; quantized models are recommended for the RN packager due to file size limits. Core ML models are separate assets that need to be managed. Real-time transcription on tvOS is not supported.
2 weeks ago
1 day