KeenASR React Native Plugin
Offline speech recognition SDK for React Native, wrapping the native KeenASR SDK for iOS and Android.
import KeenASR, { onFinalResponse, onPartialResult } from 'keenasr-react-native';// 1. Initialize the SDKawait KeenASR.initialize('keenA1m-nnet3chain-en-us');// 2. Create a decoding graphawait KeenASR.createDecodingGraphFromPhrases('myGraph', [ 'hello world', 'goodbye world',]);// 3. Prepare for listeningawait KeenASR.prepareForListening('myGraph');// 4. Subscribe to resultsconst unsub = onFinalResponse((response) => { console.log(response.asrResult.text); response.release();});// 5. Start listeningawait KeenASR.startListening(); Copy
import KeenASR, { onFinalResponse, onPartialResult } from 'keenasr-react-native';// 1. Initialize the SDKawait KeenASR.initialize('keenA1m-nnet3chain-en-us');// 2. Create a decoding graphawait KeenASR.createDecodingGraphFromPhrases('myGraph', [ 'hello world', 'goodbye world',]);// 3. Prepare for listeningawait KeenASR.prepareForListening('myGraph');// 4. Subscribe to resultsconst unsub = onFinalResponse((response) => { console.log(response.asrResult.text); response.release();});// 5. Start listeningawait KeenASR.startListening();
computeGoP: true
KeenASR React Native Plugin
Offline speech recognition SDK for React Native, wrapping the native KeenASR SDK for iOS and Android.
Quick Start
Key Concepts
computeGoP: truein prepareForListening.