react-native-wakeword-sid 1.1.70

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.
Files changed (74) hide show
  1. package/KeyWordRNBridge.podspec +58 -0
  2. package/LICENSE +21 -0
  3. package/README.md +282 -0
  4. package/android/.gradle/8.9/checksums/checksums.lock +0 -0
  5. package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
  6. package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
  7. package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
  8. package/android/.gradle/8.9/gc.properties +0 -0
  9. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  10. package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
  11. package/android/.gradle/vcs-1/gc.properties +0 -0
  12. package/android/build.gradle +48 -0
  13. package/android/libs/com/davoice/keyworddetection/1.0.0/keyworddetection-1.0.0.aar +0 -0
  14. package/android/libs/com/davoice/keyworddetection/1.0.0/keyworddetection-1.0.0.aar.md5 +1 -0
  15. package/android/libs/com/davoice/keyworddetection/1.0.0/keyworddetection-1.0.0.aar.sha1 +1 -0
  16. package/android/libs/com/davoice/keyworddetection/1.0.0/keyworddetection-1.0.0.pom +10 -0
  17. package/android/libs/com/davoice/keyworddetection/1.0.0/keyworddetection-1.0.0.pom.md5 +1 -0
  18. package/android/libs/com/davoice/keyworddetection/1.0.0/keyworddetection-1.0.0.pom.sha1 +1 -0
  19. package/android/settings.gradle +2 -0
  20. package/android/src/main/AndroidManifest.xml +17 -0
  21. package/android/src/main/assets/hey_lookdeep.dm +0 -0
  22. package/android/src/main/assets/layer1.dm +0 -0
  23. package/android/src/main/assets/need_help_now.dm +0 -0
  24. package/android/src/main/java/com/davoice/keywordspotting/KeyWordRNBridge.java +331 -0
  25. package/android/src/main/java/com/davoice/keywordspotting/KeyWordRNBridgePackage.java +25 -0
  26. package/android/src/main/java/com/davoice/speakeridrn/SpeakerIdRNBridge.java +373 -0
  27. package/android/src/main/java/com/davoice/speakeridrn/SpeakerIdRNBridgePackage.java +24 -0
  28. package/android/src/main/libs/MyLibrary-release.aar +0 -0
  29. package/app.plugin.js +60 -0
  30. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/Info.plist +44 -0
  31. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Headers/KeyWordDetection-Swift.h +399 -0
  32. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Headers/KeyWordDetection.h +18 -0
  33. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Info.plist +0 -0
  34. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/KeyWordDetection +0 -0
  35. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.abi.json +5570 -0
  36. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.private.swiftinterface +157 -0
  37. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  38. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.swiftinterface +157 -0
  39. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/module.modulemap +11 -0
  40. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Headers/KeyWordDetection-Swift.h +794 -0
  41. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Headers/KeyWordDetection.h +18 -0
  42. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Info.plist +0 -0
  43. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/KeyWordDetection +0 -0
  44. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.abi.json +5570 -0
  45. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +157 -0
  46. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  47. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.swiftinterface +157 -0
  48. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.abi.json +5570 -0
  49. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +157 -0
  50. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  51. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +157 -0
  52. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/module.modulemap +11 -0
  53. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/_CodeSignature/CodeDirectory +0 -0
  54. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/_CodeSignature/CodeRequirements +0 -0
  55. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/_CodeSignature/CodeRequirements-1 +0 -0
  56. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/_CodeSignature/CodeResources +297 -0
  57. package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/_CodeSignature/CodeSignature +0 -0
  58. package/ios/KeyWordRNBridge/KeyWordRNBridge.h +19 -0
  59. package/ios/KeyWordRNBridge/KeyWordRNBridge.mm +395 -0
  60. package/ios/KeyWordRNBridge/models/coca_cola_model_28_05052025.onnx +0 -0
  61. package/ios/KeyWordRNBridge/models/embedding_model.onnx +0 -0
  62. package/ios/KeyWordRNBridge/models/hey_lookdeep.onnx +0 -0
  63. package/ios/KeyWordRNBridge/models/melspectrogram.onnx +0 -0
  64. package/ios/KeyWordRNBridge/models/need_help_now.onnx +0 -0
  65. package/ios/KeyWordRNBridge/models/silero_vad.onnx +0 -0
  66. package/package.json +74 -0
  67. package/speakerid/SpeakerIdRNBridge.d.ts +44 -0
  68. package/speakerid/SpeakerIdRNBridge.js +169 -0
  69. package/wakewords/KeyWordRNBridge.d.ts +37 -0
  70. package/wakewords/KeyWordRNBridge.js +221 -0
  71. package/wakewords/index.d.ts +10 -0
  72. package/wakewords/index.js +21 -0
  73. package/wakewords/useModel.d.ts +19 -0
  74. package/wakewords/useModel.tsx +235 -0
@@ -0,0 +1,58 @@
1
+ require 'json'
2
+
3
+ Pod::Spec.new do |s|
4
+ s.name = "KeyWordRNBridge"
5
+ s.version = "1.0.1" # Update to your package version
6
+ s.summary = "Wake word detection for React Native."
7
+ s.description = <<-DESC
8
+ A React Native module for wake word detection .
9
+ DESC
10
+ s.homepage = "https://github.com/frymanofer/KeywordsDetectionAndroidLibrary.git" # Update with your repo URL
11
+ s.license = { :type => "MIT" } # Update if different
12
+ s.author = { "Your Name" => "ofer@davoice.io" } # Update with your info
13
+ s.platform = :ios, "11"
14
+ # s.source = { :git => "https://github.com/frymanofer/KeywordsDetectionAndroidLibrary.git", :tag => s.version.to_s } # Update accordingly
15
+ s.source = { :path => "." }
16
+
17
+ # s.source_files = "ios/*.{h,m,mm,swift}"
18
+ s.resources = "ios/KeyWordRNBridge/models/*"
19
+ s.source_files = 'ios/KeyWordRNBridge/KeyWordRNBridge.h', 'ios/KeyWordRNBridge/KeyWordRNBridge.mm'
20
+
21
+ #s.static_framework = true
22
+
23
+ s.vendored_frameworks = "ios/KeyWordRNBridge/KeyWordDetection.xcframework"
24
+
25
+ s.dependency "React-Core"
26
+ s.dependency "onnxruntime-objc", "~> 1.20.0"
27
+ s.preserve_paths = 'docs', 'CHANGELOG.md', 'LICENSE', 'package.json'
28
+
29
+ end
30
+
31
+ # /Users/oferfryman/projects/porcuSafe/node_modules/react-native-background-fetch/RNBackgroundFetch.podspec
32
+ # require 'json'
33
+
34
+ # package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
35
+
36
+ # Pod::Spec.new do |s|
37
+ # s.cocoapods_version = '>= 1.10.0'
38
+ # s.name = 'RNBackgroundFetch'
39
+ # s.version = package['version']
40
+ # s.summary = package['description']
41
+ # s.description = <<-DESC
42
+ # iOS BackgroundFetch API Implementation
43
+ # DESC
44
+ # s.homepage = package['homepage']
45
+ # s.license = package['license']
46
+ # s.author = package['author']
47
+ # s.source = { :git => 'https://github.com/transistorsoft/react-native-background-fetch.git', :tag => s.version }
48
+
49
+ # s.requires_arc = true
50
+ # s.platform = :ios, '8.0'
51
+
52
+ # s.dependency 'React-Core'
53
+ # s.preserve_paths = 'docs', 'CHANGELOG.md', 'LICENSE', 'package.json', 'RNBackgroundFetch.ios.js'
54
+ # s.source_files = 'ios/RNBackgroundFetch/RNBackgroundFetch.h', 'ios/RNBackgroundFetch/RNBackgroundFetch.m'
55
+ # s.vendored_frameworks = 'ios/RNBackgroundFetch/TSBackgroundFetch.xcframework'
56
+ # s.resource_bundles = {'TSBackgroundFetchPrivacy' => ['ios/Resources/PrivacyInfo.xcprivacy']}
57
+ # end
58
+
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 frymanofer
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,282 @@
1
+ # React-Native "wake word" by Davoice
2
+
3
+ ## React-Native "wake word" also known as "react-native hotword", "react-native trigger word”, "react-native phrase spotting” and more...
4
+
5
+ By [DaVoice.io](https://davoice.io)
6
+
7
+ [![Twitter URL](https://img.shields.io/twitter/url?style=social&url=https%3A%2F%2Ftwitter.com%2FDaVoiceAI)](https://twitter.com/DaVoiceAI)
8
+
9
+ Welcome to **Davoice React-Native Wake Word / hotword / Keywords Detection** – Wake words and keyword detection solution designed by **DaVoice.io**.
10
+
11
+ ## New:
12
+ Fix IOS crash when retaking microphone after a call.
13
+
14
+ Fix IOS issue with static Podfile linkage.
15
+
16
+ Reduce ios minimum version to 11 (was 13.5)
17
+
18
+ ## About this package:
19
+
20
+ 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”
21
+
22
+ It also provide **Voice Commands** AKA **Speech to Intent**. **Voice Commands** refers to the ability to recognize a spoken word or phrase
23
+ 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,
24
+ Speech to Intent goes further by enabling complex interactions and functionalities based on the recognized intent behind the speech.
25
+
26
+ For example, a wake word like "Hey App" might activate the application, while Speech
27
+ to Intent could process a phrase like "Play my favorite song" or "Order a coffee" to
28
+ execute corresponding tasks within the app.
29
+ Speech to Intent is often triggered after a wake word activates the app, making it a key
30
+ component of more advanced voice-controlled applications. This layered approach allows for
31
+ seamless and intuitive voice-driven user experiences.
32
+
33
+ More questions? - Contact us at info@DaVoice.io
34
+
35
+ ## Features
36
+
37
+ - **High Accuracy:** We have succesfully reached over 99% accurary for all our models. **Here is on of our customer's benchmarks**:
38
+
39
+ ```
40
+ MODEL DETECTION RATE
41
+ ===========================
42
+ DaVoice 0.992481
43
+ Top Player 0.874812
44
+ Third 0.626567
45
+ ```
46
+
47
+ Please check this link for an official benchmake by lookdeep.health:
48
+ https://www.reddit.com/r/Python/comments/1ioo4yd/bulletproof_wakewordkeyword_spotting/
49
+
50
+ - **Easy to deploy wake word with React Native:** Check out our example: "rn_example/DetectingKeyWords.js". With a few simple lines of code, you have your own keyword detecting enabled app.
51
+ - **Cross-Platform Support:** Integrate Davoice KeywordsDetection into React-Native Framework. Both iOS and Android are supported.
52
+ - **Low Latency:** Experience near-instantaneous keyword detection.
53
+
54
+ ## Platforms and Supported Languages
55
+
56
+ - **React-Native wake word Android:** React Native Wrapper for Android.
57
+ - **React-Native wake word iOS:** React Native Wrapper for iOS.
58
+
59
+ # Wake word generator
60
+
61
+ ## Create your "custom wake word""
62
+
63
+ In order to generate your custom wake word you will need to:
64
+
65
+ - **Create wake word mode:**
66
+ Contact us at info@davoice.io with a list of your desired **"custom wake words"**.
67
+
68
+ We will send you corresponding models typically your **wake word phrase .onnx** for example:
69
+
70
+ A wake word ***"hey sky"** will correspond to **hey_sky.onnx**.
71
+
72
+ - **Add wake words to Android:**
73
+ Simply copy the new onnx files to:
74
+
75
+ android/app/src/main/assets/*.onnx
76
+
77
+ - **Add Wake word to IOS**
78
+ Copy new models somewhere under ios/YourProjectName.
79
+
80
+ You can create a folder ios/YourProjectName/models/ and copy there there.
81
+
82
+ Now add each onnx file to xcode making sure you opt-in “copy if needed”.
83
+
84
+ - **In React/JS code add the new onnx files to your configuration**
85
+
86
+ Change:
87
+
88
+ ```
89
+ // Create an array of instance configurations
90
+
91
+ const instanceConfigs:instanceConfig[] = [
92
+
93
+ { id: 'need_help_now', modelName: 'need_help_now.onnx', threshold: 0.9999, bufferCnt: 3 , sticky: false },
94
+
95
+ ];
96
+
97
+ To:
98
+
99
+ // Create an array of instance configurations
100
+
101
+ const instanceConfigs:instanceConfig[] = [
102
+
103
+ { id: 'my_wake_word', modelName: 'my_wake_word.onnx', threshold: 0.9999, bufferCnt: 3 , sticky: false },
104
+
105
+ ];
106
+
107
+ For example if your generated custom wake word" is "hey sky":
108
+
109
+ // Create an array of instance configurations
110
+
111
+ const instanceConfigs:instanceConfig[] = [
112
+
113
+ { id: 'hey sky', modelName: 'hey_sky.onnx', threshold: 0.9999, bufferCnt: 3 , sticky: false },
114
+
115
+ ];
116
+ ```
117
+
118
+ - **Last step - Rebuild your project**
119
+
120
+ ## Contact
121
+
122
+ For any questions, requirements, or more support for React-Native, please contact us at info@davoice.io.
123
+
124
+ # IOS and Android Package
125
+
126
+ ## Installation
127
+ npm install react-native-wakeword
128
+
129
+ ## Android:
130
+ Add this to your android/build.gradle file:
131
+
132
+ allprojects {
133
+
134
+ repositories {
135
+
136
+ // react-native-wakeword added
137
+
138
+ maven { url "${project(":react-native-wakeword").projectDir}/libs" }
139
+
140
+ maven { url("${project(':react-native-wakeword').projectDir}/libs") }
141
+
142
+ maven {
143
+ url("${project(':react-native-wakeword').projectDir}/libs")
144
+ }
145
+
146
+ // End react-native-wakeword added
147
+
148
+ ... your other lines...
149
+
150
+ ## Githhub examples:
151
+
152
+ ### Checkout examples on:
153
+ https://github.com/frymanofer/ReactNative_WakeWordDetection
154
+
155
+ https://github.com/frymanofer/ReactNative_WakeWordDetection/example_npm
156
+
157
+ ## FAQ:
158
+
159
+ ### What is a wake word?
160
+
161
+ A **"wake word"** is a keyword or phrase 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”...
162
+
163
+ ### What is a Speech to Intent?
164
+
165
+ **"Speech to Intent"** refers to the ability to recognize a spoken word or phrase
166
+ and directly associate it with a specific action or operation within an application.
167
+
168
+ Unlike a **"wake word"**, which typically serves to activate or wake up the application,
169
+ Speech to Intent goes further by enabling complex interactions and functionalities
170
+ based on the recognized intent behind the speech.
171
+
172
+ For example, a wake word like "Hey App" might activate the application, while Speech
173
+ to Intent could process a phrase like "Play my favorite song" or "Order a coffee" to
174
+ execute corresponding tasks within the app.
175
+ Speech to Intent is often triggered after a wake word activates the app, making it a key
176
+ component of more advanced voice-controlled applications. This layered approach allows for
177
+ seamless and intuitive voice-driven user experiences.
178
+
179
+ ### How accurate is the platform?
180
+
181
+ We have succesfully reached over 99% "wake word" accurary for all our models. **Here is on of our customer's benchmarks**:
182
+
183
+ ```
184
+ MODEL DETECTION RATE
185
+ ===========================
186
+ DaVoice 0.992481
187
+ Top Player 0.874812
188
+ Third 0.626567
189
+ ```
190
+
191
+ ### Key words
192
+
193
+ "DaVoice.io"
194
+ "Voice commands"
195
+ "Wake word detection github"
196
+ “Voice triggered”
197
+ “hot word”
198
+ “react-native trigger word”
199
+ “react-native Voice triggered”
200
+ “react-native hot word”
201
+ "react-native wake word",
202
+ "Wake word generator",
203
+ "hot word generator",
204
+ "trigger word generator",
205
+ "Custom wake word generator",
206
+ "Custom hot word",
207
+ "Custom trigger word",
208
+ "Custom wake word",
209
+ "voice commands",
210
+ "wake word",
211
+ "wakeword",
212
+ "wake words",
213
+ "keyword detection",
214
+ "keyword spotting",
215
+ "speech to intent",
216
+ "voice commands",
217
+ "voice to intent",
218
+ "phrase spotting",
219
+ "react native wake word",
220
+ "Davoice.io wake word",
221
+ "Davoice wake word",
222
+ "Davoice react native wake word",
223
+ "Davoice react-native wake word",
224
+ "wake",
225
+ "word",
226
+ "Voice Commands Recognition",
227
+ "lightweight Voice Commands Recognition",
228
+ "customized lightweight Voice Commands Recognition",
229
+ "rn wake word"
230
+ "Davoice.io",
231
+ "voice commands",
232
+ "wake word",
233
+ "wakeword",
234
+ "wake words",
235
+ "keyword detection",
236
+ "keyword spotting",
237
+ "Wake word detection github"
238
+ "Wake Word"
239
+ "keyword detection"
240
+ "Phrase Recognition"
241
+ "Phrase Spotting"
242
+ "react-native wake word",
243
+ "Custom wake word",
244
+ "voice commands",
245
+ "wake word",
246
+ "wakeword",
247
+ "wake words",
248
+ "keyword detection",
249
+ "keyword spotting",
250
+ "speech to intent",
251
+ "voice to intent",
252
+ "phrase spotting",
253
+ "react native wake word",
254
+ "Davoice.io wake word",
255
+ "Davoice wake word",
256
+ "Davoice wake word",
257
+ "Davoice react native wake word",
258
+ "Davoice.io react-native wake word",
259
+ "wake",
260
+ "word",
261
+ "Voice Commands Recognition",
262
+ "lightweight Voice Commands Recognition",
263
+ "customized lightweight Voice Commands Recognition",
264
+ "rn wake word"
265
+ "speech to intent",
266
+ "voice to intent",
267
+ "phrase spotting",
268
+ "react native wake word",
269
+ "Davoice.io wake word",
270
+ "Davoice wake word",
271
+ "Davoice react native wake word",
272
+ "Davoice react-native wake word",
273
+ "wake",
274
+ "word",
275
+ "Voice Commands Recognition",
276
+ "lightweight Voice Commands Recognition",
277
+ "customized lightweight Voice Commands Recognition",
278
+ "Custom wake word",
279
+ "rn wake word"
280
+
281
+
282
+
File without changes
@@ -0,0 +1,2 @@
1
+ #Fri Sep 26 21:12:50 IDT 2025
2
+ gradle.version=8.9
File without changes
@@ -0,0 +1,48 @@
1
+ apply plugin: 'com.android.library'
2
+
3
+ android {
4
+ compileSdkVersion 33
5
+
6
+ defaultConfig {
7
+ minSdkVersion 21
8
+ targetSdkVersion 33
9
+ consumerProguardFiles 'consumer-rules.pro'
10
+ }
11
+
12
+ sourceSets {
13
+ main {
14
+ assets.srcDirs = ['src/main/assets']
15
+ jniLibs.srcDirs = ['src/main/jniLibs'] // Add this line if needed
16
+ }
17
+ }
18
+ }
19
+
20
+ repositories {
21
+ google()
22
+ mavenCentral()
23
+ maven {
24
+ url 'https://maven.pkg.github.com/microsoft/onnxruntime'
25
+ }
26
+ maven {
27
+ url './libs'
28
+ }
29
+ maven {
30
+ url "$projectDir/libs"
31
+ }
32
+ mavenLocal()
33
+ }
34
+
35
+ dependencies {
36
+ implementation "com.facebook.react:react-native:+"
37
+ // implementation 'com.microsoft.onnxruntime:onnxruntime-android:1.20.0'
38
+ implementation 'ai.picovoice:android-voice-processor:1.0.2'
39
+ api 'com.davoice:keyworddetection:1.0.0'
40
+ // implementation(name: 'MyLibrary-release', ext: 'aar') // Add this line
41
+ }
42
+
43
+ // Run this once to be able to run the application with BUCK
44
+ // puts all compile dependencies into folder libs for BUCK to use
45
+ task copyDownloadableDepsToLibs(type: Copy) {
46
+ from configurations.implementation
47
+ into 'libs'
48
+ }
@@ -0,0 +1 @@
1
+ ed2a3331d01403292fcd0330e6c1ce6c keyworddetection-1.0.0.aar
@@ -0,0 +1 @@
1
+ 51127b88ee989b5fd0a061508e6cb94b0f956be6 keyworddetection-1.0.0.aar
@@ -0,0 +1,10 @@
1
+ <project xmlns="http://maven.apache.org/POM/4.0.0"
2
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
4
+ http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
+ <modelVersion>4.0.0</modelVersion>
6
+ <groupId>com.davoice</groupId>
7
+ <artifactId>keyworddetection</artifactId>
8
+ <version>1.0.0</version>
9
+ <packaging>aar</packaging>
10
+ </project>
@@ -0,0 +1 @@
1
+ e5c6a73bac657aa816353ea352a514b6 keyworddetection-1.0.0.pom
@@ -0,0 +1 @@
1
+ e5d2ce768d7a084d7dbe62bf5b7d1489f31f76c8 keyworddetection-1.0.0.pom
@@ -0,0 +1,2 @@
1
+ include ':react-native-wakeword'
2
+ project(':react-native-wakeword').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-wakeword/android')
@@ -0,0 +1,17 @@
1
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
+ package="com.davoice.keywordspotting">
3
+
4
+ <uses-permission android:name="android.permission.INTERNET" />
5
+ <uses-permission android:name="android.permission.RECORD_AUDIO"/>
6
+ <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
7
+ <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
8
+ <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MICROPHONE"/>
9
+ <uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS"/>
10
+ <uses-permission android:name="android.permission.WAKE_LOCK"/>
11
+
12
+ <!-- Required for microphone access in Android 14 -->
13
+ <uses-permission android:name="android.permission.CAPTURE_AUDIO_OUTPUT"/>
14
+ <uses-permission android:name="android.permission.CAPTURE_MEDIA_OUTPUT"/>
15
+
16
+ </manifest>
17
+