react-native-wakeword 1.1.55 → 1.1.57

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 (39) hide show
  1. package/KeyWordRNBridge.podspec +1 -1
  2. package/android/.gradle/8.9/checksums/checksums.lock +0 -0
  3. package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
  4. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  5. package/android/.gradle/buildOutputCleanup/cache.properties +1 -1
  6. package/android/libs/com/davoice/keyworddetection/1.0.0/keyworddetection-1.0.0.aar +0 -0
  7. package/android/libs/com/davoice/keyworddetection/1.0.0/keyworddetection-1.0.0.aar.md5 +1 -1
  8. package/android/libs/com/davoice/keyworddetection/1.0.0/keyworddetection-1.0.0.aar.sha1 +1 -1
  9. package/android/src/main/java/com/davoice/keywordspotting/KeyWordRNBridge.java +764 -85
  10. package/android/src/main/java/com/davoice/speakeridrn/SpeakerIdRNBridge.java_not_used_yet +588 -0
  11. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Headers/KeyWordDetection-Swift.h +58 -6
  12. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Info.plist +0 -0
  13. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/KeyWordDetection +0 -0
  14. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.abi.json +8736 -2301
  15. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.private.swiftinterface +135 -3
  16. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  17. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.swiftinterface +135 -3
  18. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Headers/KeyWordDetection-Swift.h +116 -12
  19. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Info.plist +0 -0
  20. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/KeyWordDetection +0 -0
  21. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.abi.json +8736 -2301
  22. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +135 -3
  23. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  24. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.swiftinterface +135 -3
  25. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.abi.json +8736 -2301
  26. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +135 -3
  27. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  28. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +135 -3
  29. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/_CodeSignature/CodeDirectory +0 -0
  30. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/_CodeSignature/CodeRequirements-1 +0 -0
  31. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/_CodeSignature/CodeResources +34 -34
  32. package/ios/KeyWordRNBridge/KeyWordRNBridge.m +704 -3
  33. package/package.json +1 -1
  34. package/wakewords/SpeakerVerificationRNBridge.d.ts +49 -0
  35. package/wakewords/SpeakerVerificationRNBridge.js +294 -0
  36. package/wakewords/index.d.ts +18 -10
  37. package/wakewords/index.js +28 -0
  38. package/android/src/main/assets/coca_cola_model_28_05052025.dm +0 -0
  39. package/wakewords/index.d.ts.chat_idiot +0 -2
@@ -1,6 +1,6 @@
1
1
  #if 0
2
2
  #elif defined(__arm64__) && __arm64__
3
- // Generated by Apple Swift version 6.0.3 effective-5.10 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)
3
+ // Generated by Apple Swift version 6.1.2 effective-5.10 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
4
4
  #ifndef KEYWORDDETECTION_SWIFT_H
5
5
  #define KEYWORDDETECTION_SWIFT_H
6
6
  #pragma clang diagnostic push
@@ -65,6 +65,7 @@
65
65
  # if __has_include(<uchar.h>)
66
66
  # include <uchar.h>
67
67
  # elif !defined(__cplusplus)
68
+ typedef unsigned char char8_t;
68
69
  typedef uint_least16_t char16_t;
69
70
  typedef uint_least32_t char32_t;
70
71
  # endif
@@ -303,8 +304,8 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
303
304
  #endif
304
305
 
305
306
  #if defined(__OBJC__)
306
- @class NSString;
307
307
 
308
+ @class NSString;
308
309
  SWIFT_CLASS("_TtC16KeyWordDetection29AudioSessionAndDuckingManager")
309
310
  @interface AudioSessionAndDuckingManager : NSObject
310
311
  SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) AudioSessionAndDuckingManager * _Nonnull shared;)
@@ -322,7 +323,6 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) AudioSession
322
323
  @end
323
324
 
324
325
  @class KeyWordsDetection;
325
-
326
326
  SWIFT_CLASS("_TtC16KeyWordDetection15GlobalVariables")
327
327
  @interface GlobalVariables : NSObject
328
328
  SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GlobalVariables * _Nonnull shared;)
@@ -337,7 +337,6 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GlobalVariab
337
337
 
338
338
  @protocol KeywordDetectionRNDelegate;
339
339
  @class NSNumber;
340
-
341
340
  SWIFT_CLASS("_TtC16KeyWordDetection17KeyWordsDetection")
342
341
  @interface KeyWordsDetection : NSObject
343
342
  @property (nonatomic, weak) id <KeywordDetectionRNDelegate> _Nullable delegate;
@@ -363,18 +362,71 @@ SWIFT_CLASS("_TtC16KeyWordDetection17KeyWordsDetection")
363
362
  + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
364
363
  @end
365
364
 
366
-
367
365
  SWIFT_PROTOCOL("_TtP16KeyWordDetection26KeywordDetectionRNDelegate_")
368
366
  @protocol KeywordDetectionRNDelegate
369
367
  - (void)KeywordDetectionDidDetectEvent:(NSDictionary<NSString *, id> * _Nonnull)eventInfo;
370
368
  @end
371
369
 
372
-
373
370
  SWIFT_CLASS("_TtC16KeyWordDetection14LicenseManager")
374
371
  @interface LicenseManager : NSObject
375
372
  - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
376
373
  @end
377
374
 
375
+ SWIFT_CLASS("_TtC16KeyWordDetection25SpeakerVerificationEngine")
376
+ @interface SpeakerVerificationEngine : NSObject
377
+ - (void)resetStreamingState;
378
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
379
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
380
+ @end
381
+
382
+ @protocol SpeakerVerificationNativeDelegate;
383
+ SWIFT_CLASS("_TtC16KeyWordDetection32SpeakerVerificationMicController")
384
+ @interface SpeakerVerificationMicController : NSObject
385
+ @property (nonatomic, weak) id <SpeakerVerificationNativeDelegate> _Nullable delegate;
386
+ - (BOOL)beginOnboardingWithEnrollmentId:(NSString * _Nonnull)enrollmentId targetEmbeddingCount:(NSInteger)targetEmbeddingCount reset:(BOOL)reset error:(NSError * _Nullable * _Nullable)error;
387
+ /// App calls this each time it wants ONE embedding to be captured from mic.
388
+ /// When collected, controller stops mic and notifies delegate.
389
+ - (BOOL)getNextEmbeddingFromMicAndReturnError:(NSError * _Nullable * _Nullable)error;
390
+ /// Optional explicit finalize (usually you rely on auto-finalize when target reached).
391
+ - (BOOL)finalizeOnboardingNowAndReturnError:(NSError * _Nullable * _Nullable)error;
392
+ - (BOOL)setEnrollmentJson:(NSString * _Nonnull)enrollmentJson error:(NSError * _Nullable * _Nullable)error;
393
+ /// Starts mic and returns first verification result (then stops mic).
394
+ - (BOOL)startVerifyFromMicWithResetState:(BOOL)resetState error:(NSError * _Nullable * _Nullable)error;
395
+ /// Starts mic and keeps verifying forever (emits result every hopSeconds).
396
+ /// <ul>
397
+ /// <li>
398
+ /// hopSeconds: how often to emit results (e.g. 0.5)
399
+ /// </li>
400
+ /// <li>
401
+ /// stopOnMatch: if true, stops mic on first match; otherwise keeps running
402
+ /// </li>
403
+ /// </ul>
404
+ - (BOOL)startEndlessVerifyFromMicWithHopSeconds:(float)hopSeconds stopOnMatch:(BOOL)stopOnMatch resetState:(BOOL)resetState error:(NSError * _Nullable * _Nullable)error;
405
+ - (void)stop;
406
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
407
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
408
+ @end
409
+
410
+ SWIFT_PROTOCOL("_TtP16KeyWordDetection33SpeakerVerificationNativeDelegate_")
411
+ @protocol SpeakerVerificationNativeDelegate
412
+ - (void)svOnboardingProgress:(NSDictionary<NSString *, id> * _Nonnull)info;
413
+ - (void)svOnboardingDone:(NSDictionary<NSString *, id> * _Nonnull)info;
414
+ - (void)svVerifyResult:(NSDictionary<NSString *, id> * _Nonnull)info;
415
+ - (void)svError:(NSDictionary<NSString *, id> * _Nonnull)info;
416
+ @end
417
+
418
+ @class NSError;
419
+ SWIFT_CLASS_NAMED("SpeakerVerificationRNFacade")
420
+ @interface SpeakerVerificationRNFacade : NSObject
421
+ + (id _Nullable)createEngineWithModelPath:(NSString * _Nonnull)modelPath enrollmentJsonPath:(NSString * _Nonnull)enrollmentJsonPath options:(NSDictionary<NSString *, id> * _Nonnull)options error:(NSError * _Nullable * _Nullable)outError SWIFT_WARN_UNUSED_RESULT;
422
+ + (NSDictionary<NSString *, id> * _Nullable)verifyWavWithEngine:(id _Nonnull)engine wavPath:(NSString * _Nonnull)wavPath reset:(BOOL)reset error:(NSError * _Nullable * _Nullable)outError SWIFT_WARN_UNUSED_RESULT;
423
+ - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
424
+ @end
425
+
426
+ @interface SpeakerVerificationRNFacade (SWIFT_EXTENSION(KeyWordDetection))
427
+ + (id _Nullable)createMicControllerWithConfigJson:(NSString * _Nonnull)configJson error:(NSError * _Nullable * _Nullable)outError SWIFT_WARN_UNUSED_RESULT;
428
+ @end
429
+
378
430
  #endif
379
431
  #if __has_attribute(external_source_symbol)
380
432
  # pragma clang attribute pop