voice icon indicating copy to clipboard operation
voice copied to clipboard

RN new arch support is not available on latest version

Open asafkorem opened this issue 1 year ago • 22 comments

Hey, We saw that there are some fixes available on master for RN new arch. Can you please release it?

asafkorem avatar Nov 04 '25 13:11 asafkorem

@asafkorem there's no maintainers on this library anymore, i've switched to expo-speech-recognition

anon1911 avatar Nov 08 '25 23:11 anon1911

Any other alternative for the React Native CLI?

Mridul2820 avatar Nov 09 '25 10:11 Mridul2820

What to do for CLI ?

dprajapati1179 avatar Nov 24 '25 04:11 dprajapati1179

Does anyone have any good suggestions for a CLI?

AM7023 avatar Nov 24 '25 10:11 AM7023

I have fixed and published separately you can try it out react-native-voice

dev-amirzubair avatar Nov 25 '25 13:11 dev-amirzubair

I have fixed and published separately you can try it out react-native-voice

Let’s try it, and thanks for the suggestion.

AM7023 avatar Nov 27 '25 06:11 AM7023

@AM7023 once you try please post the results here so others can also use the same.

and if possible @dev-amirzubair can you share what is changed in your version ?

dprajapati1179 avatar Nov 27 '25 06:11 dprajapati1179

@dprajapati1179 you can also visit the link I have mentioned the changes:

✅ New Architecture Support - Works with Fabric and TurboModules ✅ Bridgeless Mode - Full support for React Native's Bridgeless mode ✅ React Native 0.76+ - Tested and working with the latest RN versions ✅ Fixed Android Event Emission - Events properly reach JavaScript in new architecture ✅ Fixed iOS TurboModule Registration - Proper fallback handling for iOS ✅ Clean TypeScript Types - Updated type definitions

dev-amirzubair avatar Nov 27 '25 08:11 dev-amirzubair

@dev-amirzubair Your solution is working on IOS but on Android its not working. here is error: Error: Speech recognition not available

waleediqbal1717 avatar Nov 27 '25 08:11 waleediqbal1717

@waleediqbal1717 Android: No speech recognition services found Install the Google Search app from Play Store. also test it on real device on simulator it will not work properly

dev-amirzubair avatar Nov 27 '25 09:11 dev-amirzubair

@dev-amirzubair i have duplication error with your @dev-amirzubair/react-native-voice and this @react-native-voice/voice package during expo prebuild . what should i do in order to process

sakthinaveenm avatar Nov 27 '25 09:11 sakthinaveenm

@sakthinaveenm uninstall @react-native-voice/voice

waleediqbal1717 avatar Nov 27 '25 09:11 waleediqbal1717

when uninstalled @react-native-voice/voice it shows error like @react-native-voice/voice package is missing

sakthinaveenm avatar Nov 27 '25 09:11 sakthinaveenm

when uninstalled @react-native-voice/voice it shows error like @react-native-voice/voice package is missing

Because the name also changed so change all your import statements with new name of thee package.

dprajapati1179 avatar Nov 27 '25 09:11 dprajapati1179

when uninstalled @react-native-voice/voice it shows error like @react-native-voice/voice package is missing

Because the name also changed so change all your import statements with new name of thee package.

PluginError: Unable to resolve a valid config plugin for @dev-amirzubair/react-native-voice. • main export of @dev-amirzubair/react-native-voice does not appear to be a config plugin: the following error was thrown when importing /Users/kpost/Desktop/Projects/demo/node_modules/@dev-amirzubair/react-native-voice/app.plugin.js: Cannot find module '@react-native-voice/voice/package.json'

sakthinaveenm avatar Nov 27 '25 10:11 sakthinaveenm

when uninstalled @react-native-voice/voice it shows error like @react-native-voice/voice package is missing

Because the name also changed so change all your import statements with new name of thee package.

PluginError: Unable to resolve a valid config plugin for @dev-amirzubair/react-native-voice. • main export of @dev-amirzubair/react-native-voice does not appear to be a config plugin: the following error was thrown when importing /Users/kpost/Desktop/Projects/demo/node_modules/@dev-amirzubair/react-native-voice/app.plugin.js: Cannot find module '@react-native-voice/voice/package.json'

Uninstall both packages first, then install @dev-amirzubair/react-native-voice. It will work because my library depends on the original React Native Voice packages. If you install @dev-amirzubair/react-native-voice and then uninstall the original voice package afterward, you may run into issues.

dev-amirzubair avatar Nov 27 '25 11:11 dev-amirzubair

Still not working. I tried everything. I'm testing on real device and Google is installed as well. startSpeech is returning null.

SenerPhoenix avatar Dec 28 '25 16:12 SenerPhoenix

Still not working. I tried everything. I'm testing on real device and Google is installed as well. startSpeech is returning null.

If you previously installed the original library, please remove it first. Then install @dev-amirzubair/react-native-voice from the following link: https://www.npmjs.com/package/@dev-amirzubair/react-native-voice After installation, clean the build folder, rebuild the project, and try again.

dev-amirzubair avatar Dec 29 '25 11:12 dev-amirzubair

Still not working. I tried everything. I'm testing on real device and Google is installed as well. startSpeech is returning null.

If you previously installed the original library, please remove it first. Then install @dev-amirzubair/react-native-voice from the following link: https://www.npmjs.com/package/@dev-amirzubair/react-native-voice After installation, clean the build folder, rebuild the project, and try again.

Hello. Error: Speech recognition is not available on this device. I try clean build folder, delete node_modules and have Google Search App on my phone but it's still show this message.

 useEffect(() => {
    // Request microphone permission on Android
    const requestMicrophonePermission = async () => {
      if (Platform.OS === 'android') {
        try {
          const granted = await PermissionsAndroid.request(
            PermissionsAndroid.PERMISSIONS.RECORD_AUDIO,
            {
              title: 'Quyền Microphone',
              message:
                'App cần quyền truy cập microphone để nhận diện giọng nói',
              buttonNeutral: 'Hỏi lại sau',
              buttonNegative: 'Từ chối',
              buttonPositive: 'Đồng ý',
            },
          );
          if (granted === PermissionsAndroid.RESULTS.GRANTED) {
            console.log('Microphone permission granted');
          } else {
            console.log('Microphone permission denied');
          }
        } catch (err) {
          console.warn(err);
        }
      }
    };

    requestMicrophonePermission();

    Voice.onSpeechStart = onSpeechStart;
    Voice.onSpeechEnd = onSpeechEnd;
    Voice.onSpeechResults = onSpeechResults;
    Voice.onSpeechError = onSpeechError;

    return () => {
      Voice.destroy().then(Voice.removeAllListeners);
    };
  }, []);
Image

dktechprojectphuc avatar Dec 30 '25 07:12 dktechprojectphuc

I have fixed and published separately you can try it out react-native-voice

In iOS, I get an error as soon as I call the start function, and on Android, I get an error as soon as I press stop

Image Image

vuongnh1705 avatar Jan 15 '26 06:01 vuongnh1705