Skip to content

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
@@ -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

clear logs and comments
@DeepakM02 DeepakM02 requested a review from safaiyeh December 6, 2021 18:21
@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 📦🚀

roberto-devp added a commit to roberto-devp/voice that referenced this pull request Sep 26, 2024
## [3.2.3](react-native-voice/voice@v3.2.2...v3.2.3) (2022-03-13)

### Bug Fixes

* **iOS:** Using default framelength ([#361](react-native-voice/voice#361)) ([8a6086a](react-native-voice/voice@8a6086a))
oleksiy271 pushed a commit to oleksiy271/voice-recognition that referenced this pull request Oct 31, 2024
## [3.2.3](react-native-voice/voice@v3.2.2...v3.2.3) (2022-03-13)

### Bug Fixes

* **iOS:** Using default framelength ([#361](react-native-voice/voice#361)) ([8a6086a](react-native-voice/voice@8a6086a))
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.

2 participants