react-native-wakeword 1.0.75 → 1.0.79
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.
- package/android/libs/com/davoice/keyworddetection/1.0.0/keyworddetection-1.0.0.aar +0 -0
- package/android/libs/com/davoice/keyworddetection/1.0.0/keyworddetection-1.0.0.aar.md5 +1 -1
- package/android/libs/com/davoice/keyworddetection/1.0.0/keyworddetection-1.0.0.aar.sha1 +1 -1
- package/android/src/main/java/com/davoice/keywordspotting/KeyWordRNBridge.java +4 -7
- package/ios/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Headers/KeyWordDetection-Swift.h +2 -1
- package/ios/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/KeyWordDetection +0 -0
- package/ios/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/ios/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.abi.json +2326 -2067
- package/ios/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.private.swiftinterface +60 -59
- package/ios/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.swiftinterface +60 -59
- package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Headers/KeyWordDetection-Swift.h +4 -2
- package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/KeyWordDetection +0 -0
- package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.abi.json +4331 -4072
- package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +60 -59
- package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.swiftinterface +60 -59
- package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.abi.json +4331 -4072
- package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +60 -59
- package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +60 -59
- package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/_CodeSignature/CodeResources +26 -26
- package/package.json +1 -1
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
bb74325b96ae0de384ed52750757d4ef keyworddetection-1.0.0.aar
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
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
|
|
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,9 +60,8 @@ public class KeyWordRNBridge extends ReactContextBaseJavaModule {
|
|
|
61
60
|
}
|
|
62
61
|
}
|
|
63
62
|
|
|
64
|
-
// Create a new instance
|
|
65
63
|
@ReactMethod
|
|
66
|
-
public
|
|
64
|
+
public void getRecordingWav(String instanceId, Promise promise) {
|
|
67
65
|
KeyWordsDetection instance = instances.get(instanceId);
|
|
68
66
|
String recordingWav = "";
|
|
69
67
|
if (instance == null) {
|
|
@@ -72,11 +70,10 @@ public class KeyWordRNBridge extends ReactContextBaseJavaModule {
|
|
|
72
70
|
}
|
|
73
71
|
try {
|
|
74
72
|
recordingWav = instance.getRecordingWav();
|
|
75
|
-
promise.resolve(
|
|
73
|
+
promise.resolve(recordingWav);
|
|
76
74
|
} catch (Exception e) {
|
|
77
|
-
promise.reject("
|
|
75
|
+
promise.reject("GetRecordingWavError", "Failed to get recording WAV: " + e.getMessage());
|
|
78
76
|
}
|
|
79
|
-
return recordingWav;
|
|
80
77
|
}
|
|
81
78
|
|
|
82
79
|
// Create a new instance
|
|
@@ -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
|
|
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;
|