react-native-wakeword 1.1.47 → 1.1.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- c3e6b9e8e1c390800799a208448fafe9 keyworddetection-1.0.0.aar
1
+ a1f8f0ccd4a36890e596d0b22f4ba7b7 keyworddetection-1.0.0.aar
@@ -1 +1 @@
1
- a676e8692916666677756edd038ddb798beee227 keyworddetection-1.0.0.aar
1
+ ecce4612759e9765cb1eec2dcddf74d9a0a59869 keyworddetection-1.0.0.aar
@@ -4,7 +4,6 @@ import com.davoice.keywordsdetection.keywordslibrary.KeyWordsDetection;
4
4
  import com.facebook.react.bridge.*;
5
5
  import com.facebook.react.modules.core.DeviceEventManagerModule;
6
6
  import androidx.annotation.Nullable;
7
- import ai.onnxruntime.*;
8
7
  import android.util.Log;
9
8
  import java.util.HashMap;
10
9
  import java.util.Map;
@@ -146,7 +145,7 @@ public class KeyWordRNBridge extends ReactContextBaseJavaModule {
146
145
 
147
146
  // Start detection for a specific instance
148
147
  @ReactMethod
149
- public void startKeywordDetection(String instanceId, float threshold, Promise promise) throws OrtException {
148
+ public void startKeywordDetection(String instanceId, float threshold, Promise promise) {
150
149
  KeyWordsDetection instance = instances.get(instanceId);
151
150
  if (instance != null) {
152
151
  instance.startListening(threshold);
@@ -182,7 +182,6 @@ RCT_EXPORT_METHOD(setAudioRoutingConfig:(NSString *)jsonConfig
182
182
  }
183
183
  }
184
184
 
185
-
186
185
  RCT_EXPORT_METHOD(disableDucking:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject)
187
186
  {
188
187
  [AudioSessionAndDuckingManager.shared disableDucking];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-wakeword",
3
- "version": "1.1.47",
3
+ "version": "1.1.49",
4
4
  "description": "Voice/Wake-word detection library for React Native",
5
5
  "main": "wakewords/index.js",
6
6
  "types": "wakewords/index.d.ts",