We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi! 馃憢
Firstly, thanks for your work on this project! 馃檪
Today I used patch-package to patch @react-native-voice/voice@3.2.4 for the project I'm working on.
@react-native-voice/voice@3.2.4
The main issue was that whenever bluetooth headphones was connected, The app would crash without recognising any text.
Here is the diff that solved my problem:
diff --git a/node_modules/@react-native-voice/voice/ios/Voice/Voice.m b/node_modules/@react-native-voice/voice/ios/Voice/Voice.m index fd9dad8..3f18776 100644 --- a/node_modules/@react-native-voice/voice/ios/Voice/Voice.m +++ b/node_modules/@react-native-voice/voice/ios/Voice/Voice.m @@ -224,6 +224,8 @@ - (void) setupAndStartRecognizing:(NSString*)localeStr { @try { [mixer installTapOnBus:0 bufferSize:1024 format:recordingFormat block:^(AVAudioPCMBuffer * _Nonnull buffer, AVAudioTime * _Nonnull when) { //Volume Level Metering + //Buffer frame can be reduced, if you need more output values + [buffer setFrameLength:buffer.frameCapacity]; UInt32 inNumberFrames = buffer.frameLength; float LEVEL_LOWPASS_TRIG = 0.5; if(buffer.format.channelCount>0)
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi! 馃憢
Firstly, thanks for your work on this project! 馃檪
Today I used patch-package to patch
@react-native-voice/voice@3.2.4
for the project I'm working on.The main issue was that whenever bluetooth headphones was connected, The app would crash without recognising any text.
Here is the diff that solved my problem:
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: