react-native-wakeword 1.1.68 → 1.1.70

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.
Files changed (22) hide show
  1. package/android/libs/com/davoice/keyworddetection/1.0.0/keyworddetection-1.0.0.aar +0 -0
  2. package/android/libs/com/davoice/keyworddetection/1.0.0/keyworddetection-1.0.0.aar.md5 +1 -1
  3. package/android/libs/com/davoice/keyworddetection/1.0.0/keyworddetection-1.0.0.aar.sha1 +1 -1
  4. package/android/src/main/java/com/davoice/keywordspotting/KeyWordRNBridge.java +7 -3
  5. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/KeyWordDetection +0 -0
  6. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.abi.json +191 -151
  7. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.private.swiftinterface +3 -0
  8. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.swiftinterface +3 -0
  9. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/KeyWordDetection +0 -0
  10. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.abi.json +191 -151
  11. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +3 -0
  12. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.swiftinterface +3 -0
  13. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.abi.json +191 -151
  14. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +3 -0
  15. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +3 -0
  16. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/_CodeSignature/CodeDirectory +0 -0
  17. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/_CodeSignature/CodeRequirements-1 +0 -0
  18. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/_CodeSignature/CodeResources +24 -24
  19. package/package.json +1 -1
  20. package/wakewords/KeyWordRNBridge.d.ts +3 -1
  21. package/wakewords/KeyWordRNBridge.js +32 -3
  22. package/wakewords/index.d.ts +2 -0
@@ -1 +1 @@
1
- e3ed3e2d1e4f0fdf290f0974d23eb8aa keyworddetection-1.0.0.aar
1
+ 7d4c3a558c778d6680100e99ffaf47a4 keyworddetection-1.0.0.aar
@@ -1 +1 @@
1
- ac32d0a227f675731ec7ef3aa4c5943ac00c5a68 keyworddetection-1.0.0.aar
1
+ 5665687359d31955083b51b1062dc19507b873ed keyworddetection-1.0.0.aar
@@ -204,11 +204,15 @@ public class KeyWordRNBridge extends ReactContextBaseJavaModule {
204
204
 
205
205
  // Start detection for a specific instance
206
206
  @ReactMethod
207
- public void startKeywordDetection(String instanceId, float threshold, Promise promise) {
207
+ public void startKeywordDetection(String instanceId, float threshold, @Nullable String speakerVerificationEnrollmentJsonOrPath, Promise promise) {
208
208
  KeyWordsDetection instance = instances.get(instanceId);
209
209
  if (instance != null) {
210
- instance.startListening(threshold);
211
- promise.resolve("Started detection for instance: " + instanceId);
210
+ try {
211
+ instance.startListening(threshold, speakerVerificationEnrollmentJsonOrPath);
212
+ promise.resolve("Started detection for instance: " + instanceId);
213
+ } catch (Exception e) {
214
+ promise.reject("StartDetectionError", "Failed to start detection: " + e.getMessage());
215
+ }
212
216
  } else {
213
217
  promise.reject("InstanceNotFound", "No instance found with ID: " + instanceId);
214
218
  }