react-native-wakeword 1.1.21 → 1.1.23
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/assets/coca_cola_model_28_05052025.onnx +0 -0
- package/android/src/main/java/com/davoice/keywordspotting/KeyWordRNBridge.java +45 -3
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Headers/KeyWordDetection-Swift.h +4 -1
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Info.plist +0 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/KeyWordDetection +0 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.abi.json +346 -123
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.private.swiftinterface +5 -3
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.swiftinterface +5 -3
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Headers/KeyWordDetection-Swift.h +8 -2
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Info.plist +0 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/KeyWordDetection +0 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.abi.json +346 -123
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +5 -3
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.swiftinterface +5 -3
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.abi.json +346 -123
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +5 -3
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +5 -3
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/_CodeSignature/CodeDirectory +0 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/_CodeSignature/CodeRequirements-1 +0 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/_CodeSignature/CodeResources +34 -34
- package/ios/KeyWordRNBridge/KeyWordRNBridge.mm +64 -0
- package/ios/KeyWordRNBridge/models/coca_cola_model_28_05052025.onnx +0 -0
- package/package.json +1 -1
- package/wakewords/KeyWordRNBridge.d.ts +2 -0
- package/wakewords/KeyWordRNBridge.js +28 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// swift-interface-format-version: 1.0
|
|
2
2
|
// swift-compiler-version: Apple Swift version 6.1.2 effective-5.10 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
|
|
3
|
-
// swift-module-flags: -target arm64-apple-ios13 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name KeyWordDetection
|
|
3
|
+
// swift-module-flags: -target arm64-apple-ios13.5 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name KeyWordDetection
|
|
4
4
|
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -interface-compiler-version 6.1.2
|
|
5
5
|
import AVFAudio
|
|
6
6
|
import AVFoundation
|
|
@@ -50,7 +50,7 @@ public class AVAudioWrapperFrameListener {
|
|
|
50
50
|
public func removeFrameListener(_ listener: KeyWordDetection.AVAudioWrapperFrameListener)
|
|
51
51
|
public func clearFrameListeners()
|
|
52
52
|
public func setSessionOptions(sessionOptions: AVFAudio.AVAudioSession.CategoryOptions)
|
|
53
|
-
public func start(frameLength: Swift.UInt32, sampleRate: Swift.UInt32
|
|
53
|
+
public func start(frameLength: Swift.UInt32, sampleRate: Swift.UInt32)
|
|
54
54
|
public func stop() throws
|
|
55
55
|
@objc deinit
|
|
56
56
|
}
|
|
@@ -106,8 +106,10 @@ public class AVAudioWrapper {
|
|
|
106
106
|
@objc weak public var delegate: (any KeyWordDetection.KeywordDetectionRNDelegate)?
|
|
107
107
|
public var eventSink: (([Swift.String : Any]) -> Swift.Void)?
|
|
108
108
|
@objc convenience public init(modelPath: Swift.String, threshold: Swift.Float, bufferCnt: Swift.Int) throws
|
|
109
|
-
@objc public init(
|
|
109
|
+
@objc convenience public init(modelPaths: [Swift.String], thresholds: [Foundation.NSNumber], bufferCnts: [Foundation.NSNumber], msBetweenCallback: [Foundation.NSNumber]) throws
|
|
110
|
+
@objc public init(modelPaths: [Swift.String], thresholds: [Swift.Float], bufferCnts: [Swift.Int], msBetweenCallback: [Swift.Int64], cancelEcho: Swift.Bool = false) throws
|
|
110
111
|
@objc public func replaceKeywordDetectionModel(modelPath: Swift.String, threshold: Swift.Float, bufferCnt: Swift.Int) throws
|
|
112
|
+
@objc public func replaceKeywordDetectionModels(modelPaths: [Swift.String], thresholds: [Swift.Float], bufferCnts: [Swift.Int], msBetweenCallback: [Swift.Int64]) throws
|
|
111
113
|
@objc public func getKeywordDetectionModel() -> Swift.String
|
|
112
114
|
@objc public func getRecordingWav() -> Swift.String
|
|
113
115
|
@objc public func setKeywordDetectionLicense(licenseKey: Swift.String) -> Swift.Bool
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// swift-interface-format-version: 1.0
|
|
2
2
|
// swift-compiler-version: Apple Swift version 6.1.2 effective-5.10 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
|
|
3
|
-
// swift-module-flags: -target arm64-apple-ios13 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name KeyWordDetection
|
|
3
|
+
// swift-module-flags: -target arm64-apple-ios13.5 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name KeyWordDetection
|
|
4
4
|
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -interface-compiler-version 6.1.2
|
|
5
5
|
import AVFAudio
|
|
6
6
|
import AVFoundation
|
|
@@ -50,7 +50,7 @@ public class AVAudioWrapperFrameListener {
|
|
|
50
50
|
public func removeFrameListener(_ listener: KeyWordDetection.AVAudioWrapperFrameListener)
|
|
51
51
|
public func clearFrameListeners()
|
|
52
52
|
public func setSessionOptions(sessionOptions: AVFAudio.AVAudioSession.CategoryOptions)
|
|
53
|
-
public func start(frameLength: Swift.UInt32, sampleRate: Swift.UInt32
|
|
53
|
+
public func start(frameLength: Swift.UInt32, sampleRate: Swift.UInt32)
|
|
54
54
|
public func stop() throws
|
|
55
55
|
@objc deinit
|
|
56
56
|
}
|
|
@@ -106,8 +106,10 @@ public class AVAudioWrapper {
|
|
|
106
106
|
@objc weak public var delegate: (any KeyWordDetection.KeywordDetectionRNDelegate)?
|
|
107
107
|
public var eventSink: (([Swift.String : Any]) -> Swift.Void)?
|
|
108
108
|
@objc convenience public init(modelPath: Swift.String, threshold: Swift.Float, bufferCnt: Swift.Int) throws
|
|
109
|
-
@objc public init(
|
|
109
|
+
@objc convenience public init(modelPaths: [Swift.String], thresholds: [Foundation.NSNumber], bufferCnts: [Foundation.NSNumber], msBetweenCallback: [Foundation.NSNumber]) throws
|
|
110
|
+
@objc public init(modelPaths: [Swift.String], thresholds: [Swift.Float], bufferCnts: [Swift.Int], msBetweenCallback: [Swift.Int64], cancelEcho: Swift.Bool = false) throws
|
|
110
111
|
@objc public func replaceKeywordDetectionModel(modelPath: Swift.String, threshold: Swift.Float, bufferCnt: Swift.Int) throws
|
|
112
|
+
@objc public func replaceKeywordDetectionModels(modelPaths: [Swift.String], thresholds: [Swift.Float], bufferCnts: [Swift.Int], msBetweenCallback: [Swift.Int64]) throws
|
|
111
113
|
@objc public func getKeywordDetectionModel() -> Swift.String
|
|
112
114
|
@objc public func getRecordingWav() -> Swift.String
|
|
113
115
|
@objc public func setKeywordDetectionLicense(licenseKey: Swift.String) -> Swift.Bool
|
|
@@ -349,12 +349,15 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GlobalVariab
|
|
|
349
349
|
@end
|
|
350
350
|
|
|
351
351
|
@protocol KeywordDetectionRNDelegate;
|
|
352
|
+
@class NSNumber;
|
|
352
353
|
SWIFT_CLASS("_TtC16KeyWordDetection17KeyWordsDetection")
|
|
353
354
|
@interface KeyWordsDetection : NSObject
|
|
354
355
|
@property (nonatomic, weak) id <KeywordDetectionRNDelegate> _Nullable delegate;
|
|
355
356
|
- (nullable instancetype)initWithModelPath:(NSString * _Nonnull)modelPath threshold:(float)threshold bufferCnt:(NSInteger)bufferCnt error:(NSError * _Nullable * _Nullable)error;
|
|
356
|
-
- (nullable instancetype)
|
|
357
|
+
- (nullable instancetype)initWithModelPaths:(NSArray<NSString *> * _Nonnull)modelPaths thresholds:(NSArray<NSNumber *> * _Nonnull)thresholds bufferCnts:(NSArray<NSNumber *> * _Nonnull)bufferCnts msBetweenCallback:(NSArray<NSNumber *> * _Nonnull)msBetweenCallback error:(NSError * _Nullable * _Nullable)error;
|
|
358
|
+
- (nullable instancetype)initWithModelPaths:(NSArray<NSString *> * _Nonnull)modelPaths thresholds:(NSArray<NSNumber *> * _Nonnull)thresholds bufferCnts:(NSArray<NSNumber *> * _Nonnull)bufferCnts msBetweenCallback:(NSArray<NSNumber *> * _Nonnull)msBetweenCallback cancelEcho:(BOOL)cancelEcho error:(NSError * _Nullable * _Nullable)error OBJC_DESIGNATED_INITIALIZER;
|
|
357
359
|
- (BOOL)replaceKeywordDetectionModelWithModelPath:(NSString * _Nonnull)modelPath threshold:(float)threshold bufferCnt:(NSInteger)bufferCnt error:(NSError * _Nullable * _Nullable)error;
|
|
360
|
+
- (BOOL)replaceKeywordDetectionModelsWithModelPaths:(NSArray<NSString *> * _Nonnull)modelPaths thresholds:(NSArray<NSNumber *> * _Nonnull)thresholds bufferCnts:(NSArray<NSNumber *> * _Nonnull)bufferCnts msBetweenCallback:(NSArray<NSNumber *> * _Nonnull)msBetweenCallback error:(NSError * _Nullable * _Nullable)error;
|
|
358
361
|
- (NSString * _Nonnull)getKeywordDetectionModel SWIFT_WARN_UNUSED_RESULT;
|
|
359
362
|
- (NSString * _Nonnull)getRecordingWav SWIFT_WARN_UNUSED_RESULT;
|
|
360
363
|
- (BOOL)setKeywordDetectionLicenseWithLicenseKey:(NSString * _Nonnull)licenseKey SWIFT_WARN_UNUSED_RESULT;
|
|
@@ -735,12 +738,15 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GlobalVariab
|
|
|
735
738
|
@end
|
|
736
739
|
|
|
737
740
|
@protocol KeywordDetectionRNDelegate;
|
|
741
|
+
@class NSNumber;
|
|
738
742
|
SWIFT_CLASS("_TtC16KeyWordDetection17KeyWordsDetection")
|
|
739
743
|
@interface KeyWordsDetection : NSObject
|
|
740
744
|
@property (nonatomic, weak) id <KeywordDetectionRNDelegate> _Nullable delegate;
|
|
741
745
|
- (nullable instancetype)initWithModelPath:(NSString * _Nonnull)modelPath threshold:(float)threshold bufferCnt:(NSInteger)bufferCnt error:(NSError * _Nullable * _Nullable)error;
|
|
742
|
-
- (nullable instancetype)
|
|
746
|
+
- (nullable instancetype)initWithModelPaths:(NSArray<NSString *> * _Nonnull)modelPaths thresholds:(NSArray<NSNumber *> * _Nonnull)thresholds bufferCnts:(NSArray<NSNumber *> * _Nonnull)bufferCnts msBetweenCallback:(NSArray<NSNumber *> * _Nonnull)msBetweenCallback error:(NSError * _Nullable * _Nullable)error;
|
|
747
|
+
- (nullable instancetype)initWithModelPaths:(NSArray<NSString *> * _Nonnull)modelPaths thresholds:(NSArray<NSNumber *> * _Nonnull)thresholds bufferCnts:(NSArray<NSNumber *> * _Nonnull)bufferCnts msBetweenCallback:(NSArray<NSNumber *> * _Nonnull)msBetweenCallback cancelEcho:(BOOL)cancelEcho error:(NSError * _Nullable * _Nullable)error OBJC_DESIGNATED_INITIALIZER;
|
|
743
748
|
- (BOOL)replaceKeywordDetectionModelWithModelPath:(NSString * _Nonnull)modelPath threshold:(float)threshold bufferCnt:(NSInteger)bufferCnt error:(NSError * _Nullable * _Nullable)error;
|
|
749
|
+
- (BOOL)replaceKeywordDetectionModelsWithModelPaths:(NSArray<NSString *> * _Nonnull)modelPaths thresholds:(NSArray<NSNumber *> * _Nonnull)thresholds bufferCnts:(NSArray<NSNumber *> * _Nonnull)bufferCnts msBetweenCallback:(NSArray<NSNumber *> * _Nonnull)msBetweenCallback error:(NSError * _Nullable * _Nullable)error;
|
|
744
750
|
- (NSString * _Nonnull)getKeywordDetectionModel SWIFT_WARN_UNUSED_RESULT;
|
|
745
751
|
- (NSString * _Nonnull)getRecordingWav SWIFT_WARN_UNUSED_RESULT;
|
|
746
752
|
- (BOOL)setKeywordDetectionLicenseWithLicenseKey:(NSString * _Nonnull)licenseKey SWIFT_WARN_UNUSED_RESULT;
|
|
Binary file
|