react-native-wakeword 1.0.76 → 1.0.80
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/keywordspotting/KeyWordRNBridge.java +4 -8
- package/ios/KeyWordDetection.xcframework/Info.plist +5 -5
- package/ios/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Headers/KeyWordDetection-Swift.h +2 -1
- package/ios/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/KeyWordDetection +0 -0
- package/ios/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/ios/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.abi.json +2326 -2067
- package/ios/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.private.swiftinterface +60 -59
- package/ios/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.swiftinterface +60 -59
- package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Headers/KeyWordDetection-Swift.h +4 -2
- package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/KeyWordDetection +0 -0
- package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.abi.json +4290 -3796
- package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +59 -57
- package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.swiftinterface +59 -57
- package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.abi.json +4290 -3796
- package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +59 -57
- package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +59 -57
- package/ios/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/_CodeSignature/CodeResources +26 -26
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// swift-module-flags: -target arm64-apple-ios13.4 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name KeyWordDetection
|
|
4
4
|
// swift-module-flags-ignorable: -no-verify-emitted-module-interface
|
|
5
5
|
import AVFoundation
|
|
6
|
+
import AudioToolbox
|
|
6
7
|
import CommonCrypto
|
|
7
8
|
import Foundation
|
|
8
9
|
@_exported import KeyWordDetection
|
|
@@ -13,63 +14,50 @@ import _SwiftConcurrencyShims
|
|
|
13
14
|
import os.log
|
|
14
15
|
import onnxruntime_objc
|
|
15
16
|
import os
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
@objc public var bufferCnt: Swift.Int
|
|
17
|
+
public class AVAudioWrapperBufferCE {
|
|
18
|
+
public init(size: Swift.Int)
|
|
19
|
+
public func write(samples: [Swift.Float])
|
|
20
|
+
public func read(count: Swift.Int) -> [Swift.Float]
|
|
21
|
+
public func availableSamples() -> Swift.Int
|
|
22
22
|
@objc deinit
|
|
23
23
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
@objc weak public var delegate: (any KeyWordDetection.KeywordDetectionRNDelegate)?
|
|
29
|
-
public var eventSink: (([Swift.String : Any]) -> Swift.Void)?
|
|
30
|
-
@objc public init(modelPath: Swift.String, threshold: Swift.Float, bufferCnt: Swift.Int) throws
|
|
31
|
-
@objc public func replaceKeywordDetectionModel(modelPath: Swift.String, threshold: Swift.Float, bufferCnt: Swift.Int) throws
|
|
32
|
-
@objc public func getKeywordDetectionModel() -> Swift.String
|
|
33
|
-
@objc public func getRecordingWav() -> Swift.String
|
|
34
|
-
@objc public func setKeywordDetectionLicense(licenseKey: Swift.String) -> Swift.Bool
|
|
35
|
-
@objc public func setLicense(licenseKey: Swift.String) -> Swift.Bool
|
|
36
|
-
@objc public func callBack(frame: [Swift.Int16])
|
|
37
|
-
@objc public func startListening() -> Swift.Bool
|
|
38
|
-
@objc public func stopListening()
|
|
24
|
+
public typealias AVAudioWrapperFrameCallback = ([Swift.Float]) -> Swift.Void
|
|
25
|
+
public class AVAudioWrapperFrameListener {
|
|
26
|
+
public init(_ callback: @escaping KeyWordDetection.AVAudioWrapperFrameCallback)
|
|
27
|
+
public func onFrame(_ frame: [Swift.Float])
|
|
39
28
|
@objc deinit
|
|
40
29
|
}
|
|
41
|
-
public class
|
|
42
|
-
public
|
|
43
|
-
public var
|
|
30
|
+
@_hasMissingDesignatedInitializers public class AVAudioWrapperCE {
|
|
31
|
+
public static let instance: KeyWordDetection.AVAudioWrapperCE
|
|
32
|
+
public var isRecording: Swift.Bool {
|
|
44
33
|
get
|
|
45
34
|
}
|
|
46
|
-
public var
|
|
35
|
+
public var frameLength: Swift.UInt32? {
|
|
47
36
|
get
|
|
48
37
|
}
|
|
38
|
+
public var sampleRate: Swift.UInt32? {
|
|
39
|
+
get
|
|
40
|
+
}
|
|
41
|
+
public var numFrameListeners: Swift.Int {
|
|
42
|
+
get
|
|
43
|
+
}
|
|
44
|
+
public static var hasRecordAudioPermission: Swift.Bool {
|
|
45
|
+
get
|
|
46
|
+
}
|
|
47
|
+
public static func requestRecordAudioPermission(_ response: @escaping (Swift.Bool) -> Swift.Void)
|
|
48
|
+
public func addFrameListener(_ listener: KeyWordDetection.AVAudioWrapperFrameListener)
|
|
49
|
+
public func removeFrameListener(_ listener: KeyWordDetection.AVAudioWrapperFrameListener)
|
|
50
|
+
public func clearFrameListeners()
|
|
51
|
+
public func setSessionOptions(sessionOptions: AVFAudio.AVAudioSession.CategoryOptions)
|
|
52
|
+
public func start(frameLength: Swift.UInt32, sampleRate: Swift.UInt32)
|
|
53
|
+
public func stop() throws
|
|
49
54
|
@objc deinit
|
|
50
55
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
override public init(_ message: Swift.String)
|
|
57
|
-
@objc deinit
|
|
58
|
-
}
|
|
59
|
-
@_inheritsConvenienceInitializers public class AVAudioWrapperRuntimeError : KeyWordDetection.AVAudioWrapperError {
|
|
60
|
-
override public init(_ message: Swift.String)
|
|
61
|
-
@objc deinit
|
|
62
|
-
}
|
|
63
|
-
public typealias AVAudioWrapperFrameCallback = ([Swift.Int16]) -> Swift.Void
|
|
64
|
-
public class AVAudioWrapperFrameListener {
|
|
65
|
-
public init(_ callback: @escaping KeyWordDetection.AVAudioWrapperFrameCallback)
|
|
66
|
-
public func onFrame(_ frame: [Swift.Int16])
|
|
67
|
-
@objc deinit
|
|
68
|
-
}
|
|
69
|
-
public typealias AVAudioWrapperErrorCallback = (KeyWordDetection.AVAudioWrapperError) -> Swift.Void
|
|
70
|
-
public class AVAudioWrapperErrorListener {
|
|
71
|
-
public init(_ callback: @escaping KeyWordDetection.AVAudioWrapperErrorCallback)
|
|
72
|
-
public func onError(_ error: KeyWordDetection.AVAudioWrapperError)
|
|
56
|
+
public class AVAudioWrapperBuffer {
|
|
57
|
+
public init(size: Swift.Int)
|
|
58
|
+
public func write(samples: [Swift.Float]) -> Swift.Int16
|
|
59
|
+
public func read(count: Swift.Int) -> [Swift.Float]
|
|
60
|
+
public func availableSamples() -> Swift.Int
|
|
73
61
|
@objc deinit
|
|
74
62
|
}
|
|
75
63
|
@_hasMissingDesignatedInitializers public class AVAudioWrapper {
|
|
@@ -87,9 +75,6 @@ public class AVAudioWrapperErrorListener {
|
|
|
87
75
|
get
|
|
88
76
|
}
|
|
89
77
|
public func setSessionOptions(sessionOptions: AVFAudio.AVAudioSession.CategoryOptions)
|
|
90
|
-
public var numErrorListeners: Swift.Int {
|
|
91
|
-
get
|
|
92
|
-
}
|
|
93
78
|
public static var hasRecordAudioPermission: Swift.Bool {
|
|
94
79
|
get
|
|
95
80
|
}
|
|
@@ -99,18 +84,34 @@ public class AVAudioWrapperErrorListener {
|
|
|
99
84
|
public func removeFrameListener(_ listener: KeyWordDetection.AVAudioWrapperFrameListener)
|
|
100
85
|
public func removeFrameListeners(_ listeners: [KeyWordDetection.AVAudioWrapperFrameListener])
|
|
101
86
|
public func clearFrameListeners()
|
|
102
|
-
public func
|
|
103
|
-
public func removeErrorListener(_ listener: KeyWordDetection.AVAudioWrapperErrorListener)
|
|
104
|
-
public func clearErrorListeners()
|
|
105
|
-
public func start(frameLength: Swift.UInt32, sampleRate: Swift.UInt32) throws
|
|
87
|
+
public func start(frameLength: Swift.UInt32, sampleRate: Swift.UInt32)
|
|
106
88
|
public func stop() throws
|
|
107
89
|
@objc deinit
|
|
108
90
|
}
|
|
109
|
-
public class
|
|
110
|
-
public
|
|
111
|
-
public
|
|
112
|
-
public
|
|
113
|
-
public
|
|
91
|
+
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objc public class GlobalVariables : ObjectiveC.NSObject {
|
|
92
|
+
@objc public static let shared: KeyWordDetection.GlobalVariables
|
|
93
|
+
@objc public var keyWordsDetectionInstance: KeyWordDetection.KeyWordsDetection?
|
|
94
|
+
@objc public var modelName: Swift.String?
|
|
95
|
+
@objc public var threshold: Swift.Float
|
|
96
|
+
@objc public var bufferCnt: Swift.Int
|
|
97
|
+
@objc deinit
|
|
98
|
+
}
|
|
99
|
+
@objc public protocol KeywordDetectionRNDelegate {
|
|
100
|
+
@objc func KeywordDetectionDidDetectEvent(_ eventInfo: [Swift.String : Any])
|
|
101
|
+
}
|
|
102
|
+
@objc public class KeyWordsDetection : ObjectiveC.NSObject {
|
|
103
|
+
@objc weak public var delegate: (any KeyWordDetection.KeywordDetectionRNDelegate)?
|
|
104
|
+
public var eventSink: (([Swift.String : Any]) -> Swift.Void)?
|
|
105
|
+
@objc convenience public init(modelPath: Swift.String, threshold: Swift.Float, bufferCnt: Swift.Int) throws
|
|
106
|
+
@objc public init(modelPath: Swift.String, threshold: Swift.Float, bufferCnt: Swift.Int, cancelEcho: Swift.Bool = false) throws
|
|
107
|
+
@objc public func replaceKeywordDetectionModel(modelPath: Swift.String, threshold: Swift.Float, bufferCnt: Swift.Int) throws
|
|
108
|
+
@objc public func getKeywordDetectionModel() -> Swift.String
|
|
109
|
+
@objc public func getRecordingWav() -> Swift.String
|
|
110
|
+
@objc public func setKeywordDetectionLicense(licenseKey: Swift.String) -> Swift.Bool
|
|
111
|
+
@objc public func setLicense(licenseKey: Swift.String) -> Swift.Bool
|
|
112
|
+
@objc public func callBack(frame: [Swift.Float])
|
|
113
|
+
@objc public func startListening() -> Swift.Bool
|
|
114
|
+
@objc public func stopListening()
|
|
114
115
|
@objc deinit
|
|
115
116
|
}
|
|
116
117
|
@_inheritsConvenienceInitializers @objc public class LicenseManager : ObjectiveC.NSObject {
|
|
Binary file
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// swift-module-flags: -target arm64-apple-ios13.4 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-bare-slash-regex -module-name KeyWordDetection
|
|
4
4
|
// swift-module-flags-ignorable: -no-verify-emitted-module-interface
|
|
5
5
|
import AVFoundation
|
|
6
|
+
import AudioToolbox
|
|
6
7
|
import CommonCrypto
|
|
7
8
|
import Foundation
|
|
8
9
|
@_exported import KeyWordDetection
|
|
@@ -13,63 +14,50 @@ import _SwiftConcurrencyShims
|
|
|
13
14
|
import os.log
|
|
14
15
|
import onnxruntime_objc
|
|
15
16
|
import os
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
@objc public var bufferCnt: Swift.Int
|
|
17
|
+
public class AVAudioWrapperBufferCE {
|
|
18
|
+
public init(size: Swift.Int)
|
|
19
|
+
public func write(samples: [Swift.Float])
|
|
20
|
+
public func read(count: Swift.Int) -> [Swift.Float]
|
|
21
|
+
public func availableSamples() -> Swift.Int
|
|
22
22
|
@objc deinit
|
|
23
23
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
@objc weak public var delegate: (any KeyWordDetection.KeywordDetectionRNDelegate)?
|
|
29
|
-
public var eventSink: (([Swift.String : Any]) -> Swift.Void)?
|
|
30
|
-
@objc public init(modelPath: Swift.String, threshold: Swift.Float, bufferCnt: Swift.Int) throws
|
|
31
|
-
@objc public func replaceKeywordDetectionModel(modelPath: Swift.String, threshold: Swift.Float, bufferCnt: Swift.Int) throws
|
|
32
|
-
@objc public func getKeywordDetectionModel() -> Swift.String
|
|
33
|
-
@objc public func getRecordingWav() -> Swift.String
|
|
34
|
-
@objc public func setKeywordDetectionLicense(licenseKey: Swift.String) -> Swift.Bool
|
|
35
|
-
@objc public func setLicense(licenseKey: Swift.String) -> Swift.Bool
|
|
36
|
-
@objc public func callBack(frame: [Swift.Int16])
|
|
37
|
-
@objc public func startListening() -> Swift.Bool
|
|
38
|
-
@objc public func stopListening()
|
|
24
|
+
public typealias AVAudioWrapperFrameCallback = ([Swift.Float]) -> Swift.Void
|
|
25
|
+
public class AVAudioWrapperFrameListener {
|
|
26
|
+
public init(_ callback: @escaping KeyWordDetection.AVAudioWrapperFrameCallback)
|
|
27
|
+
public func onFrame(_ frame: [Swift.Float])
|
|
39
28
|
@objc deinit
|
|
40
29
|
}
|
|
41
|
-
public class
|
|
42
|
-
public
|
|
43
|
-
public var
|
|
30
|
+
@_hasMissingDesignatedInitializers public class AVAudioWrapperCE {
|
|
31
|
+
public static let instance: KeyWordDetection.AVAudioWrapperCE
|
|
32
|
+
public var isRecording: Swift.Bool {
|
|
44
33
|
get
|
|
45
34
|
}
|
|
46
|
-
public var
|
|
35
|
+
public var frameLength: Swift.UInt32? {
|
|
47
36
|
get
|
|
48
37
|
}
|
|
38
|
+
public var sampleRate: Swift.UInt32? {
|
|
39
|
+
get
|
|
40
|
+
}
|
|
41
|
+
public var numFrameListeners: Swift.Int {
|
|
42
|
+
get
|
|
43
|
+
}
|
|
44
|
+
public static var hasRecordAudioPermission: Swift.Bool {
|
|
45
|
+
get
|
|
46
|
+
}
|
|
47
|
+
public static func requestRecordAudioPermission(_ response: @escaping (Swift.Bool) -> Swift.Void)
|
|
48
|
+
public func addFrameListener(_ listener: KeyWordDetection.AVAudioWrapperFrameListener)
|
|
49
|
+
public func removeFrameListener(_ listener: KeyWordDetection.AVAudioWrapperFrameListener)
|
|
50
|
+
public func clearFrameListeners()
|
|
51
|
+
public func setSessionOptions(sessionOptions: AVFAudio.AVAudioSession.CategoryOptions)
|
|
52
|
+
public func start(frameLength: Swift.UInt32, sampleRate: Swift.UInt32)
|
|
53
|
+
public func stop() throws
|
|
49
54
|
@objc deinit
|
|
50
55
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
override public init(_ message: Swift.String)
|
|
57
|
-
@objc deinit
|
|
58
|
-
}
|
|
59
|
-
@_inheritsConvenienceInitializers public class AVAudioWrapperRuntimeError : KeyWordDetection.AVAudioWrapperError {
|
|
60
|
-
override public init(_ message: Swift.String)
|
|
61
|
-
@objc deinit
|
|
62
|
-
}
|
|
63
|
-
public typealias AVAudioWrapperFrameCallback = ([Swift.Int16]) -> Swift.Void
|
|
64
|
-
public class AVAudioWrapperFrameListener {
|
|
65
|
-
public init(_ callback: @escaping KeyWordDetection.AVAudioWrapperFrameCallback)
|
|
66
|
-
public func onFrame(_ frame: [Swift.Int16])
|
|
67
|
-
@objc deinit
|
|
68
|
-
}
|
|
69
|
-
public typealias AVAudioWrapperErrorCallback = (KeyWordDetection.AVAudioWrapperError) -> Swift.Void
|
|
70
|
-
public class AVAudioWrapperErrorListener {
|
|
71
|
-
public init(_ callback: @escaping KeyWordDetection.AVAudioWrapperErrorCallback)
|
|
72
|
-
public func onError(_ error: KeyWordDetection.AVAudioWrapperError)
|
|
56
|
+
public class AVAudioWrapperBuffer {
|
|
57
|
+
public init(size: Swift.Int)
|
|
58
|
+
public func write(samples: [Swift.Float]) -> Swift.Int16
|
|
59
|
+
public func read(count: Swift.Int) -> [Swift.Float]
|
|
60
|
+
public func availableSamples() -> Swift.Int
|
|
73
61
|
@objc deinit
|
|
74
62
|
}
|
|
75
63
|
@_hasMissingDesignatedInitializers public class AVAudioWrapper {
|
|
@@ -87,9 +75,6 @@ public class AVAudioWrapperErrorListener {
|
|
|
87
75
|
get
|
|
88
76
|
}
|
|
89
77
|
public func setSessionOptions(sessionOptions: AVFAudio.AVAudioSession.CategoryOptions)
|
|
90
|
-
public var numErrorListeners: Swift.Int {
|
|
91
|
-
get
|
|
92
|
-
}
|
|
93
78
|
public static var hasRecordAudioPermission: Swift.Bool {
|
|
94
79
|
get
|
|
95
80
|
}
|
|
@@ -99,18 +84,34 @@ public class AVAudioWrapperErrorListener {
|
|
|
99
84
|
public func removeFrameListener(_ listener: KeyWordDetection.AVAudioWrapperFrameListener)
|
|
100
85
|
public func removeFrameListeners(_ listeners: [KeyWordDetection.AVAudioWrapperFrameListener])
|
|
101
86
|
public func clearFrameListeners()
|
|
102
|
-
public func
|
|
103
|
-
public func removeErrorListener(_ listener: KeyWordDetection.AVAudioWrapperErrorListener)
|
|
104
|
-
public func clearErrorListeners()
|
|
105
|
-
public func start(frameLength: Swift.UInt32, sampleRate: Swift.UInt32) throws
|
|
87
|
+
public func start(frameLength: Swift.UInt32, sampleRate: Swift.UInt32)
|
|
106
88
|
public func stop() throws
|
|
107
89
|
@objc deinit
|
|
108
90
|
}
|
|
109
|
-
public class
|
|
110
|
-
public
|
|
111
|
-
public
|
|
112
|
-
public
|
|
113
|
-
public
|
|
91
|
+
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objc public class GlobalVariables : ObjectiveC.NSObject {
|
|
92
|
+
@objc public static let shared: KeyWordDetection.GlobalVariables
|
|
93
|
+
@objc public var keyWordsDetectionInstance: KeyWordDetection.KeyWordsDetection?
|
|
94
|
+
@objc public var modelName: Swift.String?
|
|
95
|
+
@objc public var threshold: Swift.Float
|
|
96
|
+
@objc public var bufferCnt: Swift.Int
|
|
97
|
+
@objc deinit
|
|
98
|
+
}
|
|
99
|
+
@objc public protocol KeywordDetectionRNDelegate {
|
|
100
|
+
@objc func KeywordDetectionDidDetectEvent(_ eventInfo: [Swift.String : Any])
|
|
101
|
+
}
|
|
102
|
+
@objc public class KeyWordsDetection : ObjectiveC.NSObject {
|
|
103
|
+
@objc weak public var delegate: (any KeyWordDetection.KeywordDetectionRNDelegate)?
|
|
104
|
+
public var eventSink: (([Swift.String : Any]) -> Swift.Void)?
|
|
105
|
+
@objc convenience public init(modelPath: Swift.String, threshold: Swift.Float, bufferCnt: Swift.Int) throws
|
|
106
|
+
@objc public init(modelPath: Swift.String, threshold: Swift.Float, bufferCnt: Swift.Int, cancelEcho: Swift.Bool = false) throws
|
|
107
|
+
@objc public func replaceKeywordDetectionModel(modelPath: Swift.String, threshold: Swift.Float, bufferCnt: Swift.Int) throws
|
|
108
|
+
@objc public func getKeywordDetectionModel() -> Swift.String
|
|
109
|
+
@objc public func getRecordingWav() -> Swift.String
|
|
110
|
+
@objc public func setKeywordDetectionLicense(licenseKey: Swift.String) -> Swift.Bool
|
|
111
|
+
@objc public func setLicense(licenseKey: Swift.String) -> Swift.Bool
|
|
112
|
+
@objc public func callBack(frame: [Swift.Float])
|
|
113
|
+
@objc public func startListening() -> Swift.Bool
|
|
114
|
+
@objc public func stopListening()
|
|
114
115
|
@objc deinit
|
|
115
116
|
}
|
|
116
117
|
@_inheritsConvenienceInitializers @objc public class LicenseManager : ObjectiveC.NSObject {
|
|
@@ -323,7 +323,8 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GlobalVariab
|
|
|
323
323
|
SWIFT_CLASS("_TtC16KeyWordDetection17KeyWordsDetection")
|
|
324
324
|
@interface KeyWordsDetection : NSObject
|
|
325
325
|
@property (nonatomic, weak) id <KeywordDetectionRNDelegate> _Nullable delegate;
|
|
326
|
-
- (nullable instancetype)initWithModelPath:(NSString * _Nonnull)modelPath threshold:(float)threshold bufferCnt:(NSInteger)bufferCnt error:(NSError * _Nullable * _Nullable)error
|
|
326
|
+
- (nullable instancetype)initWithModelPath:(NSString * _Nonnull)modelPath threshold:(float)threshold bufferCnt:(NSInteger)bufferCnt error:(NSError * _Nullable * _Nullable)error;
|
|
327
|
+
- (nullable instancetype)initWithModelPath:(NSString * _Nonnull)modelPath threshold:(float)threshold bufferCnt:(NSInteger)bufferCnt cancelEcho:(BOOL)cancelEcho error:(NSError * _Nullable * _Nullable)error OBJC_DESIGNATED_INITIALIZER;
|
|
327
328
|
- (BOOL)replaceKeywordDetectionModelWithModelPath:(NSString * _Nonnull)modelPath threshold:(float)threshold bufferCnt:(NSInteger)bufferCnt error:(NSError * _Nullable * _Nullable)error;
|
|
328
329
|
- (NSString * _Nonnull)getKeywordDetectionModel SWIFT_WARN_UNUSED_RESULT;
|
|
329
330
|
- (NSString * _Nonnull)getRecordingWav SWIFT_WARN_UNUSED_RESULT;
|
|
@@ -681,7 +682,8 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) GlobalVariab
|
|
|
681
682
|
SWIFT_CLASS("_TtC16KeyWordDetection17KeyWordsDetection")
|
|
682
683
|
@interface KeyWordsDetection : NSObject
|
|
683
684
|
@property (nonatomic, weak) id <KeywordDetectionRNDelegate> _Nullable delegate;
|
|
684
|
-
- (nullable instancetype)initWithModelPath:(NSString * _Nonnull)modelPath threshold:(float)threshold bufferCnt:(NSInteger)bufferCnt error:(NSError * _Nullable * _Nullable)error
|
|
685
|
+
- (nullable instancetype)initWithModelPath:(NSString * _Nonnull)modelPath threshold:(float)threshold bufferCnt:(NSInteger)bufferCnt error:(NSError * _Nullable * _Nullable)error;
|
|
686
|
+
- (nullable instancetype)initWithModelPath:(NSString * _Nonnull)modelPath threshold:(float)threshold bufferCnt:(NSInteger)bufferCnt cancelEcho:(BOOL)cancelEcho error:(NSError * _Nullable * _Nullable)error OBJC_DESIGNATED_INITIALIZER;
|
|
685
687
|
- (BOOL)replaceKeywordDetectionModelWithModelPath:(NSString * _Nonnull)modelPath threshold:(float)threshold bufferCnt:(NSInteger)bufferCnt error:(NSError * _Nullable * _Nullable)error;
|
|
686
688
|
- (NSString * _Nonnull)getKeywordDetectionModel SWIFT_WARN_UNUSED_RESULT;
|
|
687
689
|
- (NSString * _Nonnull)getRecordingWav SWIFT_WARN_UNUSED_RESULT;
|
|
Binary file
|