Skip to content
New issue

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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using default framelength (Fixed IOS Crashes) #361

Merged

Conversation

DeepakM02
Copy link
Contributor

  1. Prevent app crashing
  2. Using default frame length

@DeepakM02 DeepakM02 changed the title Using default framelength Using default framelength (Fixed IOS Crashes) Oct 18, 2021
ios/Voice/Voice.m Outdated Show resolved Hide resolved
@@ -224,7 +225,7 @@ - (void) setupAndStartRecognizing:(NSString*)localeStr {
[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];
// [buffer setFrameLength: buffer.frameCapacity];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we make this a prop? so people can customize

Copy link
Contributor Author

@DeepakM02 DeepakM02 Dec 1, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@safaiyeh Do we need to set framelength?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotcha, checked the previous commits looks like we don't need it. Lets clean up the code and delete the line & comments

@safaiyeh
Copy link
Member

Thanks @DeepakM02 left a couple comments

@DeepakM02
Copy link
Contributor Author

@safaiyeh you can review this

@safaiyeh safaiyeh merged commit 8a6086a into react-native-voice:master Mar 13, 2022
safaiyeh pushed a commit that referenced this pull request Mar 13, 2022
## [3.2.3](v3.2.2...v3.2.3) (2022-03-13)

### Bug Fixes

* **iOS:** Using default framelength ([#361](#361)) ([8a6086a](8a6086a))
@safaiyeh
Copy link
Member

🎉 This PR is included in version 3.2.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants