react-native-wakeword 1.1.62 → 1.1.65
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/ios/KeyWordRNBridge/KeyWordDetection.xcframework/Info.plist +5 -5
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Headers/KeyWordDetection-Swift.h +2 -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 +674 -240
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.private.swiftinterface +16 -2
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.swiftinterface +16 -2
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Headers/KeyWordDetection-Swift.h +4 -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 +674 -240
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +16 -2
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.swiftinterface +16 -2
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.abi.json +674 -240
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +16 -2
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +16 -2
- 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-1 +0 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/_CodeSignature/CodeResources +27 -27
- package/ios/KeyWordRNBridge/KeyWordRNBridge.m +32 -1
- package/package.json +1 -1
- package/wakewords/KeyWordRNBridge.d.ts +2 -0
- package/wakewords/KeyWordRNBridge.js +8 -0
- package/wakewords/index.d.ts +1 -1
- package/wakewords/index.js +4 -0
|
@@ -52,8 +52,13 @@ public class AVAudioWrapperFrameListener {
|
|
|
52
52
|
public func removeFrameListener(_ listener: KeyWordDetection.AVAudioWrapperFrameListener)
|
|
53
53
|
public func clearFrameListeners()
|
|
54
54
|
public func setSessionOptions(sessionOptions: AVFAudio.AVAudioSession.CategoryOptions)
|
|
55
|
+
public var isSessionPaused: Swift.Bool {
|
|
56
|
+
get
|
|
57
|
+
}
|
|
55
58
|
public func start(frameLength: Swift.UInt32, sampleRate: Swift.UInt32, noExternalActivation: Swift.Bool = true, duckOthers: Swift.Bool = false, mixWithOthers: Swift.Bool = true, defaultToSpeaker: Swift.Bool = true)
|
|
56
59
|
public func stop() throws
|
|
60
|
+
public func pauseSession() -> Swift.Bool
|
|
61
|
+
public func resumeSession() -> Swift.Bool
|
|
57
62
|
@objc deinit
|
|
58
63
|
}
|
|
59
64
|
@_hasMissingDesignatedInitializers final public class AppStateTracker {
|
|
@@ -99,13 +104,14 @@ public struct SpeakerVerificationConfig : Swift.Codable {
|
|
|
99
104
|
public var frameSize: Swift.Int
|
|
100
105
|
public var tailSeconds: Swift.Float
|
|
101
106
|
public var maxTailSeconds: Swift.Float
|
|
107
|
+
public var subWindowSeconds: Swift.Float
|
|
102
108
|
public var meanComboEnabled: Swift.Bool
|
|
103
109
|
public var meanComboMaxK: Swift.Int
|
|
104
110
|
public var meanComboMaxTotal: Swift.Int
|
|
105
111
|
public var logLevel: KeyWordDetection.SVLogLevel
|
|
106
112
|
public init(from decoder: any Swift.Decoder) throws
|
|
107
113
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
108
|
-
public init(modelPath: Swift.String, sampleRate: Swift.Int = 16_000, numMelBins: Swift.Int = 80, cmn: Swift.Bool = true, frameLengthMs: Swift.Float = 25.0, frameShiftMs: Swift.Float = 10.0, nFFT: Swift.Int = 512, decisionThreshold: Swift.Float = 0.35, expectedLayoutBDT: Swift.Bool = false, frameSize: Swift.Int = 1280, tailSeconds: Swift.Float = 2.0, maxTailSeconds: Swift.Float = 3.0, meanComboEnabled: Swift.Bool = true, meanComboMaxK: Swift.Int = 3, meanComboMaxTotal: Swift.Int = 2000, logLevel: KeyWordDetection.SVLogLevel = .debug)
|
|
114
|
+
public init(modelPath: Swift.String, sampleRate: Swift.Int = 16_000, numMelBins: Swift.Int = 80, cmn: Swift.Bool = true, frameLengthMs: Swift.Float = 25.0, frameShiftMs: Swift.Float = 10.0, nFFT: Swift.Int = 512, decisionThreshold: Swift.Float = 0.35, expectedLayoutBDT: Swift.Bool = false, frameSize: Swift.Int = 1280, tailSeconds: Swift.Float = 2.0, maxTailSeconds: Swift.Float = 3.0, subWindowSeconds: Swift.Float = 0.5, meanComboEnabled: Swift.Bool = true, meanComboMaxK: Swift.Int = 3, meanComboMaxTotal: Swift.Int = 2000, logLevel: KeyWordDetection.SVLogLevel = .debug)
|
|
109
115
|
}
|
|
110
116
|
public struct SpeakerEnrollment : Swift.Codable {
|
|
111
117
|
public let enrollmentId: Swift.String
|
|
@@ -182,7 +188,7 @@ final public class SpeakerEnrollmentBuilder {
|
|
|
182
188
|
final public var targetEmbeddingCount: Swift.Int
|
|
183
189
|
public init(config: KeyWordDetection.SpeakerVerificationConfig, enrollmentId: Swift.String, logger: (any KeyWordDetection.SVLogger)? = nil) throws
|
|
184
190
|
final public func armForNextEmbedding(resetBuffer: Swift.Bool = true)
|
|
185
|
-
final public func debugState() -> (armed: Swift.Bool, buffered: Swift.Int, needed: Swift.Int, collected: Swift.Int)
|
|
191
|
+
final public func debugState() -> (armed: Swift.Bool, buffered: Swift.Int, needed: Swift.Int, collected: Swift.Int, windows: Swift.Int)
|
|
186
192
|
final public func disarm()
|
|
187
193
|
final public func reset()
|
|
188
194
|
final public func processEnrollmentFrame(_ frame: [Swift.Float]) throws
|
|
@@ -202,6 +208,7 @@ extension KeyWordDetection.SpeakerVerificationRNFacade {
|
|
|
202
208
|
extension KeyWordDetection.SpeakerEnrollmentBuilder {
|
|
203
209
|
final public func processEnrollmentFrameDidCollect(_ frame: [Swift.Float]) throws -> Swift.Bool
|
|
204
210
|
final public func collectedCount() -> Swift.Int
|
|
211
|
+
final public func collectedWindowCount() -> Swift.Int
|
|
205
212
|
}
|
|
206
213
|
public class AVAudioWrapperBuffer {
|
|
207
214
|
public init(size: Swift.Int)
|
|
@@ -216,6 +223,9 @@ public class AVAudioWrapper {
|
|
|
216
223
|
public var isRecording: Swift.Bool {
|
|
217
224
|
get
|
|
218
225
|
}
|
|
226
|
+
public var isSessionPaused: Swift.Bool {
|
|
227
|
+
get
|
|
228
|
+
}
|
|
219
229
|
public var frameLength: Swift.UInt32? {
|
|
220
230
|
get
|
|
221
231
|
}
|
|
@@ -241,6 +251,8 @@ public class AVAudioWrapper {
|
|
|
241
251
|
public func start(frameLength: Swift.UInt32, sampleRate: Swift.UInt32, noExternalActivation: Swift.Bool = true, duckOthers: Swift.Bool = false, mixWithOthers: Swift.Bool = true, defaultToSpeaker: Swift.Bool = true)
|
|
242
252
|
public func start_org(frameLength: Swift.UInt32, sampleRate: Swift.UInt32, noExternalActivation: Swift.Bool = true, duckOthers: Swift.Bool = false, mixWithOthers: Swift.Bool = true, defaultToSpeaker: Swift.Bool = true)
|
|
243
253
|
public func stop() throws
|
|
254
|
+
public func pauseSession() -> Swift.Bool
|
|
255
|
+
public func resumeSession() -> Swift.Bool
|
|
244
256
|
}
|
|
245
257
|
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objc public class GlobalVariables : ObjectiveC.NSObject {
|
|
246
258
|
@objc public static let shared: KeyWordDetection.GlobalVariables
|
|
@@ -268,6 +280,8 @@ public class AVAudioWrapper {
|
|
|
268
280
|
@objc public func callBack(frame: [Swift.Float])
|
|
269
281
|
@objc public func startListening(noExternalActivation: Swift.Bool = true, duckOthers: Swift.Bool = false, mixWithOthers: Swift.Bool = true, defaultToSpeaker: Swift.Bool = true) -> Swift.Bool
|
|
270
282
|
@objc public func stopListening()
|
|
283
|
+
@objc public func pauseDetection(stopMic: Swift.Bool = false)
|
|
284
|
+
@objc public func unPauseDetection()
|
|
271
285
|
@objc public func getVoiceProps() -> [Swift.String : Any]
|
|
272
286
|
@objc public func startSilentListening() -> Swift.Bool
|
|
273
287
|
@objc public func startVADListening() -> Swift.Bool
|
|
@@ -52,8 +52,13 @@ public class AVAudioWrapperFrameListener {
|
|
|
52
52
|
public func removeFrameListener(_ listener: KeyWordDetection.AVAudioWrapperFrameListener)
|
|
53
53
|
public func clearFrameListeners()
|
|
54
54
|
public func setSessionOptions(sessionOptions: AVFAudio.AVAudioSession.CategoryOptions)
|
|
55
|
+
public var isSessionPaused: Swift.Bool {
|
|
56
|
+
get
|
|
57
|
+
}
|
|
55
58
|
public func start(frameLength: Swift.UInt32, sampleRate: Swift.UInt32, noExternalActivation: Swift.Bool = true, duckOthers: Swift.Bool = false, mixWithOthers: Swift.Bool = true, defaultToSpeaker: Swift.Bool = true)
|
|
56
59
|
public func stop() throws
|
|
60
|
+
public func pauseSession() -> Swift.Bool
|
|
61
|
+
public func resumeSession() -> Swift.Bool
|
|
57
62
|
@objc deinit
|
|
58
63
|
}
|
|
59
64
|
@_hasMissingDesignatedInitializers final public class AppStateTracker {
|
|
@@ -99,13 +104,14 @@ public struct SpeakerVerificationConfig : Swift.Codable {
|
|
|
99
104
|
public var frameSize: Swift.Int
|
|
100
105
|
public var tailSeconds: Swift.Float
|
|
101
106
|
public var maxTailSeconds: Swift.Float
|
|
107
|
+
public var subWindowSeconds: Swift.Float
|
|
102
108
|
public var meanComboEnabled: Swift.Bool
|
|
103
109
|
public var meanComboMaxK: Swift.Int
|
|
104
110
|
public var meanComboMaxTotal: Swift.Int
|
|
105
111
|
public var logLevel: KeyWordDetection.SVLogLevel
|
|
106
112
|
public init(from decoder: any Swift.Decoder) throws
|
|
107
113
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
108
|
-
public init(modelPath: Swift.String, sampleRate: Swift.Int = 16_000, numMelBins: Swift.Int = 80, cmn: Swift.Bool = true, frameLengthMs: Swift.Float = 25.0, frameShiftMs: Swift.Float = 10.0, nFFT: Swift.Int = 512, decisionThreshold: Swift.Float = 0.35, expectedLayoutBDT: Swift.Bool = false, frameSize: Swift.Int = 1280, tailSeconds: Swift.Float = 2.0, maxTailSeconds: Swift.Float = 3.0, meanComboEnabled: Swift.Bool = true, meanComboMaxK: Swift.Int = 3, meanComboMaxTotal: Swift.Int = 2000, logLevel: KeyWordDetection.SVLogLevel = .debug)
|
|
114
|
+
public init(modelPath: Swift.String, sampleRate: Swift.Int = 16_000, numMelBins: Swift.Int = 80, cmn: Swift.Bool = true, frameLengthMs: Swift.Float = 25.0, frameShiftMs: Swift.Float = 10.0, nFFT: Swift.Int = 512, decisionThreshold: Swift.Float = 0.35, expectedLayoutBDT: Swift.Bool = false, frameSize: Swift.Int = 1280, tailSeconds: Swift.Float = 2.0, maxTailSeconds: Swift.Float = 3.0, subWindowSeconds: Swift.Float = 0.5, meanComboEnabled: Swift.Bool = true, meanComboMaxK: Swift.Int = 3, meanComboMaxTotal: Swift.Int = 2000, logLevel: KeyWordDetection.SVLogLevel = .debug)
|
|
109
115
|
}
|
|
110
116
|
public struct SpeakerEnrollment : Swift.Codable {
|
|
111
117
|
public let enrollmentId: Swift.String
|
|
@@ -182,7 +188,7 @@ final public class SpeakerEnrollmentBuilder {
|
|
|
182
188
|
final public var targetEmbeddingCount: Swift.Int
|
|
183
189
|
public init(config: KeyWordDetection.SpeakerVerificationConfig, enrollmentId: Swift.String, logger: (any KeyWordDetection.SVLogger)? = nil) throws
|
|
184
190
|
final public func armForNextEmbedding(resetBuffer: Swift.Bool = true)
|
|
185
|
-
final public func debugState() -> (armed: Swift.Bool, buffered: Swift.Int, needed: Swift.Int, collected: Swift.Int)
|
|
191
|
+
final public func debugState() -> (armed: Swift.Bool, buffered: Swift.Int, needed: Swift.Int, collected: Swift.Int, windows: Swift.Int)
|
|
186
192
|
final public func disarm()
|
|
187
193
|
final public func reset()
|
|
188
194
|
final public func processEnrollmentFrame(_ frame: [Swift.Float]) throws
|
|
@@ -202,6 +208,7 @@ extension KeyWordDetection.SpeakerVerificationRNFacade {
|
|
|
202
208
|
extension KeyWordDetection.SpeakerEnrollmentBuilder {
|
|
203
209
|
final public func processEnrollmentFrameDidCollect(_ frame: [Swift.Float]) throws -> Swift.Bool
|
|
204
210
|
final public func collectedCount() -> Swift.Int
|
|
211
|
+
final public func collectedWindowCount() -> Swift.Int
|
|
205
212
|
}
|
|
206
213
|
public class AVAudioWrapperBuffer {
|
|
207
214
|
public init(size: Swift.Int)
|
|
@@ -216,6 +223,9 @@ public class AVAudioWrapper {
|
|
|
216
223
|
public var isRecording: Swift.Bool {
|
|
217
224
|
get
|
|
218
225
|
}
|
|
226
|
+
public var isSessionPaused: Swift.Bool {
|
|
227
|
+
get
|
|
228
|
+
}
|
|
219
229
|
public var frameLength: Swift.UInt32? {
|
|
220
230
|
get
|
|
221
231
|
}
|
|
@@ -241,6 +251,8 @@ public class AVAudioWrapper {
|
|
|
241
251
|
public func start(frameLength: Swift.UInt32, sampleRate: Swift.UInt32, noExternalActivation: Swift.Bool = true, duckOthers: Swift.Bool = false, mixWithOthers: Swift.Bool = true, defaultToSpeaker: Swift.Bool = true)
|
|
242
252
|
public func start_org(frameLength: Swift.UInt32, sampleRate: Swift.UInt32, noExternalActivation: Swift.Bool = true, duckOthers: Swift.Bool = false, mixWithOthers: Swift.Bool = true, defaultToSpeaker: Swift.Bool = true)
|
|
243
253
|
public func stop() throws
|
|
254
|
+
public func pauseSession() -> Swift.Bool
|
|
255
|
+
public func resumeSession() -> Swift.Bool
|
|
244
256
|
}
|
|
245
257
|
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers @objc public class GlobalVariables : ObjectiveC.NSObject {
|
|
246
258
|
@objc public static let shared: KeyWordDetection.GlobalVariables
|
|
@@ -268,6 +280,8 @@ public class AVAudioWrapper {
|
|
|
268
280
|
@objc public func callBack(frame: [Swift.Float])
|
|
269
281
|
@objc public func startListening(noExternalActivation: Swift.Bool = true, duckOthers: Swift.Bool = false, mixWithOthers: Swift.Bool = true, defaultToSpeaker: Swift.Bool = true) -> Swift.Bool
|
|
270
282
|
@objc public func stopListening()
|
|
283
|
+
@objc public func pauseDetection(stopMic: Swift.Bool = false)
|
|
284
|
+
@objc public func unPauseDetection()
|
|
271
285
|
@objc public func getVoiceProps() -> [Swift.String : Any]
|
|
272
286
|
@objc public func startSilentListening() -> Swift.Bool
|
|
273
287
|
@objc public func startVADListening() -> Swift.Bool
|
|
@@ -352,6 +352,8 @@ SWIFT_CLASS("_TtC16KeyWordDetection17KeyWordsDetection")
|
|
|
352
352
|
- (void)callBackWithFrame:(NSArray<NSNumber *> * _Nonnull)frame;
|
|
353
353
|
- (BOOL)startListeningWithNoExternalActivation:(BOOL)noExternalActivation duckOthers:(BOOL)duckOthers mixWithOthers:(BOOL)mixWithOthers defaultToSpeaker:(BOOL)defaultToSpeaker SWIFT_WARN_UNUSED_RESULT;
|
|
354
354
|
- (void)stopListening;
|
|
355
|
+
- (void)pauseDetectionWithStopMic:(BOOL)stopMic;
|
|
356
|
+
- (void)unPauseDetection;
|
|
355
357
|
- (NSDictionary<NSString *, id> * _Nonnull)getVoiceProps SWIFT_WARN_UNUSED_RESULT;
|
|
356
358
|
- (BOOL)startSilentListening SWIFT_WARN_UNUSED_RESULT;
|
|
357
359
|
- (BOOL)startVADListening SWIFT_WARN_UNUSED_RESULT;
|
|
@@ -790,6 +792,8 @@ SWIFT_CLASS("_TtC16KeyWordDetection17KeyWordsDetection")
|
|
|
790
792
|
- (void)callBackWithFrame:(NSArray<NSNumber *> * _Nonnull)frame;
|
|
791
793
|
- (BOOL)startListeningWithNoExternalActivation:(BOOL)noExternalActivation duckOthers:(BOOL)duckOthers mixWithOthers:(BOOL)mixWithOthers defaultToSpeaker:(BOOL)defaultToSpeaker SWIFT_WARN_UNUSED_RESULT;
|
|
792
794
|
- (void)stopListening;
|
|
795
|
+
- (void)pauseDetectionWithStopMic:(BOOL)stopMic;
|
|
796
|
+
- (void)unPauseDetection;
|
|
793
797
|
- (NSDictionary<NSString *, id> * _Nonnull)getVoiceProps SWIFT_WARN_UNUSED_RESULT;
|
|
794
798
|
- (BOOL)startSilentListening SWIFT_WARN_UNUSED_RESULT;
|
|
795
799
|
- (BOOL)startVADListening SWIFT_WARN_UNUSED_RESULT;
|