react-native-davoice-tts 1.0.405 → 1.0.406
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 +1 -1
- package/android/.gradle/8.9/checksums/checksums.lock +0 -0
- package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/9.7.1/checksums/checksums.lock +0 -0
- package/android/.gradle/9.7.1/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +1 -1
- package/android/build/reports/problems/problems-report.html +9 -2
- 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/android/src/main/java/com/davoice/stt/rn/STTModule.kt +90 -22
- package/ios/SpeechBridge/SpeechBridge.m +102 -12
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/Info.plist +5 -5
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/DavoiceTTS +0 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Headers/DavoiceTTS-Swift.h +20 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.abi.json +1246 -181
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.private.swiftinterface +34 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.swiftinterface +34 -0
- 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/Headers/DavoiceTTS-Swift.h +40 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.abi.json +1246 -181
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +34 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.swiftinterface +34 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.abi.json +1246 -181
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +34 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +34 -0
- 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 +33 -33
- package/package.json +1 -1
- package/speech/index.d.ts +37 -1
- package/speech/index.ts +99 -4
- package/android/.gradle/9.2.0/checksums/checksums.lock +0 -0
- package/android/.gradle/9.2.0/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/9.2.0/fileHashes/fileHashes.lock +0 -0
- /package/android/.gradle/{9.2.0 → 9.7.1}/fileChanges/last-build.bin +0 -0
- /package/android/.gradle/{9.2.0 → 9.7.1}/gc.properties +0 -0
|
@@ -96,6 +96,17 @@ public enum AudioPlaybackHook {
|
|
|
96
96
|
@objc final public func startSpeech(localeStr: Swift.String?, onboardingJsonPath: Swift.String)
|
|
97
97
|
#endif
|
|
98
98
|
#if compiler(>=5.3) && $NonescapableTypes
|
|
99
|
+
@objc final public func startSpeech(localeStr: Swift.String?, onboardingJsonPath: Swift.String, speakerId: Swift.String)
|
|
100
|
+
#endif
|
|
101
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
102
|
+
@objc final public func startSpeech(localeStr: Swift.String?, speakers: [[Swift.String : Swift.String]])
|
|
103
|
+
#endif
|
|
104
|
+
@objc final public func addSpeaker(id: Swift.String, jsonOrPath: Swift.String) throws
|
|
105
|
+
@objc final public func setSpeakers(_ speakers: [[Swift.String : Swift.String]]) throws
|
|
106
|
+
@objc @discardableResult
|
|
107
|
+
final public func removeSpeaker(id: Swift.String) -> Swift.Bool
|
|
108
|
+
@objc final public func getSpeakerIds() -> [Swift.String]
|
|
109
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
99
110
|
@objc final public func stopSpeech(_ completion: ((Swift.Bool) -> Swift.Void)? = nil)
|
|
100
111
|
#endif
|
|
101
112
|
#if compiler(>=5.3) && $NonescapableTypes
|
|
@@ -243,6 +254,25 @@ public struct SpeakerEnrollment : Swift.Codable {
|
|
|
243
254
|
public static func deserialize(_ data: Foundation.Data) throws -> DavoiceTTS.SpeakerEnrollment
|
|
244
255
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
245
256
|
}
|
|
257
|
+
public struct SVSpeaker {
|
|
258
|
+
public let id: Swift.String
|
|
259
|
+
public let enrollment: DavoiceTTS.SpeakerEnrollment
|
|
260
|
+
public let threshold: Swift.Float
|
|
261
|
+
public let contentKey: Swift.String
|
|
262
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
263
|
+
public init(id: Swift.String, enrollment: DavoiceTTS.SpeakerEnrollment, threshold: Swift.Float? = nil)
|
|
264
|
+
#endif
|
|
265
|
+
public static func contentKey(of e: DavoiceTTS.SpeakerEnrollment) -> Swift.String
|
|
266
|
+
}
|
|
267
|
+
public enum SVSpeakerSet {
|
|
268
|
+
public static let defaultSpeakerId: Swift.String
|
|
269
|
+
public static func loadEnrollment(jsonOrPath: Swift.String) throws -> DavoiceTTS.SpeakerEnrollment
|
|
270
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
271
|
+
public static func incompatibility(_ e: DavoiceTTS.SpeakerEnrollment, base: DavoiceTTS.SpeakerVerificationConfig, baseDim: Swift.Int) -> Swift.String?
|
|
272
|
+
#endif
|
|
273
|
+
public static func upsert(_ list: [DavoiceTTS.SVSpeaker], _ s: DavoiceTTS.SVSpeaker) -> (list: [DavoiceTTS.SVSpeaker], removed: [Swift.String])
|
|
274
|
+
public static func build(_ items: [DavoiceTTS.SVSpeaker]) -> (list: [DavoiceTTS.SVSpeaker], removed: [Swift.String])
|
|
275
|
+
}
|
|
246
276
|
public struct SVPendingInfo {
|
|
247
277
|
public let bufferedSamples: Swift.Int
|
|
248
278
|
public let bufferedSeconds: Swift.Float
|
|
@@ -257,6 +287,8 @@ public struct SpeakerVerificationResult {
|
|
|
257
287
|
public let bestKind: Swift.String
|
|
258
288
|
public let bestId: Swift.String
|
|
259
289
|
public let isMatch: Swift.Bool
|
|
290
|
+
public let speakerId: Swift.String?
|
|
291
|
+
public let speakerScores: [Swift.String : Swift.Float]
|
|
260
292
|
public let embeddingDim: Swift.Int
|
|
261
293
|
public let usedSeconds: Swift.Float
|
|
262
294
|
public let ortRunMs: Swift.Double
|
|
@@ -286,6 +318,8 @@ public enum SpeakerVerificationError : Swift.Error, Swift.CustomStringConvertibl
|
|
|
286
318
|
#if compiler(>=5.3) && $NonescapableTypes
|
|
287
319
|
final public func setEnrollment(_ enrollment: DavoiceTTS.SpeakerEnrollment?)
|
|
288
320
|
#endif
|
|
321
|
+
final public func setSpeakers(_ list: [DavoiceTTS.SVSpeaker])
|
|
322
|
+
final public func currentSpeakers() -> [DavoiceTTS.SVSpeaker]
|
|
289
323
|
@objc final public func resetStreamingState()
|
|
290
324
|
final public func processFrame(frame: [Swift.Float]) throws -> DavoiceTTS.SpeakerVerificationOutput
|
|
291
325
|
final public func verifyWavFileStreaming(path: Swift.String, resetState: Swift.Bool = true) throws -> DavoiceTTS.SpeakerVerificationResult
|
|
Binary file
|
|
@@ -96,6 +96,17 @@ public enum AudioPlaybackHook {
|
|
|
96
96
|
@objc final public func startSpeech(localeStr: Swift.String?, onboardingJsonPath: Swift.String)
|
|
97
97
|
#endif
|
|
98
98
|
#if compiler(>=5.3) && $NonescapableTypes
|
|
99
|
+
@objc final public func startSpeech(localeStr: Swift.String?, onboardingJsonPath: Swift.String, speakerId: Swift.String)
|
|
100
|
+
#endif
|
|
101
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
102
|
+
@objc final public func startSpeech(localeStr: Swift.String?, speakers: [[Swift.String : Swift.String]])
|
|
103
|
+
#endif
|
|
104
|
+
@objc final public func addSpeaker(id: Swift.String, jsonOrPath: Swift.String) throws
|
|
105
|
+
@objc final public func setSpeakers(_ speakers: [[Swift.String : Swift.String]]) throws
|
|
106
|
+
@objc @discardableResult
|
|
107
|
+
final public func removeSpeaker(id: Swift.String) -> Swift.Bool
|
|
108
|
+
@objc final public func getSpeakerIds() -> [Swift.String]
|
|
109
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
99
110
|
@objc final public func stopSpeech(_ completion: ((Swift.Bool) -> Swift.Void)? = nil)
|
|
100
111
|
#endif
|
|
101
112
|
#if compiler(>=5.3) && $NonescapableTypes
|
|
@@ -243,6 +254,25 @@ public struct SpeakerEnrollment : Swift.Codable {
|
|
|
243
254
|
public static func deserialize(_ data: Foundation.Data) throws -> DavoiceTTS.SpeakerEnrollment
|
|
244
255
|
public func encode(to encoder: any Swift.Encoder) throws
|
|
245
256
|
}
|
|
257
|
+
public struct SVSpeaker {
|
|
258
|
+
public let id: Swift.String
|
|
259
|
+
public let enrollment: DavoiceTTS.SpeakerEnrollment
|
|
260
|
+
public let threshold: Swift.Float
|
|
261
|
+
public let contentKey: Swift.String
|
|
262
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
263
|
+
public init(id: Swift.String, enrollment: DavoiceTTS.SpeakerEnrollment, threshold: Swift.Float? = nil)
|
|
264
|
+
#endif
|
|
265
|
+
public static func contentKey(of e: DavoiceTTS.SpeakerEnrollment) -> Swift.String
|
|
266
|
+
}
|
|
267
|
+
public enum SVSpeakerSet {
|
|
268
|
+
public static let defaultSpeakerId: Swift.String
|
|
269
|
+
public static func loadEnrollment(jsonOrPath: Swift.String) throws -> DavoiceTTS.SpeakerEnrollment
|
|
270
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
271
|
+
public static func incompatibility(_ e: DavoiceTTS.SpeakerEnrollment, base: DavoiceTTS.SpeakerVerificationConfig, baseDim: Swift.Int) -> Swift.String?
|
|
272
|
+
#endif
|
|
273
|
+
public static func upsert(_ list: [DavoiceTTS.SVSpeaker], _ s: DavoiceTTS.SVSpeaker) -> (list: [DavoiceTTS.SVSpeaker], removed: [Swift.String])
|
|
274
|
+
public static func build(_ items: [DavoiceTTS.SVSpeaker]) -> (list: [DavoiceTTS.SVSpeaker], removed: [Swift.String])
|
|
275
|
+
}
|
|
246
276
|
public struct SVPendingInfo {
|
|
247
277
|
public let bufferedSamples: Swift.Int
|
|
248
278
|
public let bufferedSeconds: Swift.Float
|
|
@@ -257,6 +287,8 @@ public struct SpeakerVerificationResult {
|
|
|
257
287
|
public let bestKind: Swift.String
|
|
258
288
|
public let bestId: Swift.String
|
|
259
289
|
public let isMatch: Swift.Bool
|
|
290
|
+
public let speakerId: Swift.String?
|
|
291
|
+
public let speakerScores: [Swift.String : Swift.Float]
|
|
260
292
|
public let embeddingDim: Swift.Int
|
|
261
293
|
public let usedSeconds: Swift.Float
|
|
262
294
|
public let ortRunMs: Swift.Double
|
|
@@ -286,6 +318,8 @@ public enum SpeakerVerificationError : Swift.Error, Swift.CustomStringConvertibl
|
|
|
286
318
|
#if compiler(>=5.3) && $NonescapableTypes
|
|
287
319
|
final public func setEnrollment(_ enrollment: DavoiceTTS.SpeakerEnrollment?)
|
|
288
320
|
#endif
|
|
321
|
+
final public func setSpeakers(_ list: [DavoiceTTS.SVSpeaker])
|
|
322
|
+
final public func currentSpeakers() -> [DavoiceTTS.SVSpeaker]
|
|
289
323
|
@objc final public func resetStreamingState()
|
|
290
324
|
final public func processFrame(frame: [Swift.Float]) throws -> DavoiceTTS.SpeakerVerificationOutput
|
|
291
325
|
final public func verifyWavFileStreaming(path: Swift.String, resetState: Swift.Bool = true) throws -> DavoiceTTS.SpeakerVerificationResult
|