react-native-wakeword 1.0.24 → 1.0.26

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.
@@ -0,0 +1,34 @@
1
+ Pod::Spec.new do |s|
2
+ s.name = "KeyWordDetection"
3
+ s.version = "1.0.0" # Update to your package version
4
+ s.summary = "Wake word detection for React Native."
5
+ s.description = <<-DESC
6
+ A React Native module for wake word detection .
7
+ DESC
8
+ s.homepage = "https://github.com/frymanofer/KeywordsDetectionAndroidLibrary.git" # Update with your repo URL
9
+ s.license = { :type => "MIT" } # Update if different
10
+ s.author = { "Your Name" => "ofer@davoice.io" } # Update with your info
11
+ s.platform = :ios, "11"
12
+ # s.source = { :git => "https://github.com/frymanofer/KeywordsDetectionAndroidLibrary.git", :tag => s.version.to_s } # Update accordingly
13
+ s.source = { :path => "." }
14
+
15
+ # s.source_files = "ios/*.{h,m,mm,swift}"
16
+ s.resources = "ios/models/*"
17
+ s.source_files = 'ios/KeyWordRNBridge.h', 'ios/KeyWordRNBridge.mm', 'ios/KeyWordRNBridgeSwift.h','ios/KeyWordRNBridgeSwift.mm'
18
+
19
+ s.vendored_frameworks = "ios/KeyWordDetection.xcframework"
20
+
21
+ s.dependency "React"
22
+ s.dependency "onnxruntime-objc", "~> 1.18.0"
23
+ s.dependency "ios-voice-processor", "~> 1.1.0"
24
+
25
+ s.module_map = "module.modulemap"
26
+
27
+ s.pod_target_xcconfig = {
28
+ "FRAMEWORK_SEARCH_PATHS" => "\"$(PODS_ROOT)/react-native-wakeword/ios\"",
29
+ "DEFINES_MODULE" => "YES"
30
+ }
31
+
32
+ s.requires_arc = true
33
+ end
34
+
package/README.md CHANGED
@@ -1,9 +1,40 @@
1
- DaVoice.io Voice commands / Wake words / keyword detection npm for Android and IOS.
1
+ DaVoice.io Voice commands / Wake words / Voice to Intent / keyword detection npm for Android and IOS.
2
2
 
3
3
  Contact us at info@DaVoice.io
4
4
 
5
5
  ## Installation
6
6
  npm install react-native-wakeword
7
7
 
8
+ ## Githhub examples:
9
+
8
10
  Checkout examples on:
9
11
  https://github.com/frymanofer/ReactNative_WakeWordDetection
12
+
13
+
14
+ ## FAQ:
15
+
16
+ ### What is a wake word?
17
+
18
+ A wake word is a keyword that activates your device, like "Hey Siri" or "OK Google".
19
+
20
+
21
+ What is a Speech to Intent?
22
+
23
+ Speech to Intent refers to the ability to recognize a spoken word or phrase
24
+ and directly associate it with a specific action or operation within an application.
25
+
26
+ Unlike a "wake word," which typically serves to activate or wake up the application,
27
+ Speech to Intent goes further by enabling complex interactions and functionalities
28
+ based on the recognized intent behind the speech.
29
+
30
+ For example, a wake word like "Hey App" might activate the application, while Speech
31
+ to Intent could process a phrase like "Play my favorite song" or "Order a coffee" to
32
+ execute corresponding tasks within the app.
33
+ Speech to Intent is often triggered after a wake word activates the app, making it a key
34
+ component of more advanced voice-controlled applications. This layered approach allows for
35
+ seamless and intuitive voice-driven user experiences.
36
+
37
+ How accurate is the platform?
38
+
39
+ Our platform ensures 99.99%+ accuracy in various environments.
40
+
@@ -1,3 +1,6 @@
1
+ Error - the podsepc must be called KeyWordDetection.podspec and align with sname of KeyWordDetection
2
+ also podspec was moved to ../
3
+
1
4
  Pod::Spec.new do |s|
2
5
  s.name = "react-native-wakeword"
3
6
  s.version = "1.0.0" # Update to your package version
@@ -8,21 +11,28 @@ Pod::Spec.new do |s|
8
11
  s.homepage = "https://github.com/frymanofer/KeywordsDetectionAndroidLibrary.git" # Update with your repo URL
9
12
  s.license = { :type => "MIT" } # Update if different
10
13
  s.author = { "Your Name" => "ofer@davoice.io" } # Update with your info
11
- s.platform = :ios, "13.5"
14
+ s.platform = :ios, "11"
12
15
  # s.source = { :git => "https://github.com/frymanofer/KeywordsDetectionAndroidLibrary.git", :tag => s.version.to_s } # Update accordingly
13
16
  s.source = { :path => "." }
14
17
 
15
- s.source_files = "ios/*.{h,m,mm}"
16
- s.resources = "ios/models/*"
18
+ # s.source_files = "ios/*.{h,m,mm}"
19
+ # s.resources = "ios/models/*"
17
20
 
18
- s.vendored_frameworks = "ios/KeyWordDetection.xcframework"
21
+ # s.vendored_frameworks = "ios/KeyWordDetection.xcframework"
22
+ # s.source_files = "*.{h,m,mm}"
23
+ s.source_files = "*.{h,m,mm,swift}"
24
+ s.resources = "models/*"
19
25
 
26
+ s.vendored_frameworks = "KeyWordDetection.xcframework"
27
+
28
+
20
29
  s.dependency "React"
21
30
  s.dependency "onnxruntime-objc", "~> 1.18.0"
22
31
  s.dependency "ios-voice-processor", "~> 1.1.0"
23
32
 
24
33
  s.pod_target_xcconfig = {
25
- "FRAMEWORK_SEARCH_PATHS" => "\"$(PODS_ROOT)/react-native-wakeword/ios\""
34
+ "FRAMEWORK_SEARCH_PATHS" => "\"$(PODS_ROOT)/react-native-wakeword/ios\"",
35
+ "DEFINES_MODULE" => "YES"
26
36
  }
27
37
 
28
38
  s.requires_arc = true
@@ -0,0 +1,8 @@
1
+ framework module KeyWordDetection {
2
+ umbrella header "KeyWordDetection.h"
3
+
4
+ export *
5
+ module * { export * }
6
+ }
7
+
8
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-wakeword",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
4
4
  "description": "Voice/Wake-word detection library for React Native",
5
5
  "main": "wakewords/index.js",
6
6
  "types": "wakewords/index.d.ts",
@@ -8,7 +8,9 @@
8
8
  "wakewords/",
9
9
  "android/",
10
10
  "ios/",
11
- "react-native.config.js"
11
+ "react-native.config.js",
12
+ "module.modulemap",
13
+ "KeyWordDetection.podspec"
12
14
  ],
13
15
  "react-native": {
14
16
  "ios": "ios",
@@ -8,7 +8,7 @@ module.exports = {
8
8
  packageInstance: 'new KeyWordRNBridgePackage()',
9
9
  },
10
10
  ios: {
11
- podspecPath: './ios/react-native-wakeword.podspec', // Points to your podspec
11
+ podspecPath: './KeyWordDetection.podspec', // Points to your podspec
12
12
  },
13
13
  },
14
14
  },