react-native-nuance
v0.0.1
Published
A React-native module for interfacing with the Nuance Voice-recognition system for iOS
Downloads
6
Readme
Nuance Communications SDK for React Native
Nuance Communications SDK module for React Native. It lets developers embed voice recognition into React Native apps for iOS (since the Android platform has native services).
Example
Getting started
iOS
Make sure you have "React Native" project created with
react-native init
cd
into a project directory wherepackage.json
file is located.Run
npm install react-native-nuance@latest --save
Start XCode and open project with it.
Go get yourself a free Nuance Developer account over at https://developer.nuance.com/public/index.php?task=home
Download the Nuance SDK
Download the SpeechKit.framework.
Drag the SpeechKit.framework to the Frameworks group of your Xcode project.
Set the following value under your Xcode project (unless you are using C++ in your application already). Build Settings tab => Linking => Other Linker Flags => -l"c++"
In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
Go to
node_modules
➜react-native-nuance/ios
and addNuance.xcodeproj
Run your project (
Cmd+R
)
Android
Not supported. Go visit the kind folks over at (react-native-android-voice)[https://www.npmjs.com/package/react-native-android-voice]
Usage
import
the react-native-nuance
module:
import NuanceManager from "react-native-nuance";
Add event listeners using DeviceEventEmitter
:
DeviceEventEmitter.addListener(
'ConnectionSuccessful',
() => {
console.log('Connection successful');
}
);
Connect the SDK to the cloud:
NuanceManager.connect();