voice
voice copied to clipboard
It's not working with iOS version 10.3.1
Bug
react-native-community/voice ( 1.1.3 version ) is not working with new iOS version ( 10.3.1 ) anymore. Until this version everything worked fine but now just faced a problem in my real device, even though in simulator was working well. Than i noticed that in my phone i'm using 10.3.1 iOS version and in simulator i was using an older version.
In my device, after i'm starting voice recognition ( Voice.start('en-US') ), first is calling onSpeechStart callback, than is catching this error:
Object {
"error": Object {
"code": "start_recording",
"message": "required condition is false: IsFormatSampleRateAndChannelCountValid(format)",
},
}
Also I downloaded 13.3.1 in simulators ( xcode, preferences, components ) just to be sure that is iOS version fault. It was not working in simulators with that version either, but is catching different error from real iphone. First, when i'm starting voice recognition, i'm not facing any error even though is not recognizing anything. After 10 seconds is catching this error:
Object {
"error": Object {
"code": "recognition_fail",
"message": "203/Retry",
},
}
With older version than 13.3.1 everything works well ( iOS ).
React Native Environment Info:
System:
OS: macOS 10.14.4
CPU: (8) x64 Intel(R) Core(TM) i7-4850HQ CPU @ 2.30GHz
Memory: 713.27 MB / 16.00 GB
Shell: 5.3 - /bin/zsh
Binaries:
Node: 10.19.0 - /usr/local/opt/node@10/bin/node
Yarn: 1.22.0 - /usr/local/bin/yarn
npm: 6.13.4 - /usr/local/opt/node@10/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
IDEs:
Android Studio: 3.1 AI-173.4907809
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
react: 16.8.3 => 16.8.3
react-native: https://github.com/expo/react-native/archive/sdk-35.0.0.tar.gz => 0.59.8
npmGlobalPackages:
react-native-cli: 2.0.1
In the same screen i was using video from expo ( expo-av ), maybe it was a conflict or smth like that with expo, because when i changed video from expo-av to react-native-video, everything is working properly in all versions of iOS.
Did you manage to fix this? Or is there a workaround available?
I have the same issue. I use expo-av to play background music and react-native-voice.
Do you have a solution to use both ?
Guys! I Founded a solution. For me helped changing of Language which Voice lib listen. For English should be as 'en-GB'. Not others variants. await Voice.start('en-GB'); <--- like this.
@Boichonok ... i had tried like you said... but it didn't work for me.. getting the same error....
Has anyone found the solution? I’m getting the same error. onSpeechError: {"error": {"code": "recognition_fail", "message": "203/Retry"}}