react-native-wakeword-sid 1.1.99 → 1.1.100
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/speakeridrn/SpeakerIdRNBridge.java +10 -0
- package/package.json +1 -1
- package/speakerid/SpeakerIdRNBridge.d.ts +1 -0
- package/speakerid/SpeakerIdRNBridge.js +7 -0
- package/speakerid/index.d.ts +1 -0
- package/speakerid/index.js +1 -0
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
9254ff04488a759290e2498b3deaaa2d keyworddetection-1.0.0.aar
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
72e064d55b4c80a6396644542bd47a3313b76fe0 keyworddetection-1.0.0.aar
|
|
@@ -104,6 +104,16 @@ public class SpeakerIdRNBridge extends ReactContextBaseJavaModule {
|
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
+
@ReactMethod
|
|
108
|
+
public void initVerificationUsingCurrentConfig(Promise promise) {
|
|
109
|
+
try {
|
|
110
|
+
boolean ok = api.initVerificationUsingCurrentConfig();
|
|
111
|
+
promise.resolve(ok);
|
|
112
|
+
} catch (Throwable t) {
|
|
113
|
+
promise.reject("E_INIT_CHECK", t);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
107
117
|
@ReactMethod
|
|
108
118
|
public void destroyInstance(String instanceId, Promise promise) {
|
|
109
119
|
SpeakerIdApi api;
|
package/package.json
CHANGED
|
@@ -22,6 +22,7 @@ export class SpeakerIdInstance {
|
|
|
22
22
|
* Verification init
|
|
23
23
|
*/
|
|
24
24
|
initVerificationUsingDefaults(): Promise<any>;
|
|
25
|
+
initVerificationUsingCurrentConfig(): Promise<any>;
|
|
25
26
|
initVerificationWithFiles(meanNpyPath: any, clusterNpyPath: any): Promise<any>;
|
|
26
27
|
/**
|
|
27
28
|
* Verification
|
|
@@ -86,6 +86,13 @@ export class SpeakerIdInstance {
|
|
|
86
86
|
return SpeakerIdRNBridge.onboardFromWav(this.instanceId, String(absPath));
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
+
async initVerificationUsingCurrentConfig() {
|
|
90
|
+
ensureAndroid();
|
|
91
|
+
// Resolves to boolean
|
|
92
|
+
return SpeakerIdRNBridge.initVerificationUsingCurrentConfig(this.instanceId);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
|
|
89
96
|
/**
|
|
90
97
|
* Verification init
|
|
91
98
|
*/
|
package/speakerid/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export function createSpeakerIdInstance(instanceId?: string): Promise<{
|
|
|
4
4
|
onboardFromMicrophoneWWD: (embNum: any, ms: any) => any;
|
|
5
5
|
verifyFromMicrophoneWWD: (ms: any) => any;
|
|
6
6
|
initVerificationUsingDefaults: () => any;
|
|
7
|
+
initVerificationUsingCurrentConfig: () => any;
|
|
7
8
|
initVerificationWithFiles: (m: any, c: any) => any;
|
|
8
9
|
onboardFromMicrophone: (ms: any) => any;
|
|
9
10
|
onboardStartStream: () => any;
|
package/speakerid/index.js
CHANGED
|
@@ -10,6 +10,7 @@ export const createSpeakerIdInstance = async (instanceId = 'sid1') => ({
|
|
|
10
10
|
verifyFromMicrophoneWWD: (ms) =>
|
|
11
11
|
SpeakerIdRNBridge.verifyFromMicrophoneWWD(instanceId, ms ?? 5000),
|
|
12
12
|
initVerificationUsingDefaults: () => SpeakerIdRNBridge.initVerificationUsingDefaults(instanceId),
|
|
13
|
+
initVerificationUsingCurrentConfig: () => SpeakerIdRNBridge.initVerificationUsingDefaults(instanceId),
|
|
13
14
|
initVerificationWithFiles: (m, c) => SpeakerIdRNBridge.initVerificationWithFiles(instanceId, m, c),
|
|
14
15
|
onboardFromMicrophone: (ms) => SpeakerIdRNBridge.onboardFromMicrophone(instanceId, ms ?? 12000),
|
|
15
16
|
onboardStartStream: () => SpeakerIdRNBridge.onboardStartStream(instanceId),
|