react-native-davoice-tts 1.0.351 → 1.0.352
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/TTSRNBridge.podspec +16 -6
- package/android/libs/com/davoice/tts/1.0.0/tts-1.0.0.aar +0 -0
- package/android/libs/com/davoice/tts/1.0.0/tts-1.0.0.aar.md5 +1 -1
- package/android/libs/com/davoice/tts/1.0.0/tts-1.0.0.aar.sha1 +1 -1
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/DavoiceTTS +0 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.abi.json +9734 -9727
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.private.swiftinterface +105 -105
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.swiftinterface +105 -105
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/DavoiceTTS +0 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.abi.json +9399 -9392
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +39 -39
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.swiftinterface +39 -39
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.abi.json +9399 -9392
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +39 -39
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +39 -39
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/_CodeSignature/CodeDirectory +0 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/_CodeSignature/CodeRequirements-1 +0 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/_CodeSignature/CodeResources +24 -24
- package/ios/TTSRNBridge/libphonemes.xcframework/Info.plist +48 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64/Headers/libphonemes.a +0 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64/Headers/libucd.a +0 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64/Headers/module.modulemap +5 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64/Headers/phonemes.h +41 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64/Headers/phonemes.podspec +15 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64/Headers/phonemes_dir/en_dict +0 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64/Headers/phonemes_dir/intonations +0 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64/Headers/phonemes_dir/lang/gmw/en-US +15 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64/Headers/phonemes_dir/phondata +0 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64/Headers/phonemes_dir/phonindex +0 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64/Headers/phonemes_dir/phontab +0 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64/Headers/ucd.h +1085 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64/libphonemes.a +0 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64_x86_64-simulator/Headers/libphonemes.a +0 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64_x86_64-simulator/Headers/libucd.a +0 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64_x86_64-simulator/Headers/module.modulemap +5 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes.h +41 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes.podspec +15 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes_dir/en_dict +0 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes_dir/intonations +0 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes_dir/lang/gmw/en-US +15 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes_dir/phondata +0 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes_dir/phonindex +0 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes_dir/phontab +0 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64_x86_64-simulator/Headers/ucd.h +1085 -0
- package/ios/TTSRNBridge/libphonemes.xcframework/ios-arm64_x86_64-simulator/libphonemes.a +0 -0
- package/ios/TTSRNBridge/libucd.xcframework/Info.plist +48 -0
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64/Headers/libphonemes.a +0 -0
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64/Headers/libucd.a +0 -0
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64/Headers/module.modulemap +5 -0
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64/Headers/phonemes.h +41 -0
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64/Headers/phonemes.podspec +15 -0
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64/Headers/phonemes_dir/en_dict +0 -0
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64/Headers/phonemes_dir/intonations +0 -0
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64/Headers/phonemes_dir/lang/gmw/en-US +15 -0
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64/Headers/phonemes_dir/phondata +0 -0
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64/Headers/phonemes_dir/phonindex +0 -0
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64/Headers/phonemes_dir/phontab +0 -0
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64/Headers/ucd.h +1085 -0
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64/libucd.a +0 -0
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64_x86_64-simulator/Headers/libphonemes.a +0 -0
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64_x86_64-simulator/Headers/libucd.a +0 -0
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64_x86_64-simulator/Headers/module.modulemap +5 -0
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes.h +41 -0
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes.podspec +15 -0
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes_dir/en_dict +0 -0
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes_dir/intonations +0 -0
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes_dir/lang/gmw/en-US +15 -0
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes_dir/phondata +0 -0
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes_dir/phonindex +0 -0
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64_x86_64-simulator/Headers/phonemes_dir/phontab +0 -0
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64_x86_64-simulator/Headers/ucd.h +1085 -0
- package/ios/TTSRNBridge/libucd.xcframework/ios-arm64_x86_64-simulator/libucd.a +0 -0
- package/package.json +1 -1
|
@@ -17,108 +17,6 @@ import _SwiftConcurrencyShims
|
|
|
17
17
|
import onnxruntime_objc
|
|
18
18
|
import phonemes
|
|
19
19
|
import ObjectiveC.runtime
|
|
20
|
-
public enum SVLogLevel : Swift.Int, Swift.Codable {
|
|
21
|
-
case off, error, warn, info, debug, trace
|
|
22
|
-
public init?(rawValue: Swift.Int)
|
|
23
|
-
public typealias RawValue = Swift.Int
|
|
24
|
-
public var rawValue: Swift.Int {
|
|
25
|
-
get
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
public protocol SVLogger {
|
|
29
|
-
func log(_ level: DavoiceTTS.SVLogLevel, _ tag: Swift.String, _ msg: Swift.String)
|
|
30
|
-
}
|
|
31
|
-
final public class SVDefaultLogger : DavoiceTTS.SVLogger {
|
|
32
|
-
final public var level: DavoiceTTS.SVLogLevel
|
|
33
|
-
public init(level: DavoiceTTS.SVLogLevel = .trace)
|
|
34
|
-
final public func log(_ level: DavoiceTTS.SVLogLevel, _ tag: Swift.String, _ msg: Swift.String)
|
|
35
|
-
@objc deinit
|
|
36
|
-
}
|
|
37
|
-
public struct SpeakerVerificationConfig : Swift.Codable {
|
|
38
|
-
public var modelPath: Swift.String
|
|
39
|
-
public var sampleRate: Swift.Int
|
|
40
|
-
public var numMelBins: Swift.Int
|
|
41
|
-
public var cmn: Swift.Bool
|
|
42
|
-
public var frameLengthMs: Swift.Float
|
|
43
|
-
public var frameShiftMs: Swift.Float
|
|
44
|
-
public var nFFT: Swift.Int
|
|
45
|
-
public var decisionThreshold: Swift.Float
|
|
46
|
-
public var expectedLayoutBDT: Swift.Bool
|
|
47
|
-
public var frameSize: Swift.Int
|
|
48
|
-
public var tailSeconds: Swift.Float
|
|
49
|
-
public var maxTailSeconds: Swift.Float
|
|
50
|
-
public var meanComboEnabled: Swift.Bool
|
|
51
|
-
public var meanComboMaxK: Swift.Int
|
|
52
|
-
public var meanComboMaxTotal: Swift.Int
|
|
53
|
-
public var logLevel: DavoiceTTS.SVLogLevel
|
|
54
|
-
public init(from decoder: any Swift.Decoder) throws
|
|
55
|
-
public func encode(to encoder: any Swift.Encoder) throws
|
|
56
|
-
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: DavoiceTTS.SVLogLevel = .debug)
|
|
57
|
-
}
|
|
58
|
-
public struct SpeakerEnrollment : Swift.Codable {
|
|
59
|
-
public let enrollmentId: Swift.String
|
|
60
|
-
public let createdAtEpochMs: Swift.Int64
|
|
61
|
-
public let configSnapshot: DavoiceTTS.SpeakerVerificationConfig
|
|
62
|
-
public let enrolledEmbeddings: [[Swift.Float]]
|
|
63
|
-
public let meanEmbedding: [Swift.Float]
|
|
64
|
-
public let meanComboEmbeddings: [[Swift.Float]]
|
|
65
|
-
public let meanComboLabels: [Swift.String]
|
|
66
|
-
public init(enrollmentId: Swift.String, createdAtEpochMs: Swift.Int64, configSnapshot: DavoiceTTS.SpeakerVerificationConfig, enrolledEmbeddings: [[Swift.Float]], meanEmbedding: [Swift.Float], meanComboEmbeddings: [[Swift.Float]] = [], meanComboLabels: [Swift.String] = [])
|
|
67
|
-
public init(from decoder: any Swift.Decoder) throws
|
|
68
|
-
public func serialize() throws -> Foundation.Data
|
|
69
|
-
public static func deserialize(_ data: Foundation.Data) throws -> DavoiceTTS.SpeakerEnrollment
|
|
70
|
-
public func encode(to encoder: any Swift.Encoder) throws
|
|
71
|
-
}
|
|
72
|
-
public struct SVPendingInfo {
|
|
73
|
-
public let bufferedSamples: Swift.Int
|
|
74
|
-
public let bufferedSeconds: Swift.Float
|
|
75
|
-
public let neededSeconds: Swift.Float
|
|
76
|
-
}
|
|
77
|
-
public struct SpeakerVerificationResult {
|
|
78
|
-
public let scoreBest: Swift.Float
|
|
79
|
-
public let scoreMean: Swift.Float
|
|
80
|
-
public let scoreWorst: Swift.Float
|
|
81
|
-
public let scoreBestRaw: Swift.Float
|
|
82
|
-
public let scoreBestMeancombo: Swift.Float
|
|
83
|
-
public let bestKind: Swift.String
|
|
84
|
-
public let bestId: Swift.String
|
|
85
|
-
public let isMatch: Swift.Bool
|
|
86
|
-
public let embeddingDim: Swift.Int
|
|
87
|
-
public let usedSeconds: Swift.Float
|
|
88
|
-
public let ortRunMs: Swift.Double
|
|
89
|
-
public let featureMs: Swift.Double
|
|
90
|
-
public let totalMs: Swift.Double
|
|
91
|
-
}
|
|
92
|
-
public enum SpeakerVerificationOutput {
|
|
93
|
-
case pending(DavoiceTTS.SVPendingInfo)
|
|
94
|
-
case result(DavoiceTTS.SpeakerVerificationResult)
|
|
95
|
-
}
|
|
96
|
-
public enum SpeakerVerificationError : Swift.Error, Swift.CustomStringConvertible {
|
|
97
|
-
case invalidFrameSize(expected: Swift.Int, got: Swift.Int)
|
|
98
|
-
case enrollmentMissing
|
|
99
|
-
case emptyAudio
|
|
100
|
-
case onnx(Swift.String)
|
|
101
|
-
case feature(Swift.String)
|
|
102
|
-
public var description: Swift.String {
|
|
103
|
-
get
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
@objc @objcMembers final public class SpeakerVerificationEngine : ObjectiveC.NSObject {
|
|
107
|
-
final public let config: DavoiceTTS.SpeakerVerificationConfig
|
|
108
|
-
final public let logger: any DavoiceTTS.SVLogger
|
|
109
|
-
public init(config: DavoiceTTS.SpeakerVerificationConfig, logger: (any DavoiceTTS.SVLogger)? = nil) throws
|
|
110
|
-
final public func setEnrollment(_ enrollment: DavoiceTTS.SpeakerEnrollment?)
|
|
111
|
-
@objc final public func resetStreamingState()
|
|
112
|
-
final public func processFrame(frame: [Swift.Float]) throws -> DavoiceTTS.SpeakerVerificationOutput
|
|
113
|
-
final public func verifyWavFileStreaming(path: Swift.String, resetState: Swift.Bool = true) throws -> DavoiceTTS.SpeakerVerificationResult
|
|
114
|
-
@objc deinit
|
|
115
|
-
}
|
|
116
|
-
@_inheritsConvenienceInitializers @objc(DavoiceSpeakerVerificationRNFacade) final public class SpeakerVerificationRNFacade : ObjectiveC.NSObject {
|
|
117
|
-
@objc(createEngineWithModelPath:enrollmentJsonPath:options:error:) public static func createEngine(modelPath: Swift.String, enrollmentJsonPath: Swift.String, options: [Swift.String : Any], error outError: Foundation.NSErrorPointer) -> Any?
|
|
118
|
-
@objc(verifyWavWithEngine:wavPath:reset:error:) public static func verifyWav(engine: Any, wavPath: Swift.String, reset: Swift.Bool, error outError: Foundation.NSErrorPointer) -> [Swift.String : Any]?
|
|
119
|
-
@objc override dynamic public init()
|
|
120
|
-
@objc deinit
|
|
121
|
-
}
|
|
122
20
|
@_inheritsConvenienceInitializers @objc final public class LicenseManager : ObjectiveC.NSObject {
|
|
123
21
|
@objc public static func isLicenseValid(licenseKey: Swift.String) -> Swift.Bool
|
|
124
22
|
@objc override dynamic public init()
|
|
@@ -228,9 +126,111 @@ public enum AudioPlaybackHook {
|
|
|
228
126
|
@objc final public func playWav(_ url: Foundation.URL, markAsLastUtterance: Swift.Bool = true)
|
|
229
127
|
@objc final public func playBuffer(_ buffer: AVFAudio.AVAudioPCMBuffer, markAsLastUtterance: Swift.Bool = true)
|
|
230
128
|
}
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
129
|
+
public enum SVLogLevel : Swift.Int, Swift.Codable {
|
|
130
|
+
case off, error, warn, info, debug, trace
|
|
131
|
+
public init?(rawValue: Swift.Int)
|
|
132
|
+
public typealias RawValue = Swift.Int
|
|
133
|
+
public var rawValue: Swift.Int {
|
|
134
|
+
get
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
public protocol SVLogger {
|
|
138
|
+
func log(_ level: DavoiceTTS.SVLogLevel, _ tag: Swift.String, _ msg: Swift.String)
|
|
139
|
+
}
|
|
140
|
+
final public class SVDefaultLogger : DavoiceTTS.SVLogger {
|
|
141
|
+
final public var level: DavoiceTTS.SVLogLevel
|
|
142
|
+
public init(level: DavoiceTTS.SVLogLevel = .trace)
|
|
143
|
+
final public func log(_ level: DavoiceTTS.SVLogLevel, _ tag: Swift.String, _ msg: Swift.String)
|
|
144
|
+
@objc deinit
|
|
145
|
+
}
|
|
146
|
+
public struct SpeakerVerificationConfig : Swift.Codable {
|
|
147
|
+
public var modelPath: Swift.String
|
|
148
|
+
public var sampleRate: Swift.Int
|
|
149
|
+
public var numMelBins: Swift.Int
|
|
150
|
+
public var cmn: Swift.Bool
|
|
151
|
+
public var frameLengthMs: Swift.Float
|
|
152
|
+
public var frameShiftMs: Swift.Float
|
|
153
|
+
public var nFFT: Swift.Int
|
|
154
|
+
public var decisionThreshold: Swift.Float
|
|
155
|
+
public var expectedLayoutBDT: Swift.Bool
|
|
156
|
+
public var frameSize: Swift.Int
|
|
157
|
+
public var tailSeconds: Swift.Float
|
|
158
|
+
public var maxTailSeconds: Swift.Float
|
|
159
|
+
public var meanComboEnabled: Swift.Bool
|
|
160
|
+
public var meanComboMaxK: Swift.Int
|
|
161
|
+
public var meanComboMaxTotal: Swift.Int
|
|
162
|
+
public var logLevel: DavoiceTTS.SVLogLevel
|
|
163
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
164
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
165
|
+
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: DavoiceTTS.SVLogLevel = .debug)
|
|
166
|
+
}
|
|
167
|
+
public struct SpeakerEnrollment : Swift.Codable {
|
|
168
|
+
public let enrollmentId: Swift.String
|
|
169
|
+
public let createdAtEpochMs: Swift.Int64
|
|
170
|
+
public let configSnapshot: DavoiceTTS.SpeakerVerificationConfig
|
|
171
|
+
public let enrolledEmbeddings: [[Swift.Float]]
|
|
172
|
+
public let meanEmbedding: [Swift.Float]
|
|
173
|
+
public let meanComboEmbeddings: [[Swift.Float]]
|
|
174
|
+
public let meanComboLabels: [Swift.String]
|
|
175
|
+
public init(enrollmentId: Swift.String, createdAtEpochMs: Swift.Int64, configSnapshot: DavoiceTTS.SpeakerVerificationConfig, enrolledEmbeddings: [[Swift.Float]], meanEmbedding: [Swift.Float], meanComboEmbeddings: [[Swift.Float]] = [], meanComboLabels: [Swift.String] = [])
|
|
176
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
177
|
+
public func serialize() throws -> Foundation.Data
|
|
178
|
+
public static func deserialize(_ data: Foundation.Data) throws -> DavoiceTTS.SpeakerEnrollment
|
|
179
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
180
|
+
}
|
|
181
|
+
public struct SVPendingInfo {
|
|
182
|
+
public let bufferedSamples: Swift.Int
|
|
183
|
+
public let bufferedSeconds: Swift.Float
|
|
184
|
+
public let neededSeconds: Swift.Float
|
|
185
|
+
}
|
|
186
|
+
public struct SpeakerVerificationResult {
|
|
187
|
+
public let scoreBest: Swift.Float
|
|
188
|
+
public let scoreMean: Swift.Float
|
|
189
|
+
public let scoreWorst: Swift.Float
|
|
190
|
+
public let scoreBestRaw: Swift.Float
|
|
191
|
+
public let scoreBestMeancombo: Swift.Float
|
|
192
|
+
public let bestKind: Swift.String
|
|
193
|
+
public let bestId: Swift.String
|
|
194
|
+
public let isMatch: Swift.Bool
|
|
195
|
+
public let embeddingDim: Swift.Int
|
|
196
|
+
public let usedSeconds: Swift.Float
|
|
197
|
+
public let ortRunMs: Swift.Double
|
|
198
|
+
public let featureMs: Swift.Double
|
|
199
|
+
public let totalMs: Swift.Double
|
|
200
|
+
}
|
|
201
|
+
public enum SpeakerVerificationOutput {
|
|
202
|
+
case pending(DavoiceTTS.SVPendingInfo)
|
|
203
|
+
case result(DavoiceTTS.SpeakerVerificationResult)
|
|
204
|
+
}
|
|
205
|
+
public enum SpeakerVerificationError : Swift.Error, Swift.CustomStringConvertible {
|
|
206
|
+
case invalidFrameSize(expected: Swift.Int, got: Swift.Int)
|
|
207
|
+
case enrollmentMissing
|
|
208
|
+
case emptyAudio
|
|
209
|
+
case onnx(Swift.String)
|
|
210
|
+
case feature(Swift.String)
|
|
211
|
+
public var description: Swift.String {
|
|
212
|
+
get
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
@objc @objcMembers final public class SpeakerVerificationEngine : ObjectiveC.NSObject {
|
|
216
|
+
final public let config: DavoiceTTS.SpeakerVerificationConfig
|
|
217
|
+
final public let logger: any DavoiceTTS.SVLogger
|
|
218
|
+
public init(config: DavoiceTTS.SpeakerVerificationConfig, logger: (any DavoiceTTS.SVLogger)? = nil) throws
|
|
219
|
+
final public func setEnrollment(_ enrollment: DavoiceTTS.SpeakerEnrollment?)
|
|
220
|
+
@objc final public func resetStreamingState()
|
|
221
|
+
final public func processFrame(frame: [Swift.Float]) throws -> DavoiceTTS.SpeakerVerificationOutput
|
|
222
|
+
final public func verifyWavFileStreaming(path: Swift.String, resetState: Swift.Bool = true) throws -> DavoiceTTS.SpeakerVerificationResult
|
|
223
|
+
@objc deinit
|
|
224
|
+
}
|
|
225
|
+
@_inheritsConvenienceInitializers @objc(DavoiceSpeakerVerificationRNFacade) final public class SpeakerVerificationRNFacade : ObjectiveC.NSObject {
|
|
226
|
+
@objc(createEngineWithModelPath:enrollmentJsonPath:options:error:) public static func createEngine(modelPath: Swift.String, enrollmentJsonPath: Swift.String, options: [Swift.String : Any], error outError: Foundation.NSErrorPointer) -> Any?
|
|
227
|
+
@objc(verifyWavWithEngine:wavPath:reset:error:) public static func verifyWav(engine: Any, wavPath: Swift.String, reset: Swift.Bool, error outError: Foundation.NSErrorPointer) -> [Swift.String : Any]?
|
|
228
|
+
@objc override dynamic public init()
|
|
229
|
+
@objc deinit
|
|
230
|
+
}
|
|
234
231
|
extension DavoiceTTS.DaVoiceTTS.NumberFormatStyle : Swift.Equatable {}
|
|
235
232
|
extension DavoiceTTS.DaVoiceTTS.NumberFormatStyle : Swift.Hashable {}
|
|
236
233
|
extension DavoiceTTS.DaVoiceTTS.NumberFormatStyle : Swift.RawRepresentable {}
|
|
234
|
+
extension DavoiceTTS.SVLogLevel : Swift.Equatable {}
|
|
235
|
+
extension DavoiceTTS.SVLogLevel : Swift.Hashable {}
|
|
236
|
+
extension DavoiceTTS.SVLogLevel : Swift.RawRepresentable {}
|
|
@@ -17,108 +17,6 @@ import _SwiftConcurrencyShims
|
|
|
17
17
|
import onnxruntime_objc
|
|
18
18
|
import phonemes
|
|
19
19
|
import ObjectiveC.runtime
|
|
20
|
-
public enum SVLogLevel : Swift.Int, Swift.Codable {
|
|
21
|
-
case off, error, warn, info, debug, trace
|
|
22
|
-
public init?(rawValue: Swift.Int)
|
|
23
|
-
public typealias RawValue = Swift.Int
|
|
24
|
-
public var rawValue: Swift.Int {
|
|
25
|
-
get
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
public protocol SVLogger {
|
|
29
|
-
func log(_ level: DavoiceTTS.SVLogLevel, _ tag: Swift.String, _ msg: Swift.String)
|
|
30
|
-
}
|
|
31
|
-
final public class SVDefaultLogger : DavoiceTTS.SVLogger {
|
|
32
|
-
final public var level: DavoiceTTS.SVLogLevel
|
|
33
|
-
public init(level: DavoiceTTS.SVLogLevel = .trace)
|
|
34
|
-
final public func log(_ level: DavoiceTTS.SVLogLevel, _ tag: Swift.String, _ msg: Swift.String)
|
|
35
|
-
@objc deinit
|
|
36
|
-
}
|
|
37
|
-
public struct SpeakerVerificationConfig : Swift.Codable {
|
|
38
|
-
public var modelPath: Swift.String
|
|
39
|
-
public var sampleRate: Swift.Int
|
|
40
|
-
public var numMelBins: Swift.Int
|
|
41
|
-
public var cmn: Swift.Bool
|
|
42
|
-
public var frameLengthMs: Swift.Float
|
|
43
|
-
public var frameShiftMs: Swift.Float
|
|
44
|
-
public var nFFT: Swift.Int
|
|
45
|
-
public var decisionThreshold: Swift.Float
|
|
46
|
-
public var expectedLayoutBDT: Swift.Bool
|
|
47
|
-
public var frameSize: Swift.Int
|
|
48
|
-
public var tailSeconds: Swift.Float
|
|
49
|
-
public var maxTailSeconds: Swift.Float
|
|
50
|
-
public var meanComboEnabled: Swift.Bool
|
|
51
|
-
public var meanComboMaxK: Swift.Int
|
|
52
|
-
public var meanComboMaxTotal: Swift.Int
|
|
53
|
-
public var logLevel: DavoiceTTS.SVLogLevel
|
|
54
|
-
public init(from decoder: any Swift.Decoder) throws
|
|
55
|
-
public func encode(to encoder: any Swift.Encoder) throws
|
|
56
|
-
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: DavoiceTTS.SVLogLevel = .debug)
|
|
57
|
-
}
|
|
58
|
-
public struct SpeakerEnrollment : Swift.Codable {
|
|
59
|
-
public let enrollmentId: Swift.String
|
|
60
|
-
public let createdAtEpochMs: Swift.Int64
|
|
61
|
-
public let configSnapshot: DavoiceTTS.SpeakerVerificationConfig
|
|
62
|
-
public let enrolledEmbeddings: [[Swift.Float]]
|
|
63
|
-
public let meanEmbedding: [Swift.Float]
|
|
64
|
-
public let meanComboEmbeddings: [[Swift.Float]]
|
|
65
|
-
public let meanComboLabels: [Swift.String]
|
|
66
|
-
public init(enrollmentId: Swift.String, createdAtEpochMs: Swift.Int64, configSnapshot: DavoiceTTS.SpeakerVerificationConfig, enrolledEmbeddings: [[Swift.Float]], meanEmbedding: [Swift.Float], meanComboEmbeddings: [[Swift.Float]] = [], meanComboLabels: [Swift.String] = [])
|
|
67
|
-
public init(from decoder: any Swift.Decoder) throws
|
|
68
|
-
public func serialize() throws -> Foundation.Data
|
|
69
|
-
public static func deserialize(_ data: Foundation.Data) throws -> DavoiceTTS.SpeakerEnrollment
|
|
70
|
-
public func encode(to encoder: any Swift.Encoder) throws
|
|
71
|
-
}
|
|
72
|
-
public struct SVPendingInfo {
|
|
73
|
-
public let bufferedSamples: Swift.Int
|
|
74
|
-
public let bufferedSeconds: Swift.Float
|
|
75
|
-
public let neededSeconds: Swift.Float
|
|
76
|
-
}
|
|
77
|
-
public struct SpeakerVerificationResult {
|
|
78
|
-
public let scoreBest: Swift.Float
|
|
79
|
-
public let scoreMean: Swift.Float
|
|
80
|
-
public let scoreWorst: Swift.Float
|
|
81
|
-
public let scoreBestRaw: Swift.Float
|
|
82
|
-
public let scoreBestMeancombo: Swift.Float
|
|
83
|
-
public let bestKind: Swift.String
|
|
84
|
-
public let bestId: Swift.String
|
|
85
|
-
public let isMatch: Swift.Bool
|
|
86
|
-
public let embeddingDim: Swift.Int
|
|
87
|
-
public let usedSeconds: Swift.Float
|
|
88
|
-
public let ortRunMs: Swift.Double
|
|
89
|
-
public let featureMs: Swift.Double
|
|
90
|
-
public let totalMs: Swift.Double
|
|
91
|
-
}
|
|
92
|
-
public enum SpeakerVerificationOutput {
|
|
93
|
-
case pending(DavoiceTTS.SVPendingInfo)
|
|
94
|
-
case result(DavoiceTTS.SpeakerVerificationResult)
|
|
95
|
-
}
|
|
96
|
-
public enum SpeakerVerificationError : Swift.Error, Swift.CustomStringConvertible {
|
|
97
|
-
case invalidFrameSize(expected: Swift.Int, got: Swift.Int)
|
|
98
|
-
case enrollmentMissing
|
|
99
|
-
case emptyAudio
|
|
100
|
-
case onnx(Swift.String)
|
|
101
|
-
case feature(Swift.String)
|
|
102
|
-
public var description: Swift.String {
|
|
103
|
-
get
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
@objc @objcMembers final public class SpeakerVerificationEngine : ObjectiveC.NSObject {
|
|
107
|
-
final public let config: DavoiceTTS.SpeakerVerificationConfig
|
|
108
|
-
final public let logger: any DavoiceTTS.SVLogger
|
|
109
|
-
public init(config: DavoiceTTS.SpeakerVerificationConfig, logger: (any DavoiceTTS.SVLogger)? = nil) throws
|
|
110
|
-
final public func setEnrollment(_ enrollment: DavoiceTTS.SpeakerEnrollment?)
|
|
111
|
-
@objc final public func resetStreamingState()
|
|
112
|
-
final public func processFrame(frame: [Swift.Float]) throws -> DavoiceTTS.SpeakerVerificationOutput
|
|
113
|
-
final public func verifyWavFileStreaming(path: Swift.String, resetState: Swift.Bool = true) throws -> DavoiceTTS.SpeakerVerificationResult
|
|
114
|
-
@objc deinit
|
|
115
|
-
}
|
|
116
|
-
@_inheritsConvenienceInitializers @objc(DavoiceSpeakerVerificationRNFacade) final public class SpeakerVerificationRNFacade : ObjectiveC.NSObject {
|
|
117
|
-
@objc(createEngineWithModelPath:enrollmentJsonPath:options:error:) public static func createEngine(modelPath: Swift.String, enrollmentJsonPath: Swift.String, options: [Swift.String : Any], error outError: Foundation.NSErrorPointer) -> Any?
|
|
118
|
-
@objc(verifyWavWithEngine:wavPath:reset:error:) public static func verifyWav(engine: Any, wavPath: Swift.String, reset: Swift.Bool, error outError: Foundation.NSErrorPointer) -> [Swift.String : Any]?
|
|
119
|
-
@objc override dynamic public init()
|
|
120
|
-
@objc deinit
|
|
121
|
-
}
|
|
122
20
|
@_inheritsConvenienceInitializers @objc final public class LicenseManager : ObjectiveC.NSObject {
|
|
123
21
|
@objc public static func isLicenseValid(licenseKey: Swift.String) -> Swift.Bool
|
|
124
22
|
@objc override dynamic public init()
|
|
@@ -228,9 +126,111 @@ public enum AudioPlaybackHook {
|
|
|
228
126
|
@objc final public func playWav(_ url: Foundation.URL, markAsLastUtterance: Swift.Bool = true)
|
|
229
127
|
@objc final public func playBuffer(_ buffer: AVFAudio.AVAudioPCMBuffer, markAsLastUtterance: Swift.Bool = true)
|
|
230
128
|
}
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
129
|
+
public enum SVLogLevel : Swift.Int, Swift.Codable {
|
|
130
|
+
case off, error, warn, info, debug, trace
|
|
131
|
+
public init?(rawValue: Swift.Int)
|
|
132
|
+
public typealias RawValue = Swift.Int
|
|
133
|
+
public var rawValue: Swift.Int {
|
|
134
|
+
get
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
public protocol SVLogger {
|
|
138
|
+
func log(_ level: DavoiceTTS.SVLogLevel, _ tag: Swift.String, _ msg: Swift.String)
|
|
139
|
+
}
|
|
140
|
+
final public class SVDefaultLogger : DavoiceTTS.SVLogger {
|
|
141
|
+
final public var level: DavoiceTTS.SVLogLevel
|
|
142
|
+
public init(level: DavoiceTTS.SVLogLevel = .trace)
|
|
143
|
+
final public func log(_ level: DavoiceTTS.SVLogLevel, _ tag: Swift.String, _ msg: Swift.String)
|
|
144
|
+
@objc deinit
|
|
145
|
+
}
|
|
146
|
+
public struct SpeakerVerificationConfig : Swift.Codable {
|
|
147
|
+
public var modelPath: Swift.String
|
|
148
|
+
public var sampleRate: Swift.Int
|
|
149
|
+
public var numMelBins: Swift.Int
|
|
150
|
+
public var cmn: Swift.Bool
|
|
151
|
+
public var frameLengthMs: Swift.Float
|
|
152
|
+
public var frameShiftMs: Swift.Float
|
|
153
|
+
public var nFFT: Swift.Int
|
|
154
|
+
public var decisionThreshold: Swift.Float
|
|
155
|
+
public var expectedLayoutBDT: Swift.Bool
|
|
156
|
+
public var frameSize: Swift.Int
|
|
157
|
+
public var tailSeconds: Swift.Float
|
|
158
|
+
public var maxTailSeconds: Swift.Float
|
|
159
|
+
public var meanComboEnabled: Swift.Bool
|
|
160
|
+
public var meanComboMaxK: Swift.Int
|
|
161
|
+
public var meanComboMaxTotal: Swift.Int
|
|
162
|
+
public var logLevel: DavoiceTTS.SVLogLevel
|
|
163
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
164
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
165
|
+
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: DavoiceTTS.SVLogLevel = .debug)
|
|
166
|
+
}
|
|
167
|
+
public struct SpeakerEnrollment : Swift.Codable {
|
|
168
|
+
public let enrollmentId: Swift.String
|
|
169
|
+
public let createdAtEpochMs: Swift.Int64
|
|
170
|
+
public let configSnapshot: DavoiceTTS.SpeakerVerificationConfig
|
|
171
|
+
public let enrolledEmbeddings: [[Swift.Float]]
|
|
172
|
+
public let meanEmbedding: [Swift.Float]
|
|
173
|
+
public let meanComboEmbeddings: [[Swift.Float]]
|
|
174
|
+
public let meanComboLabels: [Swift.String]
|
|
175
|
+
public init(enrollmentId: Swift.String, createdAtEpochMs: Swift.Int64, configSnapshot: DavoiceTTS.SpeakerVerificationConfig, enrolledEmbeddings: [[Swift.Float]], meanEmbedding: [Swift.Float], meanComboEmbeddings: [[Swift.Float]] = [], meanComboLabels: [Swift.String] = [])
|
|
176
|
+
public init(from decoder: any Swift.Decoder) throws
|
|
177
|
+
public func serialize() throws -> Foundation.Data
|
|
178
|
+
public static func deserialize(_ data: Foundation.Data) throws -> DavoiceTTS.SpeakerEnrollment
|
|
179
|
+
public func encode(to encoder: any Swift.Encoder) throws
|
|
180
|
+
}
|
|
181
|
+
public struct SVPendingInfo {
|
|
182
|
+
public let bufferedSamples: Swift.Int
|
|
183
|
+
public let bufferedSeconds: Swift.Float
|
|
184
|
+
public let neededSeconds: Swift.Float
|
|
185
|
+
}
|
|
186
|
+
public struct SpeakerVerificationResult {
|
|
187
|
+
public let scoreBest: Swift.Float
|
|
188
|
+
public let scoreMean: Swift.Float
|
|
189
|
+
public let scoreWorst: Swift.Float
|
|
190
|
+
public let scoreBestRaw: Swift.Float
|
|
191
|
+
public let scoreBestMeancombo: Swift.Float
|
|
192
|
+
public let bestKind: Swift.String
|
|
193
|
+
public let bestId: Swift.String
|
|
194
|
+
public let isMatch: Swift.Bool
|
|
195
|
+
public let embeddingDim: Swift.Int
|
|
196
|
+
public let usedSeconds: Swift.Float
|
|
197
|
+
public let ortRunMs: Swift.Double
|
|
198
|
+
public let featureMs: Swift.Double
|
|
199
|
+
public let totalMs: Swift.Double
|
|
200
|
+
}
|
|
201
|
+
public enum SpeakerVerificationOutput {
|
|
202
|
+
case pending(DavoiceTTS.SVPendingInfo)
|
|
203
|
+
case result(DavoiceTTS.SpeakerVerificationResult)
|
|
204
|
+
}
|
|
205
|
+
public enum SpeakerVerificationError : Swift.Error, Swift.CustomStringConvertible {
|
|
206
|
+
case invalidFrameSize(expected: Swift.Int, got: Swift.Int)
|
|
207
|
+
case enrollmentMissing
|
|
208
|
+
case emptyAudio
|
|
209
|
+
case onnx(Swift.String)
|
|
210
|
+
case feature(Swift.String)
|
|
211
|
+
public var description: Swift.String {
|
|
212
|
+
get
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
@objc @objcMembers final public class SpeakerVerificationEngine : ObjectiveC.NSObject {
|
|
216
|
+
final public let config: DavoiceTTS.SpeakerVerificationConfig
|
|
217
|
+
final public let logger: any DavoiceTTS.SVLogger
|
|
218
|
+
public init(config: DavoiceTTS.SpeakerVerificationConfig, logger: (any DavoiceTTS.SVLogger)? = nil) throws
|
|
219
|
+
final public func setEnrollment(_ enrollment: DavoiceTTS.SpeakerEnrollment?)
|
|
220
|
+
@objc final public func resetStreamingState()
|
|
221
|
+
final public func processFrame(frame: [Swift.Float]) throws -> DavoiceTTS.SpeakerVerificationOutput
|
|
222
|
+
final public func verifyWavFileStreaming(path: Swift.String, resetState: Swift.Bool = true) throws -> DavoiceTTS.SpeakerVerificationResult
|
|
223
|
+
@objc deinit
|
|
224
|
+
}
|
|
225
|
+
@_inheritsConvenienceInitializers @objc(DavoiceSpeakerVerificationRNFacade) final public class SpeakerVerificationRNFacade : ObjectiveC.NSObject {
|
|
226
|
+
@objc(createEngineWithModelPath:enrollmentJsonPath:options:error:) public static func createEngine(modelPath: Swift.String, enrollmentJsonPath: Swift.String, options: [Swift.String : Any], error outError: Foundation.NSErrorPointer) -> Any?
|
|
227
|
+
@objc(verifyWavWithEngine:wavPath:reset:error:) public static func verifyWav(engine: Any, wavPath: Swift.String, reset: Swift.Bool, error outError: Foundation.NSErrorPointer) -> [Swift.String : Any]?
|
|
228
|
+
@objc override dynamic public init()
|
|
229
|
+
@objc deinit
|
|
230
|
+
}
|
|
234
231
|
extension DavoiceTTS.DaVoiceTTS.NumberFormatStyle : Swift.Equatable {}
|
|
235
232
|
extension DavoiceTTS.DaVoiceTTS.NumberFormatStyle : Swift.Hashable {}
|
|
236
233
|
extension DavoiceTTS.DaVoiceTTS.NumberFormatStyle : Swift.RawRepresentable {}
|
|
234
|
+
extension DavoiceTTS.SVLogLevel : Swift.Equatable {}
|
|
235
|
+
extension DavoiceTTS.SVLogLevel : Swift.Hashable {}
|
|
236
|
+
extension DavoiceTTS.SVLogLevel : Swift.RawRepresentable {}
|