voice icon indicating copy to clipboard operation
voice copied to clipboard

Cannot work with Expo 53

Open abdulCodeSnip opened this issue 7 months ago • 8 comments

🤖 Android build failed: Gradle build failed with an unknown error. See logs for the "Run gradlew" (https://expo.dev/accounts/abduldevqadeer/projects/speech-to-text/builds/1e9a89be-7bf0-47e0-bdd9-b0bf76e06f2e#run-gradlew) phase for more information.

Whenever I use the "@react-native-voice/voice", the build fails, but without it, it builds the app perfectly, even though I've generated and downloaded the .apk file from EAS, and installed it on my local device. Using "@react-native-voice/voice" makes it difficult to build.

abdulCodeSnip avatar May 14 '25 17:05 abdulCodeSnip

I'm having the same issue as well.

RamezzE avatar May 16 '25 12:05 RamezzE

As my last attempt to the @react-native-voice/voice, it doesn't work, but I saw something that works for me in android emulator to convert your voices in actual text. These are the steps to follow and I hope you'll get the result 100%.

  1. Make sure you've installed android studio and nodejs.
  2. Make sure you've an emulator or a real device to work with, because the voice recognition needs build to test it on a real device.
  3. A package "expo-speech-recognition" should be installed in your project. see documentation of expo-speech-recognition
  4. Next you'll need to build your project, because it won't work with Expo-Go.
  5. Run your project using "yarn expo run:android" or "npx expo run:android". After a few minutes of completing the configuration, your project will be in build, and you can use it as your own expo version.
  6. Before running the project and writing the code for "expo-speech-recognition" make sure you add the permissions in your app.json file.
  7. Hope it will work for everyone who read this comment. Thank You, if still doesn't work you can ask me here

abdulCodeSnip avatar May 17 '25 08:05 abdulCodeSnip

As my last attempt to the @react-native-voice/voice, it doesn't work, but I saw something that works for me in android emulator to convert your voices in actual text. These are the steps to follow and I hope you'll get the result 100%.

  1. Make sure you've installed android studio and nodejs.
  2. Make sure you've an emulator or a real device to work with, because the voice recognition needs build to test it on a real device.
  3. A package "expo-speech-recognition" should be installed in your project. see documentation of expo-speech-recognition
  4. Next you'll need to build your project, because it won't work with Expo-Go.
  5. Run your project using "yarn expo run:android" or "npx expo run:android". After a few minutes of completing the configuration, your project will be in build, and you can use it as your own expo version.
  6. Before running the project and writing the code for "expo-speech-recognition" make sure you add the permissions in your app.json file.
  7. Hope it will work for everyone who read this comment. Thank You, if still doesn't work you can ask me here

Hi, I got stuck when run ios, it got code 65 error. I use repack, expo 53.0.11, and newest version expo-speech-regconition

nameishuy avatar Jun 11 '25 01:06 nameishuy

for your knowledge, "expo-speech-recognition" only works with android, it doesn't work with "IOS", so for IOS, either you've to buy and API such as "OpenAI", "Google Speech". Or you can use open source model from OpenAI "whisper", which only works with python and c++

abdulCodeSnip avatar Jul 23 '25 18:07 abdulCodeSnip

for your knowledge, "expo-speech-recognition" only works with android, it doesn't work with "IOS", so for IOS, either you've to buy and API such as "OpenAI", "Google Speech". Or you can use open source model from OpenAI "whisper", which only works with python and c++

That's incorrect. It uses the same underlying SFSpeechRecognizer as this library does.

jamsch avatar Jul 23 '25 21:07 jamsch

In my opinion I think this library only work for android right now, I didin't try it for IOS, but with Expo it doens't work, you've to build your application to use this library

abdulCodeSnip avatar Jul 27 '25 12:07 abdulCodeSnip

Same issue did anyone solve?

cheraff avatar Sep 02 '25 18:09 cheraff

As my last attempt to the @react-native-voice/voice, it doesn't work, but I saw something that works for me in android emulator to convert your voices in actual text. These are the steps to follow and I hope you'll get the result 100%.

  1. Make sure you've installed android studio and nodejs.
  2. Make sure you've an emulator or a real device to work with, because the voice recognition needs build to test it on a real device.
  3. A package "expo-speech-recognition" should be installed in your project. see documentation of expo-speech-recognition
  4. Next you'll need to build your project, because it won't work with Expo-Go.
  5. Run your project using "yarn expo run:android" or "npx expo run:android". After a few minutes of completing the configuration, your project will be in build, and you can use it as your own expo version.
  6. Before running the project and writing the code for "expo-speech-recognition" make sure you add the permissions in your app.json file.
  7. Hope it will work for everyone who read this comment. Thank You, if still doesn't work you can ask me here

That package has been moved to expo-speech-recognition

jocanola avatar Oct 16 '25 14:10 jocanola