react-native-davoice-tts 1.0.356 → 1.0.357
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/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/Headers/DavoiceTTS-Swift.h +1 -1
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Info.plist +0 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.abi.json +2673 -2645
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.private.swiftinterface +52 -20
- 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 +52 -20
- 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 +2 -2
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Info.plist +0 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.abi.json +8777 -8749
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +78 -46
- 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 +78 -46
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.abi.json +8777 -8749
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +78 -46
- 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 +78 -46
- 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 +34 -34
- package/ios/TTSRNBridge/libphonemes.xcframework/Info.plist +5 -5
- package/ios/TTSRNBridge/libucd.xcframework/Info.plist +5 -5
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// swift-interface-format-version: 1.0
|
|
2
|
-
// swift-compiler-version: Apple Swift version 6.
|
|
2
|
+
// swift-compiler-version: Apple Swift version 6.2.4 effective-5.10 (swiftlang-6.2.4.1.4 clang-1700.6.4.2)
|
|
3
3
|
// swift-module-flags: -target arm64-apple-ios13.5 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name DavoiceTTS
|
|
4
|
-
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -interface-compiler-version 6.
|
|
4
|
+
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.4
|
|
5
5
|
import AVFAudio
|
|
6
6
|
import AVFoundation
|
|
7
7
|
import Accelerate
|
|
@@ -17,8 +17,23 @@ import _SwiftConcurrencyShims
|
|
|
17
17
|
import onnxruntime_objc
|
|
18
18
|
import phonemes
|
|
19
19
|
import ObjectiveC.runtime
|
|
20
|
+
public typealias EngineSchedule = (_ url: Foundation.URL, _ onDone: @escaping () -> Swift.Void) -> Swift.Bool
|
|
21
|
+
public typealias IsEngineReady = () -> Swift.Bool
|
|
22
|
+
public typealias useOnlyEnginePlayback = () -> Swift.Bool
|
|
23
|
+
public typealias StopEnginePlayback = () -> Swift.Void
|
|
24
|
+
public typealias CurrentEngineProvider = () -> AVFAudio.AVAudioEngine?
|
|
25
|
+
public enum AudioPlaybackHook {
|
|
26
|
+
public static var engineScheduleFile: DavoiceTTS.EngineSchedule?
|
|
27
|
+
public static var isEngineReady: DavoiceTTS.IsEngineReady?
|
|
28
|
+
public static var useOnlyEnginePlayback: DavoiceTTS.useOnlyEnginePlayback?
|
|
29
|
+
public static var stopEnginePlayback: DavoiceTTS.StopEnginePlayback?
|
|
30
|
+
public static var currentEngine: DavoiceTTS.CurrentEngineProvider?
|
|
31
|
+
public static var isMicPaused: (() -> Swift.Bool)?
|
|
32
|
+
}
|
|
20
33
|
@objc public protocol STTDelegate {
|
|
34
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
21
35
|
@objc func stt(_ stt: DavoiceTTS.STT, didEmitEvent name: Swift.String, body: [Swift.String : Any]?)
|
|
36
|
+
#endif
|
|
22
37
|
}
|
|
23
38
|
@objc @_inheritsConvenienceInitializers @objcMembers final public class STT : ObjectiveC.NSObject, Speech.SFSpeechRecognizerDelegate {
|
|
24
39
|
@objc weak final public var delegate: (any DavoiceTTS.STTDelegate)?
|
|
@@ -36,39 +51,44 @@ import ObjectiveC.runtime
|
|
|
36
51
|
@objc public static let supportedEvents: [Swift.String]
|
|
37
52
|
@objc final public func setLicense(licenseKey: Swift.String) -> Swift.Bool
|
|
38
53
|
@objc final public func pauseSpeechRecognitionLite()
|
|
54
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
39
55
|
@objc final public func pauseSpeechRecognitionLiteAndWait(_ timeoutMs: Foundation.NSNumber, completion: @escaping (Swift.Bool, Swift.String?) -> Swift.Void)
|
|
56
|
+
#endif
|
|
40
57
|
@objc final public func unPauseSpeechRecognitionLite(_ times: Foundation.NSNumber)
|
|
41
58
|
@objc(unPauseSpeechRecognitionLite:preFetch:) final public func unPauseSpeechRecognitionLite(_ times: Foundation.NSNumber, preFetch: Foundation.NSNumber)
|
|
59
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
42
60
|
@objc final public func unPauseSpeechRecognitionLiteAndWait(_ times: Foundation.NSNumber, preFetch: Foundation.NSNumber, timeoutMs: Foundation.NSNumber, completion: @escaping (Swift.Bool, Swift.String?) -> Swift.Void)
|
|
61
|
+
#endif
|
|
62
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
43
63
|
@objc final public func pauseMicrophoneAndWait(_ timeoutMs: Foundation.NSNumber, completion: @escaping (Swift.Bool, Swift.String?) -> Swift.Void)
|
|
64
|
+
#endif
|
|
65
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
44
66
|
@objc final public func unPauseMicrophoneAndWait(_ timeoutMs: Foundation.NSNumber, completion: @escaping (Swift.Bool, Swift.String?) -> Swift.Void)
|
|
67
|
+
#endif
|
|
45
68
|
@objc final public func pauseMicrophone()
|
|
46
69
|
@objc final public func unPauseMicrophone()
|
|
47
70
|
@objc final public func setAECEnabled(_ enabled: Swift.Bool)
|
|
48
71
|
@objc final public func isAECEnabled() -> Swift.Bool
|
|
49
72
|
@objc final public func isSpeechAvailable(_ completion: @escaping (Swift.Bool) -> Swift.Void)
|
|
50
73
|
@objc final public func isRecognizing() -> Swift.Bool
|
|
74
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
51
75
|
@objc final public func startSpeech(localeStr: Swift.String?)
|
|
76
|
+
#endif
|
|
77
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
52
78
|
@objc final public func startSpeech(localeStr: Swift.String?, onboardingJsonPath: Swift.String)
|
|
79
|
+
#endif
|
|
80
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
53
81
|
@objc final public func stopSpeech(_ completion: ((Swift.Bool) -> Swift.Void)? = nil)
|
|
82
|
+
#endif
|
|
83
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
54
84
|
@objc final public func cancelSpeech(_ completion: ((Swift.Bool) -> Swift.Void)? = nil)
|
|
85
|
+
#endif
|
|
86
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
55
87
|
@objc final public func destroySpeech(_ completion: ((Swift.Bool) -> Swift.Void)? = nil)
|
|
88
|
+
#endif
|
|
56
89
|
@objc final public func teardown()
|
|
57
90
|
@objc final public func speechRecognizer(_ speechRecognizer: Speech.SFSpeechRecognizer, availabilityDidChange available: Swift.Bool)
|
|
58
91
|
}
|
|
59
|
-
public typealias EngineSchedule = (_ url: Foundation.URL, _ onDone: @escaping () -> Swift.Void) -> Swift.Bool
|
|
60
|
-
public typealias IsEngineReady = () -> Swift.Bool
|
|
61
|
-
public typealias useOnlyEnginePlayback = () -> Swift.Bool
|
|
62
|
-
public typealias StopEnginePlayback = () -> Swift.Void
|
|
63
|
-
public typealias CurrentEngineProvider = () -> AVFAudio.AVAudioEngine?
|
|
64
|
-
public enum AudioPlaybackHook {
|
|
65
|
-
public static var engineScheduleFile: DavoiceTTS.EngineSchedule?
|
|
66
|
-
public static var isEngineReady: DavoiceTTS.IsEngineReady?
|
|
67
|
-
public static var useOnlyEnginePlayback: DavoiceTTS.useOnlyEnginePlayback?
|
|
68
|
-
public static var stopEnginePlayback: DavoiceTTS.StopEnginePlayback?
|
|
69
|
-
public static var currentEngine: DavoiceTTS.CurrentEngineProvider?
|
|
70
|
-
public static var isMicPaused: (() -> Swift.Bool)?
|
|
71
|
-
}
|
|
72
92
|
@objc @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers final public class SwiftSoundQueue : ObjectiveC.NSObject, AVFAudio.AVAudioPlayerDelegate {
|
|
73
93
|
@objc deinit
|
|
74
94
|
public static let shared: DavoiceTTS.SwiftSoundQueue
|
|
@@ -95,7 +115,9 @@ public enum AudioPlaybackHook {
|
|
|
95
115
|
public enum NumberFormatStyle : Swift.Int {
|
|
96
116
|
case us
|
|
97
117
|
case european
|
|
118
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
98
119
|
public init?(rawValue: Swift.Int)
|
|
120
|
+
#endif
|
|
99
121
|
public typealias RawValue = Swift.Int
|
|
100
122
|
public var rawValue: Swift.Int {
|
|
101
123
|
get
|
|
@@ -121,9 +143,16 @@ public enum AudioPlaybackHook {
|
|
|
121
143
|
@objc final public func playWav(_ url: Foundation.URL, markAsLastUtterance: Swift.Bool = true)
|
|
122
144
|
@objc final public func playBuffer(_ buffer: AVFAudio.AVAudioPCMBuffer, markAsLastUtterance: Swift.Bool = true)
|
|
123
145
|
}
|
|
146
|
+
@_inheritsConvenienceInitializers @objc final public class LicenseManager : ObjectiveC.NSObject {
|
|
147
|
+
@objc public static func isLicenseValid(licenseKey: Swift.String) -> Swift.Bool
|
|
148
|
+
@objc override dynamic public init()
|
|
149
|
+
@objc deinit
|
|
150
|
+
}
|
|
124
151
|
public enum SVLogLevel : Swift.Int, Swift.Codable {
|
|
125
152
|
case off, error, warn, info, debug, trace
|
|
153
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
126
154
|
public init?(rawValue: Swift.Int)
|
|
155
|
+
#endif
|
|
127
156
|
public typealias RawValue = Swift.Int
|
|
128
157
|
public var rawValue: Swift.Int {
|
|
129
158
|
get
|
|
@@ -210,21 +239,24 @@ public enum SpeakerVerificationError : Swift.Error, Swift.CustomStringConvertibl
|
|
|
210
239
|
@objc @objcMembers final public class SpeakerVerificationEngine : ObjectiveC.NSObject {
|
|
211
240
|
final public let config: DavoiceTTS.SpeakerVerificationConfig
|
|
212
241
|
final public let logger: any DavoiceTTS.SVLogger
|
|
242
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
213
243
|
public init(config: DavoiceTTS.SpeakerVerificationConfig, logger: (any DavoiceTTS.SVLogger)? = nil) throws
|
|
244
|
+
#endif
|
|
245
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
214
246
|
final public func setEnrollment(_ enrollment: DavoiceTTS.SpeakerEnrollment?)
|
|
247
|
+
#endif
|
|
215
248
|
@objc final public func resetStreamingState()
|
|
216
249
|
final public func processFrame(frame: [Swift.Float]) throws -> DavoiceTTS.SpeakerVerificationOutput
|
|
217
250
|
final public func verifyWavFileStreaming(path: Swift.String, resetState: Swift.Bool = true) throws -> DavoiceTTS.SpeakerVerificationResult
|
|
218
251
|
@objc deinit
|
|
219
252
|
}
|
|
220
253
|
@_inheritsConvenienceInitializers @objc(DavoiceSpeakerVerificationRNFacade) final public class SpeakerVerificationRNFacade : ObjectiveC.NSObject {
|
|
254
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
221
255
|
@objc(createEngineWithModelPath:enrollmentJsonPath:options:error:) public static func createEngine(modelPath: Swift.String, enrollmentJsonPath: Swift.String, options: [Swift.String : Any], error outError: Foundation.NSErrorPointer) -> Any?
|
|
256
|
+
#endif
|
|
257
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
222
258
|
@objc(verifyWavWithEngine:wavPath:reset:error:) public static func verifyWav(engine: Any, wavPath: Swift.String, reset: Swift.Bool, error outError: Foundation.NSErrorPointer) -> [Swift.String : Any]?
|
|
223
|
-
|
|
224
|
-
@objc deinit
|
|
225
|
-
}
|
|
226
|
-
@_inheritsConvenienceInitializers @objc final public class LicenseManager : ObjectiveC.NSObject {
|
|
227
|
-
@objc public static func isLicenseValid(licenseKey: Swift.String) -> Swift.Bool
|
|
259
|
+
#endif
|
|
228
260
|
@objc override dynamic public init()
|
|
229
261
|
@objc deinit
|
|
230
262
|
}
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// swift-interface-format-version: 1.0
|
|
2
|
-
// swift-compiler-version: Apple Swift version 6.
|
|
2
|
+
// swift-compiler-version: Apple Swift version 6.2.4 effective-5.10 (swiftlang-6.2.4.1.4 clang-1700.6.4.2)
|
|
3
3
|
// swift-module-flags: -target arm64-apple-ios13.5 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name DavoiceTTS
|
|
4
|
-
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -interface-compiler-version 6.
|
|
4
|
+
// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.2.4
|
|
5
5
|
import AVFAudio
|
|
6
6
|
import AVFoundation
|
|
7
7
|
import Accelerate
|
|
@@ -17,8 +17,23 @@ import _SwiftConcurrencyShims
|
|
|
17
17
|
import onnxruntime_objc
|
|
18
18
|
import phonemes
|
|
19
19
|
import ObjectiveC.runtime
|
|
20
|
+
public typealias EngineSchedule = (_ url: Foundation.URL, _ onDone: @escaping () -> Swift.Void) -> Swift.Bool
|
|
21
|
+
public typealias IsEngineReady = () -> Swift.Bool
|
|
22
|
+
public typealias useOnlyEnginePlayback = () -> Swift.Bool
|
|
23
|
+
public typealias StopEnginePlayback = () -> Swift.Void
|
|
24
|
+
public typealias CurrentEngineProvider = () -> AVFAudio.AVAudioEngine?
|
|
25
|
+
public enum AudioPlaybackHook {
|
|
26
|
+
public static var engineScheduleFile: DavoiceTTS.EngineSchedule?
|
|
27
|
+
public static var isEngineReady: DavoiceTTS.IsEngineReady?
|
|
28
|
+
public static var useOnlyEnginePlayback: DavoiceTTS.useOnlyEnginePlayback?
|
|
29
|
+
public static var stopEnginePlayback: DavoiceTTS.StopEnginePlayback?
|
|
30
|
+
public static var currentEngine: DavoiceTTS.CurrentEngineProvider?
|
|
31
|
+
public static var isMicPaused: (() -> Swift.Bool)?
|
|
32
|
+
}
|
|
20
33
|
@objc public protocol STTDelegate {
|
|
34
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
21
35
|
@objc func stt(_ stt: DavoiceTTS.STT, didEmitEvent name: Swift.String, body: [Swift.String : Any]?)
|
|
36
|
+
#endif
|
|
22
37
|
}
|
|
23
38
|
@objc @_inheritsConvenienceInitializers @objcMembers final public class STT : ObjectiveC.NSObject, Speech.SFSpeechRecognizerDelegate {
|
|
24
39
|
@objc weak final public var delegate: (any DavoiceTTS.STTDelegate)?
|
|
@@ -36,39 +51,44 @@ import ObjectiveC.runtime
|
|
|
36
51
|
@objc public static let supportedEvents: [Swift.String]
|
|
37
52
|
@objc final public func setLicense(licenseKey: Swift.String) -> Swift.Bool
|
|
38
53
|
@objc final public func pauseSpeechRecognitionLite()
|
|
54
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
39
55
|
@objc final public func pauseSpeechRecognitionLiteAndWait(_ timeoutMs: Foundation.NSNumber, completion: @escaping (Swift.Bool, Swift.String?) -> Swift.Void)
|
|
56
|
+
#endif
|
|
40
57
|
@objc final public func unPauseSpeechRecognitionLite(_ times: Foundation.NSNumber)
|
|
41
58
|
@objc(unPauseSpeechRecognitionLite:preFetch:) final public func unPauseSpeechRecognitionLite(_ times: Foundation.NSNumber, preFetch: Foundation.NSNumber)
|
|
59
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
42
60
|
@objc final public func unPauseSpeechRecognitionLiteAndWait(_ times: Foundation.NSNumber, preFetch: Foundation.NSNumber, timeoutMs: Foundation.NSNumber, completion: @escaping (Swift.Bool, Swift.String?) -> Swift.Void)
|
|
61
|
+
#endif
|
|
62
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
43
63
|
@objc final public func pauseMicrophoneAndWait(_ timeoutMs: Foundation.NSNumber, completion: @escaping (Swift.Bool, Swift.String?) -> Swift.Void)
|
|
64
|
+
#endif
|
|
65
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
44
66
|
@objc final public func unPauseMicrophoneAndWait(_ timeoutMs: Foundation.NSNumber, completion: @escaping (Swift.Bool, Swift.String?) -> Swift.Void)
|
|
67
|
+
#endif
|
|
45
68
|
@objc final public func pauseMicrophone()
|
|
46
69
|
@objc final public func unPauseMicrophone()
|
|
47
70
|
@objc final public func setAECEnabled(_ enabled: Swift.Bool)
|
|
48
71
|
@objc final public func isAECEnabled() -> Swift.Bool
|
|
49
72
|
@objc final public func isSpeechAvailable(_ completion: @escaping (Swift.Bool) -> Swift.Void)
|
|
50
73
|
@objc final public func isRecognizing() -> Swift.Bool
|
|
74
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
51
75
|
@objc final public func startSpeech(localeStr: Swift.String?)
|
|
76
|
+
#endif
|
|
77
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
52
78
|
@objc final public func startSpeech(localeStr: Swift.String?, onboardingJsonPath: Swift.String)
|
|
79
|
+
#endif
|
|
80
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
53
81
|
@objc final public func stopSpeech(_ completion: ((Swift.Bool) -> Swift.Void)? = nil)
|
|
82
|
+
#endif
|
|
83
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
54
84
|
@objc final public func cancelSpeech(_ completion: ((Swift.Bool) -> Swift.Void)? = nil)
|
|
85
|
+
#endif
|
|
86
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
55
87
|
@objc final public func destroySpeech(_ completion: ((Swift.Bool) -> Swift.Void)? = nil)
|
|
88
|
+
#endif
|
|
56
89
|
@objc final public func teardown()
|
|
57
90
|
@objc final public func speechRecognizer(_ speechRecognizer: Speech.SFSpeechRecognizer, availabilityDidChange available: Swift.Bool)
|
|
58
91
|
}
|
|
59
|
-
public typealias EngineSchedule = (_ url: Foundation.URL, _ onDone: @escaping () -> Swift.Void) -> Swift.Bool
|
|
60
|
-
public typealias IsEngineReady = () -> Swift.Bool
|
|
61
|
-
public typealias useOnlyEnginePlayback = () -> Swift.Bool
|
|
62
|
-
public typealias StopEnginePlayback = () -> Swift.Void
|
|
63
|
-
public typealias CurrentEngineProvider = () -> AVFAudio.AVAudioEngine?
|
|
64
|
-
public enum AudioPlaybackHook {
|
|
65
|
-
public static var engineScheduleFile: DavoiceTTS.EngineSchedule?
|
|
66
|
-
public static var isEngineReady: DavoiceTTS.IsEngineReady?
|
|
67
|
-
public static var useOnlyEnginePlayback: DavoiceTTS.useOnlyEnginePlayback?
|
|
68
|
-
public static var stopEnginePlayback: DavoiceTTS.StopEnginePlayback?
|
|
69
|
-
public static var currentEngine: DavoiceTTS.CurrentEngineProvider?
|
|
70
|
-
public static var isMicPaused: (() -> Swift.Bool)?
|
|
71
|
-
}
|
|
72
92
|
@objc @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers final public class SwiftSoundQueue : ObjectiveC.NSObject, AVFAudio.AVAudioPlayerDelegate {
|
|
73
93
|
@objc deinit
|
|
74
94
|
public static let shared: DavoiceTTS.SwiftSoundQueue
|
|
@@ -95,7 +115,9 @@ public enum AudioPlaybackHook {
|
|
|
95
115
|
public enum NumberFormatStyle : Swift.Int {
|
|
96
116
|
case us
|
|
97
117
|
case european
|
|
118
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
98
119
|
public init?(rawValue: Swift.Int)
|
|
120
|
+
#endif
|
|
99
121
|
public typealias RawValue = Swift.Int
|
|
100
122
|
public var rawValue: Swift.Int {
|
|
101
123
|
get
|
|
@@ -121,9 +143,16 @@ public enum AudioPlaybackHook {
|
|
|
121
143
|
@objc final public func playWav(_ url: Foundation.URL, markAsLastUtterance: Swift.Bool = true)
|
|
122
144
|
@objc final public func playBuffer(_ buffer: AVFAudio.AVAudioPCMBuffer, markAsLastUtterance: Swift.Bool = true)
|
|
123
145
|
}
|
|
146
|
+
@_inheritsConvenienceInitializers @objc final public class LicenseManager : ObjectiveC.NSObject {
|
|
147
|
+
@objc public static func isLicenseValid(licenseKey: Swift.String) -> Swift.Bool
|
|
148
|
+
@objc override dynamic public init()
|
|
149
|
+
@objc deinit
|
|
150
|
+
}
|
|
124
151
|
public enum SVLogLevel : Swift.Int, Swift.Codable {
|
|
125
152
|
case off, error, warn, info, debug, trace
|
|
153
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
126
154
|
public init?(rawValue: Swift.Int)
|
|
155
|
+
#endif
|
|
127
156
|
public typealias RawValue = Swift.Int
|
|
128
157
|
public var rawValue: Swift.Int {
|
|
129
158
|
get
|
|
@@ -210,21 +239,24 @@ public enum SpeakerVerificationError : Swift.Error, Swift.CustomStringConvertibl
|
|
|
210
239
|
@objc @objcMembers final public class SpeakerVerificationEngine : ObjectiveC.NSObject {
|
|
211
240
|
final public let config: DavoiceTTS.SpeakerVerificationConfig
|
|
212
241
|
final public let logger: any DavoiceTTS.SVLogger
|
|
242
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
213
243
|
public init(config: DavoiceTTS.SpeakerVerificationConfig, logger: (any DavoiceTTS.SVLogger)? = nil) throws
|
|
244
|
+
#endif
|
|
245
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
214
246
|
final public func setEnrollment(_ enrollment: DavoiceTTS.SpeakerEnrollment?)
|
|
247
|
+
#endif
|
|
215
248
|
@objc final public func resetStreamingState()
|
|
216
249
|
final public func processFrame(frame: [Swift.Float]) throws -> DavoiceTTS.SpeakerVerificationOutput
|
|
217
250
|
final public func verifyWavFileStreaming(path: Swift.String, resetState: Swift.Bool = true) throws -> DavoiceTTS.SpeakerVerificationResult
|
|
218
251
|
@objc deinit
|
|
219
252
|
}
|
|
220
253
|
@_inheritsConvenienceInitializers @objc(DavoiceSpeakerVerificationRNFacade) final public class SpeakerVerificationRNFacade : ObjectiveC.NSObject {
|
|
254
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
221
255
|
@objc(createEngineWithModelPath:enrollmentJsonPath:options:error:) public static func createEngine(modelPath: Swift.String, enrollmentJsonPath: Swift.String, options: [Swift.String : Any], error outError: Foundation.NSErrorPointer) -> Any?
|
|
256
|
+
#endif
|
|
257
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
222
258
|
@objc(verifyWavWithEngine:wavPath:reset:error:) public static func verifyWav(engine: Any, wavPath: Swift.String, reset: Swift.Bool, error outError: Foundation.NSErrorPointer) -> [Swift.String : Any]?
|
|
223
|
-
|
|
224
|
-
@objc deinit
|
|
225
|
-
}
|
|
226
|
-
@_inheritsConvenienceInitializers @objc final public class LicenseManager : ObjectiveC.NSObject {
|
|
227
|
-
@objc public static func isLicenseValid(licenseKey: Swift.String) -> Swift.Bool
|
|
259
|
+
#endif
|
|
228
260
|
@objc override dynamic public init()
|
|
229
261
|
@objc deinit
|
|
230
262
|
}
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#if 0
|
|
2
2
|
#elif defined(__arm64__) && __arm64__
|
|
3
|
-
// Generated by Apple Swift version 6.
|
|
3
|
+
// Generated by Apple Swift version 6.2.4 effective-5.10 (swiftlang-6.2.4.1.4 clang-1700.6.4.2)
|
|
4
4
|
#ifndef DAVOICETTS_SWIFT_H
|
|
5
5
|
#define DAVOICETTS_SWIFT_H
|
|
6
6
|
#pragma clang diagnostic push
|
|
@@ -427,7 +427,7 @@ SWIFT_CLASS("_TtC10DavoiceTTS15SwiftSoundQueue")
|
|
|
427
427
|
#endif
|
|
428
428
|
|
|
429
429
|
#elif defined(__x86_64__) && __x86_64__
|
|
430
|
-
// Generated by Apple Swift version 6.
|
|
430
|
+
// Generated by Apple Swift version 6.2.4 effective-5.10 (swiftlang-6.2.4.1.4 clang-1700.6.4.2)
|
|
431
431
|
#ifndef DAVOICETTS_SWIFT_H
|
|
432
432
|
#define DAVOICETTS_SWIFT_H
|
|
433
433
|
#pragma clang diagnostic push
|