voice icon indicating copy to clipboard operation
voice copied to clipboard

[TypeError: Cannot read property 'startSpeech' of null]

Open CoderLzz opened this issue 6 months ago • 22 comments

"react-native": "0.76.9", gradle-8.10.2-all.zip, Error reported when calling the Voice.start ('zh CN ') method:[TypeError: Cannot read property 'startSpeech' of null]

CoderLzz avatar Jul 23 '25 08:07 CoderLzz

Same issue in "react-native": "0.80.1" ,

Azhar7489 avatar Jul 24 '25 06:07 Azhar7489

same here. I was facing same issue on Android only. iOS device working.

mmehul avatar Aug 07 '25 04:08 mmehul

Same issue in "react-native": "0.80.2" any solution?

ObaidHere avatar Aug 07 '25 14:08 ObaidHere

Any alternate of this package

amar557 avatar Aug 13 '25 09:08 amar557

Any update on this issue?

mabdulk avatar Aug 13 '25 15:08 mabdulk

try this @appcitor/react-native-voice-to-text work for me on both iOS and android, react native 0.80

ObaidHere avatar Aug 18 '25 08:08 ObaidHere

try this @appcitor/react-native-voice-to-text work for me on both iOS and android, react native 0.80

it is not working with "react": "19.0.0", "react-native": "0.78.1", "react-native-voice-to-text": "^0.1.4"

amar557 avatar Aug 18 '25 10:08 amar557

try this @appcitor/react-native-voice-to-text work for me on both iOS and android, react native 0.80

it is not working with "react": "19.0.0", "react-native": "0.78.1", "react-native-voice-to-text": "^0.1.4"

try "@appcitor/react-native-voice-to-text": "^0.2.1"

ObaidHere avatar Aug 18 '25 11:08 ObaidHere

Same issue in "react-native": "0.79.5"

EchoCompanyK avatar Aug 18 '25 13:08 EchoCompanyK

try this @appcitor/react-native-voice-to-text work for me on both iOS and android, react native 0.80

Hi, thanks this works, but seems it listens only for a single time, and closes the listner Like the listner dosent stay up to receive further text. it stops after receiving the first text

I don't know, if i am the only one having this issue, because am using this for a bot, and i have to continually receive text, so the listener has to stay open

@ObaidHere

Femtech-web avatar Aug 19 '25 09:08 Femtech-web

try this @appcitor/react-native-voice-to-text work for me on both iOS and android, react native 0.80

Hi, thanks this works, but seems it listens only for a single time, and closes the listner Like the listner dosent stay up to receive further text. it stops after receiving the first text

I don't know, if i am the only one having this issue, because am using this for a bot, and i have to continually receive text, so the listener has to stay open

@ObaidHere

am using it as a global listner only remove then app is closed or moves to background it perfectly working for me.

ObaidHere avatar Aug 21 '25 09:08 ObaidHere

HI i am using this but when i start the recording i get _reactNativeVoiceToText.default.start is not a function (it is undefined).

Any solution would be much appreciated.

try this @appcitor/react-native-voice-to-text work for me on both iOS and android, react native 0.80

it is not working with "react": "19.0.0", "react-native": "0.78.1", "react-native-voice-to-text": "^0.1.4"

try "@appcitor/react-native-voice-to-text": "^0.2.1"

pratham-srivastava-07 avatar Sep 01 '25 10:09 pratham-srivastava-07

no one maintains this repo anymore

why not use https://github.com/jamsch/expo-speech-recognition ?

anon1911 avatar Sep 02 '25 04:09 anon1911

no one maintains this repo anymore

why not use https://github.com/jamsch/expo-speech-recognition ?

because we can not use it in RN cli

amar557 avatar Sep 02 '25 06:09 amar557

no one maintains this repo anymore why not use https://github.com/jamsch/expo-speech-recognition ?

because we can not use it in RN cli

afaik it's another module system (same with nitro) ;; it shouldn't matter if you use RN cli as long as you add the native code for autolinking the native expo modules

https://docs.expo.dev/bare/installing-expo-modules/

anon1911 avatar Sep 02 '25 23:09 anon1911

I am facing same issue, working perfectly on ios but not on android

kirfan-nisum-com avatar Sep 04 '25 14:09 kirfan-nisum-com

Try to disable the new RN architecture (newArchEnabled=false) on gradle.properties. This work for me.

tiagoczaro avatar Sep 08 '25 19:09 tiagoczaro

the issue is with react native new arch this only works when new arch is false

lakshxy7 avatar Sep 09 '25 09:09 lakshxy7

Same issue for us

RobertMetcalfePhorest avatar Sep 10 '25 13:09 RobertMetcalfePhorest

The issue is because when running in new arch, the legacy NativeModules from react native is removed with TurboRegistry to register your native class, which is actually fixed in the library but, they are yet to release it(Don't know why🤷🏻‍♂️)and the library also does not support Interop which is why we are facing this issue.

So, you have to use the master branch directly to get the changes in your node_modules like this

...
 "@react-native-voice/voice": "git+https://github.com/react-native-voice/voice#master",
...

By this way, I got the changes and it was running in my RN 77 new arch. @safaiyeh @wenkesj Please release a new version for this voice package to support new arch!😅

Balasuriya29 avatar Sep 23 '25 03:09 Balasuriya29

Is it working on iOS? I am using this version, and it is not working in iOS.

"@react-native-voice/voice": "npm:[email protected]"

rahulnainwalttn avatar Sep 30 '25 12:09 rahulnainwalttn

does anyone even maitain this repo? if not how can i start maintaining it?

leomuguchia avatar Nov 29 '25 22:11 leomuguchia