react-native-wakeword 1.1.46 → 1.1.48
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 +1 -2
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/Info.plist +5 -5
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Headers/KeyWordDetection-Swift.h +6 -19
- 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 +484 -303
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.private.swiftinterface +30 -18
- 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 +30 -18
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Headers/KeyWordDetection-Swift.h +12 -38
- 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 +484 -303
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +30 -18
- 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 +30 -18
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.abi.json +484 -303
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +30 -18
- 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 +30 -18
- 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 +23 -2
- package/package.json +1 -1
- package/wakewords/KeyWordRNBridge.d.ts +1 -0
- package/wakewords/KeyWordRNBridge.js +7 -0
- package/wakewords/audioRoutingConfig.d.ts +17 -0
- package/wakewords/audioRoutingConfig.ts +28 -0
- package/wakewords/index.d.ts +5 -1
- package/wakewords/index.js +2 -1
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
f4b903f1f2e33bb09b75267f462bcb7a keyworddetection-1.0.0.aar
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
b8b434f7c94e25abb223d0aaa302951111142cbd keyworddetection-1.0.0.aar
|
|
@@ -4,7 +4,6 @@ import com.davoice.keywordsdetection.keywordslibrary.KeyWordsDetection;
|
|
|
4
4
|
import com.facebook.react.bridge.*;
|
|
5
5
|
import com.facebook.react.modules.core.DeviceEventManagerModule;
|
|
6
6
|
import androidx.annotation.Nullable;
|
|
7
|
-
import ai.onnxruntime.*;
|
|
8
7
|
import android.util.Log;
|
|
9
8
|
import java.util.HashMap;
|
|
10
9
|
import java.util.Map;
|
|
@@ -146,7 +145,7 @@ public class KeyWordRNBridge extends ReactContextBaseJavaModule {
|
|
|
146
145
|
|
|
147
146
|
// Start detection for a specific instance
|
|
148
147
|
@ReactMethod
|
|
149
|
-
public void startKeywordDetection(String instanceId, float threshold, Promise promise)
|
|
148
|
+
public void startKeywordDetection(String instanceId, float threshold, Promise promise) {
|
|
150
149
|
KeyWordsDetection instance = instances.get(instanceId);
|
|
151
150
|
if (instance != null) {
|
|
152
151
|
instance.startListening(threshold);
|
|
@@ -8,32 +8,32 @@
|
|
|
8
8
|
<key>BinaryPath</key>
|
|
9
9
|
<string>KeyWordDetection.framework/KeyWordDetection</string>
|
|
10
10
|
<key>LibraryIdentifier</key>
|
|
11
|
-
<string>ios-
|
|
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-
|
|
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>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#if 0
|
|
2
2
|
#elif defined(__arm64__) && __arm64__
|
|
3
|
-
// Generated by Apple Swift version 6.1
|
|
3
|
+
// Generated by Apple Swift version 6.2.1 effective-5.10 (swiftlang-6.2.1.4.8 clang-1700.4.4.1)
|
|
4
4
|
#ifndef KEYWORDDETECTION_SWIFT_H
|
|
5
5
|
#define KEYWORDDETECTION_SWIFT_H
|
|
6
6
|
#pragma clang diagnostic push
|
|
@@ -305,33 +305,20 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
|
|
|
305
305
|
|
|
306
306
|
#if defined(__OBJC__)
|
|
307
307
|
|
|
308
|
-
@class NSURL;
|
|
309
308
|
@class NSString;
|
|
310
309
|
SWIFT_CLASS("_TtC16KeyWordDetection29AudioSessionAndDuckingManager")
|
|
311
310
|
@interface AudioSessionAndDuckingManager : NSObject
|
|
312
311
|
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) AudioSessionAndDuckingManager * _Nonnull shared;)
|
|
313
312
|
+ (AudioSessionAndDuckingManager * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
|
|
313
|
+
- (NSString * _Nullable)getWakewordAudioRoutingConfigJSONString SWIFT_WARN_UNUSED_RESULT;
|
|
314
|
+
- (void)setWakewordAudioRoutingConfigFromJSONString:(NSString * _Nonnull)jsonConfig;
|
|
314
315
|
- (void)initAudioSessAndDuckManage SWIFT_METHOD_FAMILY(none);
|
|
315
|
-
- (void)
|
|
316
|
-
/// Example function to end ducking. Deactivates session and stops engine.
|
|
317
|
-
- (void)_disableDucking;
|
|
316
|
+
- (void)enableRadioInCar;
|
|
318
317
|
- (void)enableAggressiveDucking;
|
|
319
|
-
- (void)
|
|
320
|
-
- (void)enableAggressiveDuckingWorksMaxSilencing;
|
|
321
|
-
- (void)enableAggressiveDuckingWorksOnSecondTime;
|
|
322
|
-
/// Example function to end ducking. Deactivates session and stops engine.
|
|
323
|
-
- (void)disableDuckingWorks;
|
|
324
|
-
- (void)disableDuckingDidNotUnDuck;
|
|
325
|
-
/// Example function to end ducking. Deactivates session and stops engine.
|
|
326
|
-
- (void)disableDuckingOrg;
|
|
318
|
+
- (void)disableDucking;
|
|
327
319
|
- (void)restartListeningAfterDucking;
|
|
328
320
|
/// Example function to end ducking. Deactivates session and stops engine.
|
|
329
321
|
- (void)disableDuckingAndCleanup;
|
|
330
|
-
/// BELOW IS FROM CHATGPT – XXX NOT TESTED AND PROBABLY BUGGY
|
|
331
|
-
- (void)activateSessionForDucking;
|
|
332
|
-
- (void)playInstructionSound:(NSURL * _Nonnull)soundURL;
|
|
333
|
-
- (void)speakInstruction:(NSString * _Nonnull)text;
|
|
334
|
-
- (void)deactivateSession;
|
|
335
322
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
336
323
|
@end
|
|
337
324
|
|
|
@@ -363,7 +350,7 @@ SWIFT_CLASS("_TtC16KeyWordDetection17KeyWordsDetection")
|
|
|
363
350
|
- (BOOL)setKeywordDetectionLicenseWithLicenseKey:(NSString * _Nonnull)licenseKey SWIFT_WARN_UNUSED_RESULT;
|
|
364
351
|
- (BOOL)setLicenseWithLicenseKey:(NSString * _Nonnull)licenseKey SWIFT_WARN_UNUSED_RESULT;
|
|
365
352
|
- (void)callBackWithFrame:(NSArray<NSNumber *> * _Nonnull)frame;
|
|
366
|
-
- (BOOL)
|
|
353
|
+
- (BOOL)startListeningWithNoExternalActivation:(BOOL)noExternalActivation duckOthers:(BOOL)duckOthers mixWithOthers:(BOOL)mixWithOthers defaultToSpeaker:(BOOL)defaultToSpeaker SWIFT_WARN_UNUSED_RESULT;
|
|
367
354
|
- (void)stopListening;
|
|
368
355
|
- (NSDictionary<NSString *, id> * _Nonnull)getVoiceProps SWIFT_WARN_UNUSED_RESULT;
|
|
369
356
|
- (BOOL)startSilentListening SWIFT_WARN_UNUSED_RESULT;
|
|
Binary file
|