react-native-wakeword 1.1.47 → 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/KeyWordRNBridge.mm +0 -1
- package/package.json +1 -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);
|
|
@@ -182,7 +182,6 @@ RCT_EXPORT_METHOD(setAudioRoutingConfig:(NSString *)jsonConfig
|
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
|
|
185
|
-
|
|
186
185
|
RCT_EXPORT_METHOD(disableDucking:(RCTPromiseResolveBlock)resolve rejecter:(RCTPromiseRejectBlock)reject)
|
|
187
186
|
{
|
|
188
187
|
[AudioSessionAndDuckingManager.shared disableDucking];
|