react-native-wakeword 1.1.61 → 1.1.64
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/ios-arm64/KeyWordDetection.framework/KeyWordDetection +0 -0
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.abi.json +1105 -199
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.private.swiftinterface +15 -3
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios.swiftinterface +15 -3
- 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 +1105 -199
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +15 -3
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/arm64-apple-ios-simulator.swiftinterface +15 -3
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.abi.json +1105 -199
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +15 -3
- package/ios/KeyWordRNBridge/KeyWordDetection.xcframework/ios-arm64_x86_64-simulator/KeyWordDetection.framework/Modules/KeyWordDetection.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +15 -3
- 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 +24 -24
- package/package.json +1 -1
|
@@ -99,10 +99,14 @@ public struct SpeakerVerificationConfig : Swift.Codable {
|
|
|
99
99
|
public var frameSize: Swift.Int
|
|
100
100
|
public var tailSeconds: Swift.Float
|
|
101
101
|
public var maxTailSeconds: Swift.Float
|
|
102
|
+
public var subWindowSeconds: Swift.Float
|
|
103
|
+
public var meanComboEnabled: Swift.Bool
|
|
104
|
+
public var meanComboMaxK: Swift.Int
|
|
105
|
+
public var meanComboMaxTotal: Swift.Int
|
|
102
106
|
public var logLevel: KeyWordDetection.SVLogLevel
|
|
103
107
|
public init(from decoder: any Swift.Decoder) throws
|
|
104
108
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
105
|
-
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, logLevel: KeyWordDetection.SVLogLevel = .debug)
|
|
109
|
+
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)
|
|
106
110
|
}
|
|
107
111
|
public struct SpeakerEnrollment : Swift.Codable {
|
|
108
112
|
public let enrollmentId: Swift.String
|
|
@@ -110,10 +114,13 @@ public struct SpeakerEnrollment : Swift.Codable {
|
|
|
110
114
|
public let configSnapshot: KeyWordDetection.SpeakerVerificationConfig
|
|
111
115
|
public let enrolledEmbeddings: [[Swift.Float]]
|
|
112
116
|
public let meanEmbedding: [Swift.Float]
|
|
117
|
+
public let meanComboEmbeddings: [[Swift.Float]]
|
|
118
|
+
public let meanComboLabels: [Swift.String]
|
|
119
|
+
public init(enrollmentId: Swift.String, createdAtEpochMs: Swift.Int64, configSnapshot: KeyWordDetection.SpeakerVerificationConfig, enrolledEmbeddings: [[Swift.Float]], meanEmbedding: [Swift.Float], meanComboEmbeddings: [[Swift.Float]] = [], meanComboLabels: [Swift.String] = [])
|
|
120
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
113
121
|
public func serialize() throws -> Foundation.Data
|
|
114
122
|
public static func deserialize(_ data: Foundation.Data) throws -> KeyWordDetection.SpeakerEnrollment
|
|
115
123
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
116
|
-
public init(from decoder: any Swift.Decoder) throws
|
|
117
124
|
}
|
|
118
125
|
public struct SVPendingInfo {
|
|
119
126
|
public let bufferedSamples: Swift.Int
|
|
@@ -124,6 +131,10 @@ public struct SpeakerVerificationResult {
|
|
|
124
131
|
public let scoreBest: Swift.Float
|
|
125
132
|
public let scoreMean: Swift.Float
|
|
126
133
|
public let scoreWorst: Swift.Float
|
|
134
|
+
public let scoreBestRaw: Swift.Float
|
|
135
|
+
public let scoreBestMeancombo: Swift.Float
|
|
136
|
+
public let bestKind: Swift.String
|
|
137
|
+
public let bestId: Swift.String
|
|
127
138
|
public let isMatch: Swift.Bool
|
|
128
139
|
public let embeddingDim: Swift.Int
|
|
129
140
|
public let usedSeconds: Swift.Float
|
|
@@ -172,7 +183,7 @@ final public class SpeakerEnrollmentBuilder {
|
|
|
172
183
|
final public var targetEmbeddingCount: Swift.Int
|
|
173
184
|
public init(config: KeyWordDetection.SpeakerVerificationConfig, enrollmentId: Swift.String, logger: (any KeyWordDetection.SVLogger)? = nil) throws
|
|
174
185
|
final public func armForNextEmbedding(resetBuffer: Swift.Bool = true)
|
|
175
|
-
final public func debugState() -> (armed: Swift.Bool, buffered: Swift.Int, needed: Swift.Int, collected: Swift.Int)
|
|
186
|
+
final public func debugState() -> (armed: Swift.Bool, buffered: Swift.Int, needed: Swift.Int, collected: Swift.Int, windows: Swift.Int)
|
|
176
187
|
final public func disarm()
|
|
177
188
|
final public func reset()
|
|
178
189
|
final public func processEnrollmentFrame(_ frame: [Swift.Float]) throws
|
|
@@ -192,6 +203,7 @@ extension KeyWordDetection.SpeakerVerificationRNFacade {
|
|
|
192
203
|
extension KeyWordDetection.SpeakerEnrollmentBuilder {
|
|
193
204
|
final public func processEnrollmentFrameDidCollect(_ frame: [Swift.Float]) throws -> Swift.Bool
|
|
194
205
|
final public func collectedCount() -> Swift.Int
|
|
206
|
+
final public func collectedWindowCount() -> Swift.Int
|
|
195
207
|
}
|
|
196
208
|
public class AVAudioWrapperBuffer {
|
|
197
209
|
public init(size: Swift.Int)
|
|
@@ -99,10 +99,14 @@ public struct SpeakerVerificationConfig : Swift.Codable {
|
|
|
99
99
|
public var frameSize: Swift.Int
|
|
100
100
|
public var tailSeconds: Swift.Float
|
|
101
101
|
public var maxTailSeconds: Swift.Float
|
|
102
|
+
public var subWindowSeconds: Swift.Float
|
|
103
|
+
public var meanComboEnabled: Swift.Bool
|
|
104
|
+
public var meanComboMaxK: Swift.Int
|
|
105
|
+
public var meanComboMaxTotal: Swift.Int
|
|
102
106
|
public var logLevel: KeyWordDetection.SVLogLevel
|
|
103
107
|
public init(from decoder: any Swift.Decoder) throws
|
|
104
108
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
105
|
-
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, logLevel: KeyWordDetection.SVLogLevel = .debug)
|
|
109
|
+
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)
|
|
106
110
|
}
|
|
107
111
|
public struct SpeakerEnrollment : Swift.Codable {
|
|
108
112
|
public let enrollmentId: Swift.String
|
|
@@ -110,10 +114,13 @@ public struct SpeakerEnrollment : Swift.Codable {
|
|
|
110
114
|
public let configSnapshot: KeyWordDetection.SpeakerVerificationConfig
|
|
111
115
|
public let enrolledEmbeddings: [[Swift.Float]]
|
|
112
116
|
public let meanEmbedding: [Swift.Float]
|
|
117
|
+
public let meanComboEmbeddings: [[Swift.Float]]
|
|
118
|
+
public let meanComboLabels: [Swift.String]
|
|
119
|
+
public init(enrollmentId: Swift.String, createdAtEpochMs: Swift.Int64, configSnapshot: KeyWordDetection.SpeakerVerificationConfig, enrolledEmbeddings: [[Swift.Float]], meanEmbedding: [Swift.Float], meanComboEmbeddings: [[Swift.Float]] = [], meanComboLabels: [Swift.String] = [])
|
|
120
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
113
121
|
public func serialize() throws -> Foundation.Data
|
|
114
122
|
public static func deserialize(_ data: Foundation.Data) throws -> KeyWordDetection.SpeakerEnrollment
|
|
115
123
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
116
|
-
public init(from decoder: any Swift.Decoder) throws
|
|
117
124
|
}
|
|
118
125
|
public struct SVPendingInfo {
|
|
119
126
|
public let bufferedSamples: Swift.Int
|
|
@@ -124,6 +131,10 @@ public struct SpeakerVerificationResult {
|
|
|
124
131
|
public let scoreBest: Swift.Float
|
|
125
132
|
public let scoreMean: Swift.Float
|
|
126
133
|
public let scoreWorst: Swift.Float
|
|
134
|
+
public let scoreBestRaw: Swift.Float
|
|
135
|
+
public let scoreBestMeancombo: Swift.Float
|
|
136
|
+
public let bestKind: Swift.String
|
|
137
|
+
public let bestId: Swift.String
|
|
127
138
|
public let isMatch: Swift.Bool
|
|
128
139
|
public let embeddingDim: Swift.Int
|
|
129
140
|
public let usedSeconds: Swift.Float
|
|
@@ -172,7 +183,7 @@ final public class SpeakerEnrollmentBuilder {
|
|
|
172
183
|
final public var targetEmbeddingCount: Swift.Int
|
|
173
184
|
public init(config: KeyWordDetection.SpeakerVerificationConfig, enrollmentId: Swift.String, logger: (any KeyWordDetection.SVLogger)? = nil) throws
|
|
174
185
|
final public func armForNextEmbedding(resetBuffer: Swift.Bool = true)
|
|
175
|
-
final public func debugState() -> (armed: Swift.Bool, buffered: Swift.Int, needed: Swift.Int, collected: Swift.Int)
|
|
186
|
+
final public func debugState() -> (armed: Swift.Bool, buffered: Swift.Int, needed: Swift.Int, collected: Swift.Int, windows: Swift.Int)
|
|
176
187
|
final public func disarm()
|
|
177
188
|
final public func reset()
|
|
178
189
|
final public func processEnrollmentFrame(_ frame: [Swift.Float]) throws
|
|
@@ -192,6 +203,7 @@ extension KeyWordDetection.SpeakerVerificationRNFacade {
|
|
|
192
203
|
extension KeyWordDetection.SpeakerEnrollmentBuilder {
|
|
193
204
|
final public func processEnrollmentFrameDidCollect(_ frame: [Swift.Float]) throws -> Swift.Bool
|
|
194
205
|
final public func collectedCount() -> Swift.Int
|
|
206
|
+
final public func collectedWindowCount() -> Swift.Int
|
|
195
207
|
}
|
|
196
208
|
public class AVAudioWrapperBuffer {
|
|
197
209
|
public init(size: Swift.Int)
|