![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@picovoice/cheetah-react-native
Advanced tools
Made in Vancouver, Canada by Picovoice
Cheetah is an on-device speech-to-text engine. Cheetah is:
This binding is for running Cheetah on React Native 0.62.2+ on the following platforms:
To start install, ensure you have installed yarn and CocoaPods. Then, add the following native modules to your react-native project:
yarn add @picovoice/cheetah-react-native
or
npm i @picovoice/cheetah-react-native --save
Link the iOS packageL
cd ios && pod install && cd ..
NOTE: Due to a limitation in React Native CLI auto-linking, the native module cannot be included as a transitive dependency. If you are creating a module that depends on cheetah-react-native, you will have to list these as peer dependencies and require developers to install it alongside.
Cheetah requires a valid Picovoice AccessKey
at initialization. AccessKey
acts as your credentials when using Cheetah SDKs.
You can get your AccessKey
for free. Make sure to keep your AccessKey
secret.
Signup or Login to Picovoice Console to get your AccessKey
.
Create a custom model using the Picovoice Console or use the default model.
To add a Leopard model file to your Android application, add the file as a bundled resource by placing it under the assets
directory of your Android application.
To add a Leopard model file to your iOS application, add the file as a bundled resource by selecting Build Phases in Xcode
and adding it to the Copy Bundle Resources
step.
Transcribe audio:
import {Cheetah, CheetahErrors} from '@picovoice/cheetah-react-native';
const getAudioFrame = () => {
// get audio frames
}
try {
while (1) {
const cheetah = await Cheetah.create("${ACCESS_KEY}", "${MODEL_FILE}")
const {transcript, isEndpoint} = await cheetah.process(getAudioFrame())
if (isEndpoint) {
const {transcript} = await cheetah.flush()
}
}
} catch (err: any) {
if (err instanceof CheetahErrors) {
// handle error
}
}
Replace ${ACCESS_KEY}
with your AccessKey
obtained from Picovoice Console and ${MODEL_FILE}
with the file name of the Cheetah model file.
Finally, when done be sure to explicitly release the resources using cheetah.delete()
.
For example usage refer to our React Native demo application.
FAQs
Picovoice Cheetah React Native binding
The npm package @picovoice/cheetah-react-native receives a total of 27 weekly downloads. As such, @picovoice/cheetah-react-native popularity was classified as not popular.
We found that @picovoice/cheetah-react-native demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.