voice icon indicating copy to clipboard operation
voice copied to clipboard

null is not an object (evaluating 'Voice.startSpeech') in Expo

Open vishnu-neopay opened this issue 3 years ago • 19 comments

null is not an object (evaluating 'Voice.startSpeech')
at node_modules/@react-native-voice/voice/dist/index.js:66:16 in Promise$argument_0
at http://192.168.43.200:19000/index.bundle?platform=android&dev=true&hot=false&minify=false:203845:26 in start

Apply this change in app.json or app.config.js:

{
  "expo": {
    "plugins": ["@react-native-voice/voice"]
  }
}

Next, rebuild app as "Adding custom native code" guide.

expo run:android

getting this issue

vishnu-neopay avatar Feb 23 '22 16:02 vishnu-neopay

You only changed this? Before everything worked fine?

Jan-Graf avatar Mar 08 '22 17:03 Jan-Graf

yes i only change this..

vishnu-neopay avatar Mar 10 '22 13:03 vishnu-neopay

I got the same and I am kinda stucked.. Even tried it with the react-native- CLI.

jolo-dev avatar Apr 04 '22 08:04 jolo-dev

This error only on emmulator or expo go app that you install in your mobile if check this library are working So build a eas development -p all --profile platform and also expo dev client use so library is working("https://docs.expo.dev/development/getting-started/#developing-your-app")

awii258 avatar Apr 06 '22 07:04 awii258

issue

Same issue here!!!

danielshaban1 avatar Apr 07 '22 11:04 danielshaban1

Any solution?

danielshaban1 avatar May 06 '22 09:05 danielshaban1

it will not run in development mode.. just make a build and run app

vishnu-neopay avatar May 06 '22 10:05 vishnu-neopay

Can this project run with the standard Expo account? Without ejecting the APP or do I need the EAS Plan?

inglesuniversal avatar May 29 '22 04:05 inglesuniversal

any progress on this issue? This project is still maintained?

josethz00 avatar Jun 22 '22 02:06 josethz00

it will not run in development mode.. just make a build and run app

Did you get it to work at all? I have followed all instructions but it did not work.

aha85b avatar Jul 21 '22 04:07 aha85b

You have to eject your expo app in order to use the native functionalities, like audio recording.

mchriss avatar Jul 21 '22 09:07 mchriss

You have to eject your expo app in order to use the native functionalities, like audio recording.

Even after ejecting the app, it is still does not work.

aha85b avatar Jul 21 '22 09:07 aha85b

Did you add these lines to your AndroidManifest file?

<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<queries> <package android:name="com.google.android.googlequicksearchbox"/> </queries>

mchriss avatar Jul 21 '22 10:07 mchriss

I have the same issue: WARN Possible Unhandled Promise Rejection (id: 0): TypeError: null is not an object (evaluating 'Voice.startSpeech') http://192.168.1.71:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false:119711:18 tryCallTwo@http://192.168.1.71:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false:30613:9 doResolve@http://192.168.1.71:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false:30777:25 Promise@http://192.168.1.71:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false:30636:14 start@http://192.168.1.71:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false:119701:27 http://192.168.1.71:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false:119505:35 generatorResume@[native code] asyncGeneratorStep@http://192.168.1.71:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false:25072:26 _next@http://192.168.1.71:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false:25094:29 http://192.168.1.71:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false:25101:14 tryCallTwo@http://192.168.1.71:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false:30613:9 doResolve@http://192.168.1.71:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false:30777:25 Promise@http://192.168.1.71:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false:30636:14 http://192.168.1.71:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false:25090:25 empezarVozATexto@http://192.168.1.71:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false:119510:26 onPress@http://192.168.1.71:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false:119545:34 _performTransitionSideEffects@http://192.168.1.71:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false:67455:22 _receiveSignal@http://192.168.1.71:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false:67397:45 onResponderRelease@http://192.168.1.71:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false:67237:34 invokeGuardedCallbackProd@http://192.168.1.71:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false:3109:21 invokeGuardedCallback@http://192.168.1.71:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false:3213:42 invokeGuardedCallbackAndCatchFirstError@http://192.168.1.71:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false:3217:36 executeDispatch@http://192.168.1.71:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false:3293:48 executeDispatchesInOrder@http://192.168.1.71:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false:3313:26 executeDispatchesAndRelease@http://192.168.1.71:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false:4662:35 forEach@[native code] forEachAccumulated@http://192.168.1.71:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false:3843:22 runEventsInBatch@http://192.168.1.71:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false:4686:27 runExtractedPluginEventsInBatch@http://192.168.1.71:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false:4766:25
http://192.168.1.71:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false:4741:42 batchedUpdates$1@http://192.168.1.71:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false:17151:20 batchedUpdates@http://192.168.1.71:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false:4648:36 _receiveRootNodeIDEvent@http://192.168.1.71:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false:4740:23 receiveTouches@http://192.168.1.71:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false:4794:34 __callFunction@http://192.168.1.71:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false:24031:36 http://192.168.1.71:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false:23759:31 __guard@http://192.168.1.71:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false:23985:15 callFunctionReturnFlushedQueue@http://192.168.1.71:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false:23758:21
callFunctionReturnFlushedQueue@[native code]

dgaviriag avatar Sep 28 '22 06:09 dgaviriag

Did you guys found any solution to this problem??

AqibNaeem19 avatar Nov 21 '22 14:11 AqibNaeem19

hi guys, the error null is not an object (evaluating 'Voice.startSpeech') is also blocking for me, has anyone found anything?

svanin91 avatar Nov 23 '22 12:11 svanin91

Hi, did anyone solve it?

Parcurcik avatar Nov 29 '22 16:11 Parcurcik

hi, i solved it, you need to run this project with android SDK

Parcurcik avatar Nov 30 '22 15:11 Parcurcik

Hey @Parcurcik , what do you mean by Run with android sdk ?

My Query : https://stackoverflow.com/questions/75742318/react-native-voice-speech-to-text-not-working-in-android

ayushgupta-1 avatar Mar 16 '23 12:03 ayushgupta-1