diff --git a/evi-react-native-example/README.md b/evi-react-native-example/README.md index 41238606..2ada95ab 100644 --- a/evi-react-native-example/README.md +++ b/evi-react-native-example/README.md @@ -9,6 +9,8 @@ This project features a sample implementation of Hume's [Empathic Voice Interfac ## Instructions +**Note:** This requires a Node version of 18.14 or greater. + 1. Install and build ```shell # Install dependencies @@ -28,6 +30,22 @@ This project features a sample implementation of Hume's [Empathic Voice Interfac npm run ios ``` +### Running on your device + +**Note:** This assumes you've already set up your [iOS device in Developer Mode](https://docs.expo.dev/get-started/set-up-your-environment/?platform=ios&device=physical&mode=development-build&buildEnv=local) and installed the corresponding simulator in XCode. + +To run on your device: + +1. Open `app.json` and edit the `ios.bundleIdentifier` value to be unique. + +2. After running the "Install and build" step above, open `ios/EVIExample.xcworkspace` in XCode, select a development team in the Signing & Capabilities editor, and ensure the Signing Certificate is automatically set. + +3. Run the dev server + + ```shell + npm run ios:device + ``` + ## Notes * **Echo cancellation**. Echo cancellation is important for a good user experience using EVI. Without echo cancellation, EVI will detect its own speech as user interruptions, and will cut itself off and become incoherent. * Echo cancellation doesn't seem to work using the iOS simulator when forwarding audio from the host. diff --git a/evi-react-native-example/package.json b/evi-react-native-example/package.json index 075ed72b..ee3b5ca1 100644 --- a/evi-react-native-example/package.json +++ b/evi-react-native-example/package.json @@ -5,6 +5,7 @@ "scripts": { "start": "expo start", "ios": "expo run:ios", + "ios:device": "expo run:ios --device", "web": "expo run:web", "android": "expo run:android" }, @@ -15,7 +16,7 @@ "hume": "^0.9.2", "react": "18.3.1", "react-dom": "18.2.0", - "react-native": "0.76.2", + "react-native": "0.76.7", "react-native-web": "~0.19.13" }, "devDependencies": {