react-native-wakeword 1.0.64 → 1.0.66
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/README.md +65 -3
- package/app.plugin.js +60 -0
- package/package.json +15 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
## About this package:
|
|
2
2
|
|
|
3
|
-
This is a **"wake word"** package for React Native. A wake word is a keyword that activates your device, like "Hey Siri" or "OK Google".
|
|
3
|
+
This is a **"wake word"** package for React Native. A wake word is a keyword that activates your device, like "Hey Siri" or "OK Google". "Wake Word" is also known as "keyword detection", "Phrase Recognition", "Phrase Spotting", “Voice triggered”, “hot word”, “trigger word”
|
|
4
4
|
|
|
5
5
|
It also provide **Speech to Intent**. **Speech to Intent** refers to the ability to recognize a spoken word or phrase
|
|
6
6
|
and directly associate it with a specific action or operation within an application. Unlike a **"wake word"**, which typically serves to activate or wake up the application,
|
|
@@ -76,11 +76,56 @@ Our platform ensures 99.99%+ accuracy in various environments.
|
|
|
76
76
|
|
|
77
77
|
### Key words
|
|
78
78
|
|
|
79
|
-
DaVoice.io
|
|
79
|
+
"DaVoice.io"
|
|
80
|
+
"Voice commands"
|
|
80
81
|
"Wake word detection github"
|
|
82
|
+
“Voice triggered”
|
|
83
|
+
“hot word”
|
|
84
|
+
“react-native trigger word”
|
|
85
|
+
“react-native Voice triggered”
|
|
86
|
+
“react-native hot word”
|
|
81
87
|
"react-native wake word",
|
|
82
|
-
"Wake word detection github",
|
|
83
88
|
"Wake word generator",
|
|
89
|
+
"hot word generator",
|
|
90
|
+
"trigger word generator",
|
|
91
|
+
"Custom wake word generator",
|
|
92
|
+
"Custom hot word",
|
|
93
|
+
"Custom trigger word",
|
|
94
|
+
"Custom wake word",
|
|
95
|
+
"voice commands",
|
|
96
|
+
"wake word",
|
|
97
|
+
"wakeword",
|
|
98
|
+
"wake words",
|
|
99
|
+
"keyword detection",
|
|
100
|
+
"keyword spotting",
|
|
101
|
+
"speech to intent",
|
|
102
|
+
"voice commands",
|
|
103
|
+
"voice to intent",
|
|
104
|
+
"phrase spotting",
|
|
105
|
+
"react native wake word",
|
|
106
|
+
"Davoice.io wake word",
|
|
107
|
+
"Davoice wake word",
|
|
108
|
+
"Davoice react native wake word",
|
|
109
|
+
"Davoice react-native wake word",
|
|
110
|
+
"wake",
|
|
111
|
+
"word",
|
|
112
|
+
"Voice Commands Recognition",
|
|
113
|
+
"lightweight Voice Commands Recognition",
|
|
114
|
+
"customized lightweight Voice Commands Recognition",
|
|
115
|
+
"rn wake word"
|
|
116
|
+
"Davoice.io",
|
|
117
|
+
"voice commands",
|
|
118
|
+
"wake word",
|
|
119
|
+
"wakeword",
|
|
120
|
+
"wake words",
|
|
121
|
+
"keyword detection",
|
|
122
|
+
"keyword spotting",
|
|
123
|
+
"Wake word detection github"
|
|
124
|
+
"Wake Word"
|
|
125
|
+
"keyword detection"
|
|
126
|
+
"Phrase Recognition"
|
|
127
|
+
"Phrase Spotting"
|
|
128
|
+
"react-native wake word",
|
|
84
129
|
"Custom wake word",
|
|
85
130
|
"voice commands",
|
|
86
131
|
"wake word",
|
|
@@ -94,6 +139,21 @@ DaVoice.io Voice commands / Wake words / Voice to Intent / keyword detection npm
|
|
|
94
139
|
"react native wake word",
|
|
95
140
|
"Davoice.io wake word",
|
|
96
141
|
"Davoice wake word",
|
|
142
|
+
"Davoice wake word",
|
|
143
|
+
"Davoice react native wake word",
|
|
144
|
+
"Davoice.io react-native wake word",
|
|
145
|
+
"wake",
|
|
146
|
+
"word",
|
|
147
|
+
"Voice Commands Recognition",
|
|
148
|
+
"lightweight Voice Commands Recognition",
|
|
149
|
+
"customized lightweight Voice Commands Recognition",
|
|
150
|
+
"rn wake word"
|
|
151
|
+
"speech to intent",
|
|
152
|
+
"voice to intent",
|
|
153
|
+
"phrase spotting",
|
|
154
|
+
"react native wake word",
|
|
155
|
+
"Davoice.io wake word",
|
|
156
|
+
"Davoice wake word",
|
|
97
157
|
"Davoice react native wake word",
|
|
98
158
|
"Davoice react-native wake word",
|
|
99
159
|
"wake",
|
|
@@ -101,6 +161,8 @@ DaVoice.io Voice commands / Wake words / Voice to Intent / keyword detection npm
|
|
|
101
161
|
"Voice Commands Recognition",
|
|
102
162
|
"lightweight Voice Commands Recognition",
|
|
103
163
|
"customized lightweight Voice Commands Recognition",
|
|
164
|
+
"Custom wake word",
|
|
104
165
|
"rn wake word"
|
|
105
166
|
|
|
106
167
|
|
|
168
|
+
|
package/app.plugin.js
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// app.plugin.js
|
|
2
|
+
const { withAndroidManifest, withProjectBuildGradle } = require('@expo/config-plugins');
|
|
3
|
+
|
|
4
|
+
function withReactNativeWakeword(config) {
|
|
5
|
+
//
|
|
6
|
+
// 1. Add necessary permissions to AndroidManifest (if needed).
|
|
7
|
+
// For example, if `react-native-wakeword` needs RECORD_AUDIO.
|
|
8
|
+
//
|
|
9
|
+
config = withAndroidManifest(config, (config) => {
|
|
10
|
+
const androidManifest = config.modResults;
|
|
11
|
+
|
|
12
|
+
// Ensure 'uses-permission' array exists
|
|
13
|
+
if (!androidManifest.manifest['uses-permission']) {
|
|
14
|
+
androidManifest.manifest['uses-permission'] = [];
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const permissions = androidManifest.manifest['uses-permission'];
|
|
18
|
+
const hasRecordAudio = permissions.some(
|
|
19
|
+
(permission) => permission.$['android:name'] === 'android.permission.RECORD_AUDIO'
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
// Add RECORD_AUDIO permission if not present
|
|
23
|
+
if (!hasRecordAudio) {
|
|
24
|
+
permissions.push({ $: { 'android:name': 'android.permission.RECORD_AUDIO' } });
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
return config;
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
//
|
|
31
|
+
// 2. Insert Maven repository or other Gradle config in the project's
|
|
32
|
+
// top-level build.gradle (only if your library requires custom artifacts).
|
|
33
|
+
//
|
|
34
|
+
config = withProjectBuildGradle(config, (config) => {
|
|
35
|
+
const buildGradle = config.modResults.contents;
|
|
36
|
+
|
|
37
|
+
// This snippet references a local "libs" folder inside your library package.
|
|
38
|
+
// Adjust the path if your artifacts are elsewhere or not needed.
|
|
39
|
+
const wakewordMaven = `
|
|
40
|
+
// react-native-wakeword added
|
|
41
|
+
maven { url("$rootDir/../node_modules/react-native-wakeword/libs") }
|
|
42
|
+
// End react-native-wakeword added
|
|
43
|
+
`;
|
|
44
|
+
|
|
45
|
+
// Only add the snippet once
|
|
46
|
+
if (!buildGradle.includes('react-native-wakeword added')) {
|
|
47
|
+
config.modResults.contents = buildGradle.replace(
|
|
48
|
+
/repositories\s*{/,
|
|
49
|
+
`repositories {\n${wakewordMaven}`
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
return config;
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
return config;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
module.exports = withReactNativeWakeword;
|
|
60
|
+
|
package/package.json
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-wakeword",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.66",
|
|
4
4
|
"description": "Voice/Wake-word detection library for React Native",
|
|
5
5
|
"main": "wakewords/index.js",
|
|
6
6
|
"types": "wakewords/index.d.ts",
|
|
7
7
|
"expo": {
|
|
8
|
-
"plugins": [
|
|
8
|
+
"plugins": [
|
|
9
|
+
"./app.plugin.js"
|
|
10
|
+
]
|
|
9
11
|
},
|
|
10
12
|
"files": [
|
|
11
13
|
"wakewords/",
|
|
@@ -13,6 +15,7 @@
|
|
|
13
15
|
"ios/",
|
|
14
16
|
"react-native.config.js",
|
|
15
17
|
"module.modulemap",
|
|
18
|
+
"./app.plugin.js",
|
|
16
19
|
"KeyWordDetection.podspec"
|
|
17
20
|
],
|
|
18
21
|
"react-native": {
|
|
@@ -39,10 +42,20 @@
|
|
|
39
42
|
"wake words",
|
|
40
43
|
"keyword detection",
|
|
41
44
|
"keyword spotting",
|
|
45
|
+
"Wake word detection github",
|
|
46
|
+
"keyword detection",
|
|
47
|
+
"Phrase Recognition",
|
|
48
|
+
"Phrase Spotting",
|
|
49
|
+
"Voice triggered",
|
|
50
|
+
"hot word",
|
|
51
|
+
"trigger word",
|
|
42
52
|
"speech to intent",
|
|
43
53
|
"voice to intent",
|
|
44
54
|
"phrase spotting",
|
|
45
55
|
"react native wake word",
|
|
56
|
+
"react native Phrase Spotting",
|
|
57
|
+
"react native Voice triggered",
|
|
58
|
+
"react native hot word",
|
|
46
59
|
"Davoice.io wake word",
|
|
47
60
|
"Davoice wake word",
|
|
48
61
|
"Davoice react native wake word",
|