react-native-wakeword-sid 1.1.55
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/KeyWordRNBridge.podspec +58 -0
- package/LICENSE +21 -0
- package/README.md +281 -0
- package/android/.gradle/8.9/checksums/checksums.lock +0 -0
- package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.9/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/build.gradle +48 -0
- 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 -0
- package/android/libs/com/davoice/keyworddetection/1.0.0/keyworddetection-1.0.0.aar.sha1 +1 -0
- package/android/libs/com/davoice/keyworddetection/1.0.0/keyworddetection-1.0.0.pom +10 -0
- package/android/libs/com/davoice/keyworddetection/1.0.0/keyworddetection-1.0.0.pom.md5 +1 -0
- package/android/libs/com/davoice/keyworddetection/1.0.0/keyworddetection-1.0.0.pom.sha1 +1 -0
- package/android/settings.gradle +2 -0
- package/android/src/main/AndroidManifest.xml +13 -0
- package/android/src/main/assets/hey_lookdeep.dm +0 -0
- package/android/src/main/assets/layer1.dm +0 -0
- package/android/src/main/assets/need_help_now.dm +0 -0
- package/android/src/main/java/com/davoice/DaVoiceUnifiedPackage.java +29 -0
- package/android/src/main/java/com/davoice/keywordspotting/KeyWordRNBridge.java +335 -0
- package/android/src/main/java/com/davoice/speakeridrn/SpeakerIdRNBridge.java_not_used_yet +588 -0
- package/android/src/main/libs/MyLibrary-release.aar +0 -0
- package/app.plugin.js +60 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/Info.plist +44 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Headers/KeyWordDetection-Swift.h +386 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Headers/KeyWordDetection.h +18 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Info.plist +0 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/KeyWordDetection +0 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.abi.json +5758 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.private.swiftinterface +159 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.swiftinterface +159 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/module.modulemap +11 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Headers/KeyWordDetection-Swift.h +768 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Headers/KeyWordDetection.h +18 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Info.plist +0 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/KeyWordDetection +0 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.abi.json +5758 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +159 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.swiftinterface +159 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.abi.json +5758 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +159 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +159 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/module.modulemap +11 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/_CodeSignature/CodeDirectory +0 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/_CodeSignature/CodeRequirements +0 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/_CodeSignature/CodeRequirements-1 +0 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/_CodeSignature/CodeResources +297 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/_CodeSignature/CodeSignature +0 -0
- package/ios/KeyWordRNBridge/KeyWordRNBridge.h +19 -0
- package/ios/KeyWordRNBridge/KeyWordRNBridge.m +642 -0
- package/ios/KeyWordRNBridge/KeyWordRNBridge.mm +416 -0
- package/ios/KeyWordRNBridge/models/coca_cola_model_28_05052025.onnx +0 -0
- package/ios/KeyWordRNBridge/models/embedding_model.onnx +0 -0
- package/ios/KeyWordRNBridge/models/hey_lookdeep.onnx +0 -0
- package/ios/KeyWordRNBridge/models/melspectrogram.onnx +0 -0
- package/ios/KeyWordRNBridge/models/need_help_now.onnx +0 -0
- package/ios/KeyWordRNBridge/models/silero_vad.onnx +0 -0
- package/package.json +74 -0
- package/react-native.config.js +10 -0
- package/wakewords/KeyWordRNBridge.d.ts +38 -0
- package/wakewords/KeyWordRNBridge.js +228 -0
- package/wakewords/SpeakerVerificationRNBridge.d.ts +32 -0
- package/wakewords/SpeakerVerificationRNBridge.js +124 -0
- package/wakewords/audioRoutingConfig.d.ts +17 -0
- package/wakewords/audioRoutingConfig.ts +28 -0
- package/wakewords/index.d.ts +16 -0
- package/wakewords/index.js +34 -0
- package/wakewords/useModel.d.ts +19 -0
- 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.m'
|
|
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,281 @@
|
|
|
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
|
+
[](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
|
+
Android - 16KB alignment.
|
|
13
|
+
|
|
14
|
+
Fix IOS crash when retaking microphone after a call.
|
|
15
|
+
|
|
16
|
+
Fix IOS issue with static Podfile linkage.
|
|
17
|
+
|
|
18
|
+
Reduce ios minimum version to 11 (was 13.5)
|
|
19
|
+
|
|
20
|
+
## About this package:
|
|
21
|
+
|
|
22
|
+
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”
|
|
23
|
+
|
|
24
|
+
It also provide **Voice Commands** AKA **Speech to Intent**. **Voice Commands** refers to the ability to recognize a spoken word or phrase
|
|
25
|
+
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,
|
|
26
|
+
Speech to Intent goes further by enabling complex interactions and functionalities based on the recognized intent behind the speech.
|
|
27
|
+
|
|
28
|
+
For example, a wake word like "Hey App" might activate the application, while Speech
|
|
29
|
+
to Intent could process a phrase like "Play my favorite song" or "Order a coffee" to
|
|
30
|
+
execute corresponding tasks within the app.
|
|
31
|
+
Speech to Intent is often triggered after a wake word activates the app, making it a key
|
|
32
|
+
component of more advanced voice-controlled applications. This layered approach allows for
|
|
33
|
+
seamless and intuitive voice-driven user experiences.
|
|
34
|
+
|
|
35
|
+
More questions? - Contact us at info@DaVoice.io
|
|
36
|
+
|
|
37
|
+
## Features
|
|
38
|
+
|
|
39
|
+
- **High Accuracy:** We have succesfully reached over 99% accurary for all our models. **Here is on of our customer's benchmarks**:
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
MODEL DETECTION RATE
|
|
43
|
+
===========================
|
|
44
|
+
DaVoice 0.992481
|
|
45
|
+
Top Player 0.874812
|
|
46
|
+
Third 0.626567
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
- **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.
|
|
50
|
+
- **Cross-Platform Support:** Integrate Davoice KeywordsDetection into React-Native Framework. Both iOS and Android are supported.
|
|
51
|
+
- **Low Latency:** Experience near-instantaneous keyword detection.
|
|
52
|
+
|
|
53
|
+
## Platforms and Supported Languages
|
|
54
|
+
|
|
55
|
+
- **React-Native wake word Android:** React Native Wrapper for Android.
|
|
56
|
+
- **React-Native wake word iOS:** React Native Wrapper for iOS.
|
|
57
|
+
|
|
58
|
+
# Wake word generator
|
|
59
|
+
|
|
60
|
+
## Create your "custom wake word""
|
|
61
|
+
|
|
62
|
+
In order to generate your custom wake word you will need to:
|
|
63
|
+
|
|
64
|
+
- **Create wake word mode:**
|
|
65
|
+
Contact us at info@davoice.io with a list of your desired **"custom wake words"**.
|
|
66
|
+
|
|
67
|
+
We will send you corresponding models typically your **wake word phrase .onnx** for example:
|
|
68
|
+
|
|
69
|
+
A wake word ***"hey sky"** will correspond to **hey_sky.onnx**.
|
|
70
|
+
|
|
71
|
+
- **Add wake words to Android:**
|
|
72
|
+
Simply copy the new onnx files to:
|
|
73
|
+
|
|
74
|
+
android/app/src/main/assets/*.onnx
|
|
75
|
+
|
|
76
|
+
- **Add Wake word to IOS**
|
|
77
|
+
Copy new models somewhere under ios/YourProjectName.
|
|
78
|
+
|
|
79
|
+
You can create a folder ios/YourProjectName/models/ and copy there there.
|
|
80
|
+
|
|
81
|
+
Now add each onnx file to xcode making sure you opt-in “copy if needed”.
|
|
82
|
+
|
|
83
|
+
- **In React/JS code add the new onnx files to your configuration**
|
|
84
|
+
|
|
85
|
+
Change:
|
|
86
|
+
|
|
87
|
+
```
|
|
88
|
+
// Create an array of instance configurations
|
|
89
|
+
|
|
90
|
+
const instanceConfigs:instanceConfig[] = [
|
|
91
|
+
|
|
92
|
+
{ id: 'need_help_now', modelName: 'need_help_now.onnx', threshold: 0.9999, bufferCnt: 3 , sticky: false },
|
|
93
|
+
|
|
94
|
+
];
|
|
95
|
+
|
|
96
|
+
To:
|
|
97
|
+
|
|
98
|
+
// Create an array of instance configurations
|
|
99
|
+
|
|
100
|
+
const instanceConfigs:instanceConfig[] = [
|
|
101
|
+
|
|
102
|
+
{ id: 'my_wake_word', modelName: 'my_wake_word.onnx', threshold: 0.9999, bufferCnt: 3 , sticky: false },
|
|
103
|
+
|
|
104
|
+
];
|
|
105
|
+
|
|
106
|
+
For example if your generated custom wake word" is "hey sky":
|
|
107
|
+
|
|
108
|
+
// Create an array of instance configurations
|
|
109
|
+
|
|
110
|
+
const instanceConfigs:instanceConfig[] = [
|
|
111
|
+
|
|
112
|
+
{ id: 'hey sky', modelName: 'hey_sky.onnx', threshold: 0.9999, bufferCnt: 3 , sticky: false },
|
|
113
|
+
|
|
114
|
+
];
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
- **Last step - Rebuild your project**
|
|
118
|
+
|
|
119
|
+
## Contact
|
|
120
|
+
|
|
121
|
+
For any questions, requirements, or more support for React-Native, please contact us at info@davoice.io.
|
|
122
|
+
|
|
123
|
+
# IOS and Android Package
|
|
124
|
+
|
|
125
|
+
## Installation
|
|
126
|
+
npm install react-native-wakeword
|
|
127
|
+
|
|
128
|
+
## Android:
|
|
129
|
+
Add this to your android/build.gradle file:
|
|
130
|
+
|
|
131
|
+
allprojects {
|
|
132
|
+
|
|
133
|
+
repositories {
|
|
134
|
+
|
|
135
|
+
// react-native-wakeword added
|
|
136
|
+
|
|
137
|
+
maven { url "${project(":react-native-wakeword").projectDir}/libs" }
|
|
138
|
+
|
|
139
|
+
maven { url("${project(':react-native-wakeword').projectDir}/libs") }
|
|
140
|
+
|
|
141
|
+
maven {
|
|
142
|
+
url("${project(':react-native-wakeword').projectDir}/libs")
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
// End react-native-wakeword added
|
|
146
|
+
|
|
147
|
+
... your other lines...
|
|
148
|
+
|
|
149
|
+
## Githhub examples:
|
|
150
|
+
|
|
151
|
+
### Checkout examples on:
|
|
152
|
+
https://github.com/frymanofer/ReactNative_WakeWordDetection
|
|
153
|
+
|
|
154
|
+
https://github.com/frymanofer/ReactNative_WakeWordDetection/example_npm
|
|
155
|
+
|
|
156
|
+
## FAQ:
|
|
157
|
+
|
|
158
|
+
### What is a wake word?
|
|
159
|
+
|
|
160
|
+
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”...
|
|
161
|
+
|
|
162
|
+
### What is a Speech to Intent?
|
|
163
|
+
|
|
164
|
+
**"Speech to Intent"** refers to the ability to recognize a spoken word or phrase
|
|
165
|
+
and directly associate it with a specific action or operation within an application.
|
|
166
|
+
|
|
167
|
+
Unlike a **"wake word"**, which typically serves to activate or wake up the application,
|
|
168
|
+
Speech to Intent goes further by enabling complex interactions and functionalities
|
|
169
|
+
based on the recognized intent behind the speech.
|
|
170
|
+
|
|
171
|
+
For example, a wake word like "Hey App" might activate the application, while Speech
|
|
172
|
+
to Intent could process a phrase like "Play my favorite song" or "Order a coffee" to
|
|
173
|
+
execute corresponding tasks within the app.
|
|
174
|
+
Speech to Intent is often triggered after a wake word activates the app, making it a key
|
|
175
|
+
component of more advanced voice-controlled applications. This layered approach allows for
|
|
176
|
+
seamless and intuitive voice-driven user experiences.
|
|
177
|
+
|
|
178
|
+
### How accurate is the platform?
|
|
179
|
+
|
|
180
|
+
We have succesfully reached over 99% "wake word" accurary for all our models. **Here is on of our customer's benchmarks**:
|
|
181
|
+
|
|
182
|
+
```
|
|
183
|
+
MODEL DETECTION RATE
|
|
184
|
+
===========================
|
|
185
|
+
DaVoice 0.992481
|
|
186
|
+
Top Player 0.874812
|
|
187
|
+
Third 0.626567
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
### Key words
|
|
191
|
+
|
|
192
|
+
"DaVoice.io"
|
|
193
|
+
"Voice commands"
|
|
194
|
+
"Wake word detection github"
|
|
195
|
+
“Voice triggered”
|
|
196
|
+
“hot word”
|
|
197
|
+
“react-native trigger word”
|
|
198
|
+
“react-native Voice triggered”
|
|
199
|
+
“react-native hot word”
|
|
200
|
+
"react-native wake word",
|
|
201
|
+
"Wake word generator",
|
|
202
|
+
"hot word generator",
|
|
203
|
+
"trigger word generator",
|
|
204
|
+
"Custom wake word generator",
|
|
205
|
+
"Custom hot word",
|
|
206
|
+
"Custom trigger word",
|
|
207
|
+
"Custom wake word",
|
|
208
|
+
"voice commands",
|
|
209
|
+
"wake word",
|
|
210
|
+
"wakeword",
|
|
211
|
+
"wake words",
|
|
212
|
+
"keyword detection",
|
|
213
|
+
"keyword spotting",
|
|
214
|
+
"speech to intent",
|
|
215
|
+
"voice commands",
|
|
216
|
+
"voice to intent",
|
|
217
|
+
"phrase spotting",
|
|
218
|
+
"react native wake word",
|
|
219
|
+
"Davoice.io wake word",
|
|
220
|
+
"Davoice wake word",
|
|
221
|
+
"Davoice react native wake word",
|
|
222
|
+
"Davoice react-native wake word",
|
|
223
|
+
"wake",
|
|
224
|
+
"word",
|
|
225
|
+
"Voice Commands Recognition",
|
|
226
|
+
"lightweight Voice Commands Recognition",
|
|
227
|
+
"customized lightweight Voice Commands Recognition",
|
|
228
|
+
"rn wake word"
|
|
229
|
+
"Davoice.io",
|
|
230
|
+
"voice commands",
|
|
231
|
+
"wake word",
|
|
232
|
+
"wakeword",
|
|
233
|
+
"wake words",
|
|
234
|
+
"keyword detection",
|
|
235
|
+
"keyword spotting",
|
|
236
|
+
"Wake word detection github"
|
|
237
|
+
"Wake Word"
|
|
238
|
+
"keyword detection"
|
|
239
|
+
"Phrase Recognition"
|
|
240
|
+
"Phrase Spotting"
|
|
241
|
+
"react-native wake word",
|
|
242
|
+
"Custom wake word",
|
|
243
|
+
"voice commands",
|
|
244
|
+
"wake word",
|
|
245
|
+
"wakeword",
|
|
246
|
+
"wake words",
|
|
247
|
+
"keyword detection",
|
|
248
|
+
"keyword spotting",
|
|
249
|
+
"speech to intent",
|
|
250
|
+
"voice to intent",
|
|
251
|
+
"phrase spotting",
|
|
252
|
+
"react native wake word",
|
|
253
|
+
"Davoice.io wake word",
|
|
254
|
+
"Davoice wake word",
|
|
255
|
+
"Davoice wake word",
|
|
256
|
+
"Davoice react native wake word",
|
|
257
|
+
"Davoice.io react-native wake word",
|
|
258
|
+
"wake",
|
|
259
|
+
"word",
|
|
260
|
+
"Voice Commands Recognition",
|
|
261
|
+
"lightweight Voice Commands Recognition",
|
|
262
|
+
"customized lightweight Voice Commands Recognition",
|
|
263
|
+
"rn wake word"
|
|
264
|
+
"speech to intent",
|
|
265
|
+
"voice to intent",
|
|
266
|
+
"phrase spotting",
|
|
267
|
+
"react native wake word",
|
|
268
|
+
"Davoice.io wake word",
|
|
269
|
+
"Davoice wake word",
|
|
270
|
+
"Davoice react native wake word",
|
|
271
|
+
"Davoice react-native wake word",
|
|
272
|
+
"wake",
|
|
273
|
+
"word",
|
|
274
|
+
"Voice Commands Recognition",
|
|
275
|
+
"lightweight Voice Commands Recognition",
|
|
276
|
+
"customized lightweight Voice Commands Recognition",
|
|
277
|
+
"Custom wake word",
|
|
278
|
+
"rn wake word"
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
Binary file
|
|
File without changes
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
apply plugin: 'com.android.library'
|
|
2
|
+
|
|
3
|
+
android {
|
|
4
|
+
compileSdkVersion 33
|
|
5
|
+
|
|
6
|
+
defaultConfig {
|
|
7
|
+
minSdkVersion 23
|
|
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
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
a1f8f0ccd4a36890e596d0b22f4ba7b7 keyworddetection-1.0.0.aar
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ecce4612759e9765cb1eec2dcddf74d9a0a59869 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,13 @@
|
|
|
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
|
+
</manifest>
|
|
13
|
+
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
package com.davoice;
|
|
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
|
+
// Your two existing modules:
|
|
9
|
+
import com.davoice.keywordspotting.KeyWordRNBridge;
|
|
10
|
+
//import com.davoice.speakeridrn.SpeakerIdRNBridge;
|
|
11
|
+
|
|
12
|
+
import java.util.Arrays;
|
|
13
|
+
import java.util.Collections;
|
|
14
|
+
import java.util.List;
|
|
15
|
+
|
|
16
|
+
public class DaVoiceUnifiedPackage implements ReactPackage {
|
|
17
|
+
@Override
|
|
18
|
+
public List<NativeModule> createNativeModules(ReactApplicationContext rc) {
|
|
19
|
+
return Arrays.asList(
|
|
20
|
+
new KeyWordRNBridge(rc)
|
|
21
|
+
// new SpeakerIdRNBridge(rc)
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@Override
|
|
26
|
+
public List<ViewManager> createViewManagers(ReactApplicationContext rc) {
|
|
27
|
+
return Collections.emptyList();
|
|
28
|
+
}
|
|
29
|
+
}
|