react-native-wakeword 1.1.23 → 1.1.24

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 (24) 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/ios/KeyWordRNBridge/KeyWordDetection.xcframework/Info.plist +5 -5
  5. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Headers/KeyWordDetection-Swift.h +6 -0
  6. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/KeyWordDetection +0 -0
  7. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.abi.json +299 -58
  8. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.private.swiftinterface +7 -1
  9. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.swiftinterface +7 -1
  10. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Headers/KeyWordDetection-Swift.h +12 -0
  11. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/KeyWordDetection +0 -0
  12. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.abi.json +299 -58
  13. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +7 -1
  14. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.swiftinterface +7 -1
  15. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.abi.json +299 -58
  16. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +7 -1
  17. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +7 -1
  18. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/_CodeSignature/CodeDirectory +0 -0
  19. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/_CodeSignature/CodeRequirements-1 +0 -0
  20. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/_CodeSignature/CodeResources +27 -27
  21. package/ios/KeyWordRNBridge/KeyWordRNBridge.mm +82 -1
  22. package/package.json +1 -1
  23. package/wakewords/KeyWordRNBridge.d.ts +12 -0
  24. package/wakewords/KeyWordRNBridge.js +59 -1
@@ -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, setActive: Swift.Bool = true, duckOthers: Swift.Bool = false, mixWithOthers: Swift.Bool = true, defaultToSpeaker: Swift.Bool = true)
54
54
  public func stop() throws
55
55
  @objc deinit
56
56
  }
@@ -117,6 +117,12 @@ public class AVAudioWrapper {
117
117
  @objc public func callBack(frame: [Swift.Float])
118
118
  @objc public func startListening(setActive: Swift.Bool = true, duckOthers: Swift.Bool = false, mixWithOthers: Swift.Bool = true, defaultToSpeaker: Swift.Bool = true) -> Swift.Bool
119
119
  @objc public func stopListening()
120
+ @objc public func getVoiceProps() -> [Swift.String : Any]
121
+ @objc public func startSilentListening() -> Swift.Bool
122
+ @objc public func startVADListening() -> Swift.Bool
123
+ @objc public func setVADParams(threshold: Swift.Float, msWindow: Swift.Int) throws
124
+ @objc public func stopSilentListening()
125
+ @objc public func stopVADListening()
120
126
  @objc deinit
121
127
  }
122
128
  @_inheritsConvenienceInitializers @objc public class AudioSessionAndDuckingManager : ObjectiveC.NSObject {
@@ -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, setActive: Swift.Bool = true, duckOthers: Swift.Bool = false, mixWithOthers: Swift.Bool = true, defaultToSpeaker: Swift.Bool = true)
54
54
  public func stop() throws
55
55
  @objc deinit
56
56
  }
@@ -117,6 +117,12 @@ public class AVAudioWrapper {
117
117
  @objc public func callBack(frame: [Swift.Float])
118
118
  @objc public func startListening(setActive: Swift.Bool = true, duckOthers: Swift.Bool = false, mixWithOthers: Swift.Bool = true, defaultToSpeaker: Swift.Bool = true) -> Swift.Bool
119
119
  @objc public func stopListening()
120
+ @objc public func getVoiceProps() -> [Swift.String : Any]
121
+ @objc public func startSilentListening() -> Swift.Bool
122
+ @objc public func startVADListening() -> Swift.Bool
123
+ @objc public func setVADParams(threshold: Swift.Float, msWindow: Swift.Int) throws
124
+ @objc public func stopSilentListening()
125
+ @objc public func stopVADListening()
120
126
  @objc deinit
121
127
  }
122
128
  @_inheritsConvenienceInitializers @objc public class AudioSessionAndDuckingManager : ObjectiveC.NSObject {
@@ -365,6 +365,12 @@ SWIFT_CLASS("_TtC16KeyWordDetection17KeyWordsDetection")
365
365
  - (void)callBackWithFrame:(NSArray<NSNumber *> * _Nonnull)frame;
366
366
  - (BOOL)startListeningWithSetActive:(BOOL)setActive duckOthers:(BOOL)duckOthers mixWithOthers:(BOOL)mixWithOthers defaultToSpeaker:(BOOL)defaultToSpeaker SWIFT_WARN_UNUSED_RESULT;
367
367
  - (void)stopListening;
368
+ - (NSDictionary<NSString *, id> * _Nonnull)getVoiceProps SWIFT_WARN_UNUSED_RESULT;
369
+ - (BOOL)startSilentListening SWIFT_WARN_UNUSED_RESULT;
370
+ - (BOOL)startVADListening SWIFT_WARN_UNUSED_RESULT;
371
+ - (BOOL)setVADParamsWithThreshold:(float)threshold msWindow:(NSInteger)msWindow error:(NSError * _Nullable * _Nullable)error;
372
+ - (void)stopSilentListening;
373
+ - (void)stopVADListening;
368
374
  - (nonnull instancetype)init SWIFT_UNAVAILABLE;
369
375
  + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
370
376
  @end
@@ -754,6 +760,12 @@ SWIFT_CLASS("_TtC16KeyWordDetection17KeyWordsDetection")
754
760
  - (void)callBackWithFrame:(NSArray<NSNumber *> * _Nonnull)frame;
755
761
  - (BOOL)startListeningWithSetActive:(BOOL)setActive duckOthers:(BOOL)duckOthers mixWithOthers:(BOOL)mixWithOthers defaultToSpeaker:(BOOL)defaultToSpeaker SWIFT_WARN_UNUSED_RESULT;
756
762
  - (void)stopListening;
763
+ - (NSDictionary<NSString *, id> * _Nonnull)getVoiceProps SWIFT_WARN_UNUSED_RESULT;
764
+ - (BOOL)startSilentListening SWIFT_WARN_UNUSED_RESULT;
765
+ - (BOOL)startVADListening SWIFT_WARN_UNUSED_RESULT;
766
+ - (BOOL)setVADParamsWithThreshold:(float)threshold msWindow:(NSInteger)msWindow error:(NSError * _Nullable * _Nullable)error;
767
+ - (void)stopSilentListening;
768
+ - (void)stopVADListening;
757
769
  - (nonnull instancetype)init SWIFT_UNAVAILABLE;
758
770
  + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
759
771
  @end