react-native-davoice-tts 1.0.200 → 1.0.201
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 +12 -0
- package/ios/SpeechBridge/SpeechBridge.m +16 -0
- 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 +2 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.abi.json +1849 -1797
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.private.swiftinterface +12 -10
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.swiftinterface +12 -10
- 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 +4 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.abi.json +1550 -1498
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +12 -10
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.swiftinterface +12 -10
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.abi.json +1550 -1498
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +12 -10
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +12 -10
- 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 +32 -0
|
@@ -14,16 +14,6 @@ import _StringProcessing
|
|
|
14
14
|
import _SwiftConcurrencyShims
|
|
15
15
|
import onnxruntime_objc
|
|
16
16
|
import phonemes
|
|
17
|
-
public typealias EngineSchedule = (_ url: Foundation.URL, _ onDone: @escaping () -> Swift.Void) -> Swift.Bool
|
|
18
|
-
public typealias IsEngineReady = () -> Swift.Bool
|
|
19
|
-
public typealias useOnlyEnginePlayback = () -> Swift.Bool
|
|
20
|
-
public typealias StopEnginePlayback = () -> Swift.Void
|
|
21
|
-
public enum AudioPlaybackHook {
|
|
22
|
-
public static var engineScheduleFile: DavoiceTTS.EngineSchedule?
|
|
23
|
-
public static var isEngineReady: DavoiceTTS.IsEngineReady?
|
|
24
|
-
public static var useOnlyEnginePlayback: DavoiceTTS.useOnlyEnginePlayback?
|
|
25
|
-
public static var stopEnginePlayback: DavoiceTTS.StopEnginePlayback?
|
|
26
|
-
}
|
|
27
17
|
@objc @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers final public class SwiftSoundQueue : ObjectiveC.NSObject, AVFAudio.AVAudioPlayerDelegate {
|
|
28
18
|
@objc deinit
|
|
29
19
|
public static let shared: DavoiceTTS.SwiftSoundQueue
|
|
@@ -61,6 +51,8 @@ public enum AudioPlaybackHook {
|
|
|
61
51
|
@objc public static let supportedEvents: [Swift.String]
|
|
62
52
|
@objc final public func isSpeechAvailable(_ completion: @escaping (Swift.Bool) -> Swift.Void)
|
|
63
53
|
@objc final public func isRecognizing() -> Swift.Bool
|
|
54
|
+
@objc final public func pauseMicrophone()
|
|
55
|
+
@objc final public func unPauseMicrophone()
|
|
64
56
|
@objc final public func startSpeech(localeStr: Swift.String?)
|
|
65
57
|
@objc final public func stopSpeech(_ completion: ((Swift.Bool) -> Swift.Void)? = nil)
|
|
66
58
|
@objc final public func cancelSpeech(_ completion: ((Swift.Bool) -> Swift.Void)? = nil)
|
|
@@ -70,3 +62,13 @@ public enum AudioPlaybackHook {
|
|
|
70
62
|
@objc override dynamic public init()
|
|
71
63
|
@objc deinit
|
|
72
64
|
}
|
|
65
|
+
public typealias EngineSchedule = (_ url: Foundation.URL, _ onDone: @escaping () -> Swift.Void) -> Swift.Bool
|
|
66
|
+
public typealias IsEngineReady = () -> Swift.Bool
|
|
67
|
+
public typealias useOnlyEnginePlayback = () -> Swift.Bool
|
|
68
|
+
public typealias StopEnginePlayback = () -> Swift.Void
|
|
69
|
+
public enum AudioPlaybackHook {
|
|
70
|
+
public static var engineScheduleFile: DavoiceTTS.EngineSchedule?
|
|
71
|
+
public static var isEngineReady: DavoiceTTS.IsEngineReady?
|
|
72
|
+
public static var useOnlyEnginePlayback: DavoiceTTS.useOnlyEnginePlayback?
|
|
73
|
+
public static var stopEnginePlayback: DavoiceTTS.StopEnginePlayback?
|
|
74
|
+
}
|
|
@@ -14,16 +14,6 @@ import _StringProcessing
|
|
|
14
14
|
import _SwiftConcurrencyShims
|
|
15
15
|
import onnxruntime_objc
|
|
16
16
|
import phonemes
|
|
17
|
-
public typealias EngineSchedule = (_ url: Foundation.URL, _ onDone: @escaping () -> Swift.Void) -> Swift.Bool
|
|
18
|
-
public typealias IsEngineReady = () -> Swift.Bool
|
|
19
|
-
public typealias useOnlyEnginePlayback = () -> Swift.Bool
|
|
20
|
-
public typealias StopEnginePlayback = () -> Swift.Void
|
|
21
|
-
public enum AudioPlaybackHook {
|
|
22
|
-
public static var engineScheduleFile: DavoiceTTS.EngineSchedule?
|
|
23
|
-
public static var isEngineReady: DavoiceTTS.IsEngineReady?
|
|
24
|
-
public static var useOnlyEnginePlayback: DavoiceTTS.useOnlyEnginePlayback?
|
|
25
|
-
public static var stopEnginePlayback: DavoiceTTS.StopEnginePlayback?
|
|
26
|
-
}
|
|
27
17
|
@objc @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers final public class SwiftSoundQueue : ObjectiveC.NSObject, AVFAudio.AVAudioPlayerDelegate {
|
|
28
18
|
@objc deinit
|
|
29
19
|
public static let shared: DavoiceTTS.SwiftSoundQueue
|
|
@@ -61,6 +51,8 @@ public enum AudioPlaybackHook {
|
|
|
61
51
|
@objc public static let supportedEvents: [Swift.String]
|
|
62
52
|
@objc final public func isSpeechAvailable(_ completion: @escaping (Swift.Bool) -> Swift.Void)
|
|
63
53
|
@objc final public func isRecognizing() -> Swift.Bool
|
|
54
|
+
@objc final public func pauseMicrophone()
|
|
55
|
+
@objc final public func unPauseMicrophone()
|
|
64
56
|
@objc final public func startSpeech(localeStr: Swift.String?)
|
|
65
57
|
@objc final public func stopSpeech(_ completion: ((Swift.Bool) -> Swift.Void)? = nil)
|
|
66
58
|
@objc final public func cancelSpeech(_ completion: ((Swift.Bool) -> Swift.Void)? = nil)
|
|
@@ -70,3 +62,13 @@ public enum AudioPlaybackHook {
|
|
|
70
62
|
@objc override dynamic public init()
|
|
71
63
|
@objc deinit
|
|
72
64
|
}
|
|
65
|
+
public typealias EngineSchedule = (_ url: Foundation.URL, _ onDone: @escaping () -> Swift.Void) -> Swift.Bool
|
|
66
|
+
public typealias IsEngineReady = () -> Swift.Bool
|
|
67
|
+
public typealias useOnlyEnginePlayback = () -> Swift.Bool
|
|
68
|
+
public typealias StopEnginePlayback = () -> Swift.Void
|
|
69
|
+
public enum AudioPlaybackHook {
|
|
70
|
+
public static var engineScheduleFile: DavoiceTTS.EngineSchedule?
|
|
71
|
+
public static var isEngineReady: DavoiceTTS.IsEngineReady?
|
|
72
|
+
public static var useOnlyEnginePlayback: DavoiceTTS.useOnlyEnginePlayback?
|
|
73
|
+
public static var stopEnginePlayback: DavoiceTTS.StopEnginePlayback?
|
|
74
|
+
}
|
|
Binary file
|
|
@@ -336,6 +336,8 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSArray<NSStri
|
|
|
336
336
|
+ (NSArray<NSString *> * _Nonnull)supportedEvents SWIFT_WARN_UNUSED_RESULT;
|
|
337
337
|
- (void)isSpeechAvailable:(void (^ _Nonnull)(BOOL))completion;
|
|
338
338
|
- (BOOL)isRecognizing SWIFT_WARN_UNUSED_RESULT;
|
|
339
|
+
- (void)pauseMicrophone;
|
|
340
|
+
- (void)unPauseMicrophone;
|
|
339
341
|
- (void)startSpeechWithLocaleStr:(NSString * _Nullable)localeStr;
|
|
340
342
|
- (void)stopSpeech:(void (^ _Nullable)(BOOL))completion;
|
|
341
343
|
- (void)cancelSpeech:(void (^ _Nullable)(BOOL))completion;
|
|
@@ -704,6 +706,8 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSArray<NSStri
|
|
|
704
706
|
+ (NSArray<NSString *> * _Nonnull)supportedEvents SWIFT_WARN_UNUSED_RESULT;
|
|
705
707
|
- (void)isSpeechAvailable:(void (^ _Nonnull)(BOOL))completion;
|
|
706
708
|
- (BOOL)isRecognizing SWIFT_WARN_UNUSED_RESULT;
|
|
709
|
+
- (void)pauseMicrophone;
|
|
710
|
+
- (void)unPauseMicrophone;
|
|
707
711
|
- (void)startSpeechWithLocaleStr:(NSString * _Nullable)localeStr;
|
|
708
712
|
- (void)stopSpeech:(void (^ _Nullable)(BOOL))completion;
|
|
709
713
|
- (void)cancelSpeech:(void (^ _Nullable)(BOOL))completion;
|