RN new arch support is not available on latest version
Hey, We saw that there are some fixes available on master for RN new arch. Can you please release it?
@asafkorem there's no maintainers on this library anymore, i've switched to expo-speech-recognition
Any other alternative for the React Native CLI?
What to do for CLI ?
Does anyone have any good suggestions for a CLI?
I have fixed and published separately you can try it out react-native-voice
I have fixed and published separately you can try it out react-native-voice
Let’s try it, and thanks for the suggestion.
@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 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 Your solution is working on IOS but on Android its not working. here is error: Error: Speech recognition not available
@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 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 uninstall @react-native-voice/voice
when uninstalled @react-native-voice/voice it shows error like @react-native-voice/voice package is missing
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.
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'
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.
Still not working. I tried everything. I'm testing on real device and Google is installed as well. startSpeech is returning null.
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.
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);
};
}, []);
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