react-native-wakeword 1.0.76 → 1.0.80

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 (26) 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 +4 -8
  5. package/ios/KeyWordDetection.xcframework/Info.plist +5 -5
  6. package/ios/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Headers/KeyWordDetection-Swift.h +2 -1
  7. package/ios/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/KeyWordDetection +0 -0
  8. package/ios/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  9. package/ios/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.abi.json +2326 -2067
  10. package/ios/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.private.swiftinterface +60 -59
  11. package/ios/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  12. package/ios/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.swiftinterface +60 -59
  13. package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Headers/KeyWordDetection-Swift.h +4 -2
  14. package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/KeyWordDetection +0 -0
  15. package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  16. package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  17. package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.abi.json +4290 -3796
  18. package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +59 -57
  19. package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  20. package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.swiftinterface +59 -57
  21. package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.abi.json +4290 -3796
  22. package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +59 -57
  23. package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  24. package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +59 -57
  25. package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/_CodeSignature/CodeResources +26 -26
  26. package/package.json +1 -1
@@ -1 +1 @@
1
- 97a93f780da0e2f6ed824496e3727afb keyworddetection-1.0.0.aar
1
+ bb74325b96ae0de384ed52750757d4ef keyworddetection-1.0.0.aar
@@ -1 +1 @@
1
- fae06a7f220852f53579efa6b291152895c0bbf5 keyworddetection-1.0.0.aar
1
+ f8f38406c75739e7fcd581981d3cdc9c0a879356 keyworddetection-1.0.0.aar
@@ -29,7 +29,7 @@ public class KeyWordRNBridge extends ReactContextBaseJavaModule {
29
29
  }
30
30
 
31
31
  @ReactMethod
32
- public Boolean setKeywordDetectionLicense(String instanceId, String licenseKey, Promise promise) {
32
+ public void setKeywordDetectionLicense(String instanceId, String licenseKey, Promise promise) {
33
33
  KeyWordsDetection instance = instances.get(instanceId);
34
34
  Log.d(TAG, "setKeywordDetectionLicense()");
35
35
 
@@ -40,7 +40,6 @@ public class KeyWordRNBridge extends ReactContextBaseJavaModule {
40
40
  Log.d(TAG, "setKeywordDetectionLicense(): " + (isLicesed ? "Licensed" : "Not Licensed"));
41
41
 
42
42
  promise.resolve(isLicesed);
43
- return isLicesed;
44
43
  }
45
44
 
46
45
  // Create a new instance
@@ -61,22 +60,19 @@ public class KeyWordRNBridge extends ReactContextBaseJavaModule {
61
60
  }
62
61
  }
63
62
 
64
- // Create a new instance
65
63
  @ReactMethod
66
- public String getRecordingWav(String instanceId, Promise promise) {
64
+ public void getRecordingWav(String instanceId, Promise promise) {
67
65
  KeyWordsDetection instance = instances.get(instanceId);
68
66
  String recordingWav = "";
69
67
  if (instance == null) {
70
68
  promise.reject("Instance not Exists", "Instance does not exists with ID: " + instanceId);
71
- return recordingWav;
72
69
  }
73
70
  try {
74
71
  recordingWav = instance.getRecordingWav();
75
- promise.resolve("Instance ID: " + instanceId + " getting getRecordingWav");
72
+ promise.resolve(recordingWav);
76
73
  } catch (Exception e) {
77
- promise.reject("CreateError", "Failed to create instance: " + e.getMessage());
74
+ promise.reject("GetRecordingWavError", "Failed to get recording WAV: " + e.getMessage());
78
75
  }
79
- return recordingWav;
80
76
  }
81
77
 
82
78
  // Create a new instance
@@ -8,32 +8,32 @@
8
8
  <key>BinaryPath</key>
9
9
  <string>KeyWordDetection.framework/KeyWordDetection</string>
10
10
  <key>LibraryIdentifier</key>
11
- <string>ios-arm64</string>
11
+ <string>ios-arm64_x86_64-simulator</string>
12
12
  <key>LibraryPath</key>
13
13
  <string>KeyWordDetection.framework</string>
14
14
  <key>SupportedArchitectures</key>
15
15
  <array>
16
16
  <string>arm64</string>
17
+ <string>x86_64</string>
17
18
  </array>
18
19
  <key>SupportedPlatform</key>
19
20
  <string>ios</string>
21
+ <key>SupportedPlatformVariant</key>
22
+ <string>simulator</string>
20
23
  </dict>
21
24
  <dict>
22
25
  <key>BinaryPath</key>
23
26
  <string>KeyWordDetection.framework/KeyWordDetection</string>
24
27
  <key>LibraryIdentifier</key>
25
- <string>ios-arm64_x86_64-simulator</string>
28
+ <string>ios-arm64</string>
26
29
  <key>LibraryPath</key>
27
30
  <string>KeyWordDetection.framework</string>
28
31
  <key>SupportedArchitectures</key>
29
32
  <array>
30
33
  <string>arm64</string>
31
- <string>x86_64</string>
32
34
  </array>
33
35
  <key>SupportedPlatform</key>
34
36
  <string>ios</string>
35
- <key>SupportedPlatformVariant</key>
36
- <string>simulator</string>
37
37
  </dict>
38
38
  </array>
39
39
  <key>CFBundlePackageType</key>
@@ -323,7 +323,8 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GlobalVariab
323
323
  SWIFT_CLASS("_TtC16KeyWordDetection17KeyWordsDetection")
324
324
  @interface KeyWordsDetection : NSObject
325
325
  @property (nonatomic, weak) id <KeywordDetectionRNDelegate> _Nullable delegate;
326
- - (nullable instancetype)initWithModelPath:(NSString * _Nonnull)modelPath threshold:(float)threshold bufferCnt:(NSInteger)bufferCnt error:(NSError * _Nullable * _Nullable)error OBJC_DESIGNATED_INITIALIZER;
326
+ - (nullable instancetype)initWithModelPath:(NSString * _Nonnull)modelPath threshold:(float)threshold bufferCnt:(NSInteger)bufferCnt error:(NSError * _Nullable * _Nullable)error;
327
+ - (nullable instancetype)initWithModelPath:(NSString * _Nonnull)modelPath threshold:(float)threshold bufferCnt:(NSInteger)bufferCnt cancelEcho:(BOOL)cancelEcho error:(NSError * _Nullable * _Nullable)error OBJC_DESIGNATED_INITIALIZER;
327
328
  - (BOOL)replaceKeywordDetectionModelWithModelPath:(NSString * _Nonnull)modelPath threshold:(float)threshold bufferCnt:(NSInteger)bufferCnt error:(NSError * _Nullable * _Nullable)error;
328
329
  - (NSString * _Nonnull)getKeywordDetectionModel SWIFT_WARN_UNUSED_RESULT;
329
330
  - (NSString * _Nonnull)getRecordingWav SWIFT_WARN_UNUSED_RESULT;