react-native-wakeword-sid 1.1.73 → 1.1.75

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.
@@ -1 +1 @@
1
- ed2a3331d01403292fcd0330e6c1ce6c keyworddetection-1.0.0.aar
1
+ 50862aa181f9e90c686f985677960a24 keyworddetection-1.0.0.aar
@@ -1 +1 @@
1
- 51127b88ee989b5fd0a061508e6cb94b0f956be6 keyworddetection-1.0.0.aar
1
+ 3a0d3de64293f27044cfbd32a57d8ef3e7572dce keyworddetection-1.0.0.aar
@@ -0,0 +1,29 @@
1
+ // android/src/main/java/com/davoice/DaVoiceUnifiedPackage.java
2
+ package com.davoice;
3
+
4
+ import com.facebook.react.ReactPackage;
5
+ import com.facebook.react.bridge.NativeModule;
6
+ import com.facebook.react.bridge.ReactApplicationContext;
7
+ import com.facebook.react.uimanager.ViewManager;
8
+
9
+ // Speaker-ID bridge
10
+ import com.davoice.speakeridrn.SpeakerIdRNBridge;
11
+ // Wakeword bridge
12
+ import com.davoice.keywordspotting.KeyWordRNBridge;
13
+
14
+ import java.util.*;
15
+
16
+ public class DaVoiceUnifiedPackage implements ReactPackage {
17
+ @Override
18
+ public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
19
+ List<NativeModule> modules = new ArrayList<>();
20
+ modules.add(new KeyWordRNBridge(reactContext)); // wakeword
21
+ modules.add(new SpeakerIdRNBridge(reactContext)); // speaker-id
22
+ return modules;
23
+ }
24
+
25
+ @Override
26
+ public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
27
+ return Collections.emptyList();
28
+ }
29
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-wakeword-sid",
3
- "version": "1.1.73",
3
+ "version": "1.1.75",
4
4
  "description": "Voice/Wake-word detection library for React Native",
5
5
  "main": "wakewords/index.js",
6
6
  "types": "wakewords/index.d.ts",
@@ -1,25 +0,0 @@
1
- package com.davoice.keywordspotting;
2
-
3
- import com.facebook.react.ReactPackage;
4
- import com.facebook.react.bridge.NativeModule;
5
- import com.facebook.react.bridge.ReactApplicationContext;
6
- import com.facebook.react.uimanager.ViewManager;
7
-
8
- import java.util.ArrayList;
9
- import java.util.Collections;
10
- import java.util.List;
11
-
12
- public class KeyWordRNBridgePackage implements ReactPackage {
13
-
14
- @Override
15
- public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
16
- List<NativeModule> modules = new ArrayList<>();
17
- modules.add(new KeyWordRNBridge(reactContext));
18
- return modules;
19
- }
20
-
21
- @Override
22
- public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
23
- return Collections.emptyList();
24
- }
25
- }
@@ -1,24 +0,0 @@
1
- package com.davoice.speakeridrn;
2
-
3
- import com.facebook.react.ReactPackage;
4
- import com.facebook.react.bridge.NativeModule;
5
- import com.facebook.react.bridge.ReactApplicationContext;
6
- import com.facebook.react.uimanager.ViewManager;
7
-
8
- import java.util.ArrayList;
9
- import java.util.Collections;
10
- import java.util.List;
11
-
12
- public class SpeakerIdRNBridgePackage implements ReactPackage {
13
- @Override
14
- public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
15
- List<NativeModule> modules = new ArrayList<>();
16
- modules.add(new SpeakerIdRNBridge(reactContext));
17
- return modules;
18
- }
19
-
20
- @Override
21
- public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
22
- return Collections.emptyList();
23
- }
24
- }