react-native-davoice-tts 1.0.344 → 1.0.346
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/android/src/main/java/com/davoice/stt/rn/STTModule.kt +3 -0
- package/ios/TTSRNBridge/DaVoiceTTSBridge.m +24 -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 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.abi.json +7510 -7201
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.private.swiftinterface +32 -18
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.swiftinterface +32 -18
- 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 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.abi.json +9646 -9337
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +102 -88
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.swiftinterface +102 -88
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.abi.json +9646 -9337
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +102 -88
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +102 -88
- 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 +27 -27
- package/package.json +1 -1
- package/speech/index.ts +83 -17
|
@@ -17,6 +17,19 @@ 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 @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers final public class SwiftSoundQueue : ObjectiveC.NSObject, AVFAudio.AVAudioPlayerDelegate {
|
|
21
34
|
@objc deinit
|
|
22
35
|
public static let shared: DavoiceTTS.SwiftSoundQueue
|
|
@@ -37,10 +50,21 @@ import ObjectiveC.runtime
|
|
|
37
50
|
@objc @objcMembers final public class DaVoiceTTS : ObjectiveC.NSObject {
|
|
38
51
|
public struct Config {
|
|
39
52
|
}
|
|
53
|
+
public enum NumberFormatStyle : Swift.Int {
|
|
54
|
+
case us
|
|
55
|
+
case european
|
|
56
|
+
public init?(rawValue: Swift.Int)
|
|
57
|
+
public typealias RawValue = Swift.Int
|
|
58
|
+
public var rawValue: Swift.Int {
|
|
59
|
+
get
|
|
60
|
+
}
|
|
61
|
+
}
|
|
40
62
|
@objc final public var onLastUtteranceFinished: (() -> Swift.Void)?
|
|
41
63
|
@objc deinit
|
|
42
64
|
@objc public static func activateLicense(licenseKey: Swift.String) -> Swift.Bool
|
|
43
65
|
@objc final public func setLicense(licenseKey: Swift.String) -> Swift.Bool
|
|
66
|
+
final public func setNumberFormatStyle(_ style: DavoiceTTS.DaVoiceTTS.NumberFormatStyle)
|
|
67
|
+
@objc final public func setUseEuropeanNumberFormat(_ enabled: Swift.Bool)
|
|
44
68
|
public struct Biquad {
|
|
45
69
|
public var b0: Swift.Float, b1: Swift.Float, b2: Swift.Float, a1: Swift.Float, a2: Swift.Float
|
|
46
70
|
public init(b0: Swift.Float, b1: Swift.Float, b2: Swift.Float, a1: Swift.Float, a2: Swift.Float)
|
|
@@ -55,6 +79,11 @@ import ObjectiveC.runtime
|
|
|
55
79
|
@objc final public func playWav(_ url: Foundation.URL, markAsLastUtterance: Swift.Bool = true)
|
|
56
80
|
@objc final public func playBuffer(_ buffer: AVFAudio.AVAudioPCMBuffer, markAsLastUtterance: Swift.Bool = true)
|
|
57
81
|
}
|
|
82
|
+
@_inheritsConvenienceInitializers @objc final public class LicenseManager : ObjectiveC.NSObject {
|
|
83
|
+
@objc public static func isLicenseValid(licenseKey: Swift.String) -> Swift.Bool
|
|
84
|
+
@objc override dynamic public init()
|
|
85
|
+
@objc deinit
|
|
86
|
+
}
|
|
58
87
|
@objc public protocol STTDelegate {
|
|
59
88
|
@objc func stt(_ stt: DavoiceTTS.STT, didEmitEvent name: Swift.String, body: [Swift.String : Any]?)
|
|
60
89
|
}
|
|
@@ -94,11 +123,6 @@ import ObjectiveC.runtime
|
|
|
94
123
|
@objc final public func teardown()
|
|
95
124
|
@objc final public func speechRecognizer(_ speechRecognizer: Speech.SFSpeechRecognizer, availabilityDidChange available: Swift.Bool)
|
|
96
125
|
}
|
|
97
|
-
@_inheritsConvenienceInitializers @objc final public class LicenseManager : ObjectiveC.NSObject {
|
|
98
|
-
@objc public static func isLicenseValid(licenseKey: Swift.String) -> Swift.Bool
|
|
99
|
-
@objc override dynamic public init()
|
|
100
|
-
@objc deinit
|
|
101
|
-
}
|
|
102
126
|
public enum SVLogLevel : Swift.Int, Swift.Codable {
|
|
103
127
|
case off, error, warn, info, debug, trace
|
|
104
128
|
public init?(rawValue: Swift.Int)
|
|
@@ -201,19 +225,9 @@ public enum SpeakerVerificationError : Swift.Error, Swift.CustomStringConvertibl
|
|
|
201
225
|
@objc override dynamic public init()
|
|
202
226
|
@objc deinit
|
|
203
227
|
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
public typealias StopEnginePlayback = () -> Swift.Void
|
|
208
|
-
public typealias CurrentEngineProvider = () -> AVFAudio.AVAudioEngine?
|
|
209
|
-
public enum AudioPlaybackHook {
|
|
210
|
-
public static var engineScheduleFile: DavoiceTTS.EngineSchedule?
|
|
211
|
-
public static var isEngineReady: DavoiceTTS.IsEngineReady?
|
|
212
|
-
public static var useOnlyEnginePlayback: DavoiceTTS.useOnlyEnginePlayback?
|
|
213
|
-
public static var stopEnginePlayback: DavoiceTTS.StopEnginePlayback?
|
|
214
|
-
public static var currentEngine: DavoiceTTS.CurrentEngineProvider?
|
|
215
|
-
public static var isMicPaused: (() -> Swift.Bool)?
|
|
216
|
-
}
|
|
228
|
+
extension DavoiceTTS.DaVoiceTTS.NumberFormatStyle : Swift.Equatable {}
|
|
229
|
+
extension DavoiceTTS.DaVoiceTTS.NumberFormatStyle : Swift.Hashable {}
|
|
230
|
+
extension DavoiceTTS.DaVoiceTTS.NumberFormatStyle : Swift.RawRepresentable {}
|
|
217
231
|
extension DavoiceTTS.SVLogLevel : Swift.Equatable {}
|
|
218
232
|
extension DavoiceTTS.SVLogLevel : Swift.Hashable {}
|
|
219
233
|
extension DavoiceTTS.SVLogLevel : Swift.RawRepresentable {}
|
|
@@ -17,6 +17,19 @@ 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 @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers final public class SwiftSoundQueue : ObjectiveC.NSObject, AVFAudio.AVAudioPlayerDelegate {
|
|
21
34
|
@objc deinit
|
|
22
35
|
public static let shared: DavoiceTTS.SwiftSoundQueue
|
|
@@ -37,10 +50,21 @@ import ObjectiveC.runtime
|
|
|
37
50
|
@objc @objcMembers final public class DaVoiceTTS : ObjectiveC.NSObject {
|
|
38
51
|
public struct Config {
|
|
39
52
|
}
|
|
53
|
+
public enum NumberFormatStyle : Swift.Int {
|
|
54
|
+
case us
|
|
55
|
+
case european
|
|
56
|
+
public init?(rawValue: Swift.Int)
|
|
57
|
+
public typealias RawValue = Swift.Int
|
|
58
|
+
public var rawValue: Swift.Int {
|
|
59
|
+
get
|
|
60
|
+
}
|
|
61
|
+
}
|
|
40
62
|
@objc final public var onLastUtteranceFinished: (() -> Swift.Void)?
|
|
41
63
|
@objc deinit
|
|
42
64
|
@objc public static func activateLicense(licenseKey: Swift.String) -> Swift.Bool
|
|
43
65
|
@objc final public func setLicense(licenseKey: Swift.String) -> Swift.Bool
|
|
66
|
+
final public func setNumberFormatStyle(_ style: DavoiceTTS.DaVoiceTTS.NumberFormatStyle)
|
|
67
|
+
@objc final public func setUseEuropeanNumberFormat(_ enabled: Swift.Bool)
|
|
44
68
|
public struct Biquad {
|
|
45
69
|
public var b0: Swift.Float, b1: Swift.Float, b2: Swift.Float, a1: Swift.Float, a2: Swift.Float
|
|
46
70
|
public init(b0: Swift.Float, b1: Swift.Float, b2: Swift.Float, a1: Swift.Float, a2: Swift.Float)
|
|
@@ -55,6 +79,11 @@ import ObjectiveC.runtime
|
|
|
55
79
|
@objc final public func playWav(_ url: Foundation.URL, markAsLastUtterance: Swift.Bool = true)
|
|
56
80
|
@objc final public func playBuffer(_ buffer: AVFAudio.AVAudioPCMBuffer, markAsLastUtterance: Swift.Bool = true)
|
|
57
81
|
}
|
|
82
|
+
@_inheritsConvenienceInitializers @objc final public class LicenseManager : ObjectiveC.NSObject {
|
|
83
|
+
@objc public static func isLicenseValid(licenseKey: Swift.String) -> Swift.Bool
|
|
84
|
+
@objc override dynamic public init()
|
|
85
|
+
@objc deinit
|
|
86
|
+
}
|
|
58
87
|
@objc public protocol STTDelegate {
|
|
59
88
|
@objc func stt(_ stt: DavoiceTTS.STT, didEmitEvent name: Swift.String, body: [Swift.String : Any]?)
|
|
60
89
|
}
|
|
@@ -94,11 +123,6 @@ import ObjectiveC.runtime
|
|
|
94
123
|
@objc final public func teardown()
|
|
95
124
|
@objc final public func speechRecognizer(_ speechRecognizer: Speech.SFSpeechRecognizer, availabilityDidChange available: Swift.Bool)
|
|
96
125
|
}
|
|
97
|
-
@_inheritsConvenienceInitializers @objc final public class LicenseManager : ObjectiveC.NSObject {
|
|
98
|
-
@objc public static func isLicenseValid(licenseKey: Swift.String) -> Swift.Bool
|
|
99
|
-
@objc override dynamic public init()
|
|
100
|
-
@objc deinit
|
|
101
|
-
}
|
|
102
126
|
public enum SVLogLevel : Swift.Int, Swift.Codable {
|
|
103
127
|
case off, error, warn, info, debug, trace
|
|
104
128
|
public init?(rawValue: Swift.Int)
|
|
@@ -201,19 +225,9 @@ public enum SpeakerVerificationError : Swift.Error, Swift.CustomStringConvertibl
|
|
|
201
225
|
@objc override dynamic public init()
|
|
202
226
|
@objc deinit
|
|
203
227
|
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
public typealias StopEnginePlayback = () -> Swift.Void
|
|
208
|
-
public typealias CurrentEngineProvider = () -> AVFAudio.AVAudioEngine?
|
|
209
|
-
public enum AudioPlaybackHook {
|
|
210
|
-
public static var engineScheduleFile: DavoiceTTS.EngineSchedule?
|
|
211
|
-
public static var isEngineReady: DavoiceTTS.IsEngineReady?
|
|
212
|
-
public static var useOnlyEnginePlayback: DavoiceTTS.useOnlyEnginePlayback?
|
|
213
|
-
public static var stopEnginePlayback: DavoiceTTS.StopEnginePlayback?
|
|
214
|
-
public static var currentEngine: DavoiceTTS.CurrentEngineProvider?
|
|
215
|
-
public static var isMicPaused: (() -> Swift.Bool)?
|
|
216
|
-
}
|
|
228
|
+
extension DavoiceTTS.DaVoiceTTS.NumberFormatStyle : Swift.Equatable {}
|
|
229
|
+
extension DavoiceTTS.DaVoiceTTS.NumberFormatStyle : Swift.Hashable {}
|
|
230
|
+
extension DavoiceTTS.DaVoiceTTS.NumberFormatStyle : Swift.RawRepresentable {}
|
|
217
231
|
extension DavoiceTTS.SVLogLevel : Swift.Equatable {}
|
|
218
232
|
extension DavoiceTTS.SVLogLevel : Swift.Hashable {}
|
|
219
233
|
extension DavoiceTTS.SVLogLevel : Swift.RawRepresentable {}
|
|
Binary file
|
|
@@ -316,6 +316,7 @@ SWIFT_CLASS("_TtC10DavoiceTTS10DaVoiceTTS")
|
|
|
316
316
|
@property (nonatomic, copy) void (^ _Nullable onLastUtteranceFinished)(void);
|
|
317
317
|
+ (BOOL)activateLicenseWithLicenseKey:(NSString * _Nonnull)licenseKey SWIFT_WARN_UNUSED_RESULT;
|
|
318
318
|
- (BOOL)setLicenseWithLicenseKey:(NSString * _Nonnull)licenseKey SWIFT_WARN_UNUSED_RESULT;
|
|
319
|
+
- (void)setUseEuropeanNumberFormat:(BOOL)enabled;
|
|
319
320
|
- (nullable instancetype)initWithModel:(NSURL * _Nonnull)model error:(NSError * _Nullable * _Nullable)error OBJC_DESIGNATED_INITIALIZER;
|
|
320
321
|
/// Immediately stop speaking: cancels future synthesis work and flushes all playback.
|
|
321
322
|
- (void)stopSpeaking;
|
|
@@ -739,6 +740,7 @@ SWIFT_CLASS("_TtC10DavoiceTTS10DaVoiceTTS")
|
|
|
739
740
|
@property (nonatomic, copy) void (^ _Nullable onLastUtteranceFinished)(void);
|
|
740
741
|
+ (BOOL)activateLicenseWithLicenseKey:(NSString * _Nonnull)licenseKey SWIFT_WARN_UNUSED_RESULT;
|
|
741
742
|
- (BOOL)setLicenseWithLicenseKey:(NSString * _Nonnull)licenseKey SWIFT_WARN_UNUSED_RESULT;
|
|
743
|
+
- (void)setUseEuropeanNumberFormat:(BOOL)enabled;
|
|
742
744
|
- (nullable instancetype)initWithModel:(NSURL * _Nonnull)model error:(NSError * _Nullable * _Nullable)error OBJC_DESIGNATED_INITIALIZER;
|
|
743
745
|
/// Immediately stop speaking: cancels future synthesis work and flushes all playback.
|
|
744
746
|
- (void)stopSpeaking;
|