react-native-davoice-tts 1.0.236 → 1.0.238
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/SpeechBridge/SpeechBridge.m +1 -1
- 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 +6 -1
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.abi.json +2515 -2328
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.private.swiftinterface +34 -30
- 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 -30
- 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 +12 -2
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.abi.json +2864 -2677
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +17 -13
- 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 +17 -13
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.abi.json +2864 -2677
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +17 -13
- 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 +17 -13
- 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.ts +15 -28
|
@@ -14,25 +14,17 @@ import _StringProcessing
|
|
|
14
14
|
import _SwiftConcurrencyShims
|
|
15
15
|
import onnxruntime_objc
|
|
16
16
|
import phonemes
|
|
17
|
-
@
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
@objc final public func startSpeech(localeStr: Swift.String?)
|
|
29
|
-
@objc final public func stopSpeech(_ completion: ((Swift.Bool) -> Swift.Void)? = nil)
|
|
30
|
-
@objc final public func cancelSpeech(_ completion: ((Swift.Bool) -> Swift.Void)? = nil)
|
|
31
|
-
@objc final public func destroySpeech(_ completion: ((Swift.Bool) -> Swift.Void)? = nil)
|
|
32
|
-
@objc final public func teardown()
|
|
33
|
-
@objc final public func speechRecognizer(_ speechRecognizer: Speech.SFSpeechRecognizer, availabilityDidChange available: Swift.Bool)
|
|
34
|
-
@objc override dynamic public init()
|
|
35
|
-
@objc deinit
|
|
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 typealias CurrentEngineProvider = () -> AVFAudio.AVAudioEngine?
|
|
22
|
+
public enum AudioPlaybackHook {
|
|
23
|
+
public static var engineScheduleFile: DavoiceTTS.EngineSchedule?
|
|
24
|
+
public static var isEngineReady: DavoiceTTS.IsEngineReady?
|
|
25
|
+
public static var useOnlyEnginePlayback: DavoiceTTS.useOnlyEnginePlayback?
|
|
26
|
+
public static var stopEnginePlayback: DavoiceTTS.StopEnginePlayback?
|
|
27
|
+
public static var currentEngine: DavoiceTTS.CurrentEngineProvider?
|
|
36
28
|
}
|
|
37
29
|
@objc @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers final public class SwiftSoundQueue : ObjectiveC.NSObject, AVFAudio.AVAudioPlayerDelegate {
|
|
38
30
|
@objc deinit
|
|
@@ -48,6 +40,7 @@ import phonemes
|
|
|
48
40
|
case named(Swift.String)
|
|
49
41
|
}
|
|
50
42
|
@objc final public func audioPlayerDidFinishPlaying(_ p: AVFAudio.AVAudioPlayer, successfully ok: Swift.Bool)
|
|
43
|
+
final public func activatePlaybackOnlySession()
|
|
51
44
|
final public func activateSpeaker()
|
|
52
45
|
}
|
|
53
46
|
@objc @objcMembers final public class DaVoiceTTS : ObjectiveC.NSObject {
|
|
@@ -68,15 +61,26 @@ import phonemes
|
|
|
68
61
|
@objc final public func playWav(_ url: Foundation.URL, markAsLastUtterance: Swift.Bool = true)
|
|
69
62
|
@objc final public func playBuffer(_ buffer: AVFAudio.AVAudioPCMBuffer, markAsLastUtterance: Swift.Bool = true)
|
|
70
63
|
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
public
|
|
75
|
-
public
|
|
76
|
-
public
|
|
77
|
-
public
|
|
78
|
-
public static
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
public
|
|
64
|
+
@objc public protocol STTDelegate {
|
|
65
|
+
@objc func stt(_ stt: DavoiceTTS.STT, didEmitEvent name: Swift.String, body: [Swift.String : Any]?)
|
|
66
|
+
}
|
|
67
|
+
@objc @_inheritsConvenienceInitializers @objcMembers final public class STT : ObjectiveC.NSObject, Speech.SFSpeechRecognizerDelegate {
|
|
68
|
+
@objc weak final public var delegate: (any DavoiceTTS.STTDelegate)?
|
|
69
|
+
@objc final public var continuous: Swift.Bool
|
|
70
|
+
@objc final public var aecEnabled: Swift.Bool
|
|
71
|
+
@objc public static let supportedEvents: [Swift.String]
|
|
72
|
+
@objc final public func pauseMicrophone()
|
|
73
|
+
@objc final public func unPauseMicrophone()
|
|
74
|
+
@objc final public func setAECEnabled(_ enabled: Swift.Bool)
|
|
75
|
+
@objc final public func isAECEnabled() -> Swift.Bool
|
|
76
|
+
@objc final public func isSpeechAvailable(_ completion: @escaping (Swift.Bool) -> Swift.Void)
|
|
77
|
+
@objc final public func isRecognizing() -> Swift.Bool
|
|
78
|
+
@objc final public func startSpeech(localeStr: Swift.String?)
|
|
79
|
+
@objc final public func stopSpeech(_ completion: ((Swift.Bool) -> Swift.Void)? = nil)
|
|
80
|
+
@objc final public func cancelSpeech(_ completion: ((Swift.Bool) -> Swift.Void)? = nil)
|
|
81
|
+
@objc final public func destroySpeech(_ completion: ((Swift.Bool) -> Swift.Void)? = nil)
|
|
82
|
+
@objc final public func teardown()
|
|
83
|
+
@objc final public func speechRecognizer(_ speechRecognizer: Speech.SFSpeechRecognizer, availabilityDidChange available: Swift.Bool)
|
|
84
|
+
@objc override dynamic public init()
|
|
85
|
+
@objc deinit
|
|
82
86
|
}
|
|
Binary file
|
|
@@ -14,25 +14,17 @@ import _StringProcessing
|
|
|
14
14
|
import _SwiftConcurrencyShims
|
|
15
15
|
import onnxruntime_objc
|
|
16
16
|
import phonemes
|
|
17
|
-
@
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
@objc final public func startSpeech(localeStr: Swift.String?)
|
|
29
|
-
@objc final public func stopSpeech(_ completion: ((Swift.Bool) -> Swift.Void)? = nil)
|
|
30
|
-
@objc final public func cancelSpeech(_ completion: ((Swift.Bool) -> Swift.Void)? = nil)
|
|
31
|
-
@objc final public func destroySpeech(_ completion: ((Swift.Bool) -> Swift.Void)? = nil)
|
|
32
|
-
@objc final public func teardown()
|
|
33
|
-
@objc final public func speechRecognizer(_ speechRecognizer: Speech.SFSpeechRecognizer, availabilityDidChange available: Swift.Bool)
|
|
34
|
-
@objc override dynamic public init()
|
|
35
|
-
@objc deinit
|
|
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 typealias CurrentEngineProvider = () -> AVFAudio.AVAudioEngine?
|
|
22
|
+
public enum AudioPlaybackHook {
|
|
23
|
+
public static var engineScheduleFile: DavoiceTTS.EngineSchedule?
|
|
24
|
+
public static var isEngineReady: DavoiceTTS.IsEngineReady?
|
|
25
|
+
public static var useOnlyEnginePlayback: DavoiceTTS.useOnlyEnginePlayback?
|
|
26
|
+
public static var stopEnginePlayback: DavoiceTTS.StopEnginePlayback?
|
|
27
|
+
public static var currentEngine: DavoiceTTS.CurrentEngineProvider?
|
|
36
28
|
}
|
|
37
29
|
@objc @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers final public class SwiftSoundQueue : ObjectiveC.NSObject, AVFAudio.AVAudioPlayerDelegate {
|
|
38
30
|
@objc deinit
|
|
@@ -48,6 +40,7 @@ import phonemes
|
|
|
48
40
|
case named(Swift.String)
|
|
49
41
|
}
|
|
50
42
|
@objc final public func audioPlayerDidFinishPlaying(_ p: AVFAudio.AVAudioPlayer, successfully ok: Swift.Bool)
|
|
43
|
+
final public func activatePlaybackOnlySession()
|
|
51
44
|
final public func activateSpeaker()
|
|
52
45
|
}
|
|
53
46
|
@objc @objcMembers final public class DaVoiceTTS : ObjectiveC.NSObject {
|
|
@@ -68,15 +61,26 @@ import phonemes
|
|
|
68
61
|
@objc final public func playWav(_ url: Foundation.URL, markAsLastUtterance: Swift.Bool = true)
|
|
69
62
|
@objc final public func playBuffer(_ buffer: AVFAudio.AVAudioPCMBuffer, markAsLastUtterance: Swift.Bool = true)
|
|
70
63
|
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
public
|
|
75
|
-
public
|
|
76
|
-
public
|
|
77
|
-
public
|
|
78
|
-
public static
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
public
|
|
64
|
+
@objc public protocol STTDelegate {
|
|
65
|
+
@objc func stt(_ stt: DavoiceTTS.STT, didEmitEvent name: Swift.String, body: [Swift.String : Any]?)
|
|
66
|
+
}
|
|
67
|
+
@objc @_inheritsConvenienceInitializers @objcMembers final public class STT : ObjectiveC.NSObject, Speech.SFSpeechRecognizerDelegate {
|
|
68
|
+
@objc weak final public var delegate: (any DavoiceTTS.STTDelegate)?
|
|
69
|
+
@objc final public var continuous: Swift.Bool
|
|
70
|
+
@objc final public var aecEnabled: Swift.Bool
|
|
71
|
+
@objc public static let supportedEvents: [Swift.String]
|
|
72
|
+
@objc final public func pauseMicrophone()
|
|
73
|
+
@objc final public func unPauseMicrophone()
|
|
74
|
+
@objc final public func setAECEnabled(_ enabled: Swift.Bool)
|
|
75
|
+
@objc final public func isAECEnabled() -> Swift.Bool
|
|
76
|
+
@objc final public func isSpeechAvailable(_ completion: @escaping (Swift.Bool) -> Swift.Void)
|
|
77
|
+
@objc final public func isRecognizing() -> Swift.Bool
|
|
78
|
+
@objc final public func startSpeech(localeStr: Swift.String?)
|
|
79
|
+
@objc final public func stopSpeech(_ completion: ((Swift.Bool) -> Swift.Void)? = nil)
|
|
80
|
+
@objc final public func cancelSpeech(_ completion: ((Swift.Bool) -> Swift.Void)? = nil)
|
|
81
|
+
@objc final public func destroySpeech(_ completion: ((Swift.Bool) -> Swift.Void)? = nil)
|
|
82
|
+
@objc final public func teardown()
|
|
83
|
+
@objc final public func speechRecognizer(_ speechRecognizer: Speech.SFSpeechRecognizer, availabilityDidChange available: Swift.Bool)
|
|
84
|
+
@objc override dynamic public init()
|
|
85
|
+
@objc deinit
|
|
82
86
|
}
|
|
Binary file
|
|
@@ -339,10 +339,15 @@ SWIFT_CLASS("_TtC10DavoiceTTS3STT")
|
|
|
339
339
|
@interface STT : NSObject <SFSpeechRecognizerDelegate>
|
|
340
340
|
@property (nonatomic, weak) id <STTDelegate> _Nullable delegate;
|
|
341
341
|
@property (nonatomic) BOOL continuous;
|
|
342
|
+
@property (nonatomic) BOOL aecEnabled;
|
|
342
343
|
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSArray<NSString *> * _Nonnull supportedEvents;)
|
|
343
344
|
+ (NSArray<NSString *> * _Nonnull)supportedEvents SWIFT_WARN_UNUSED_RESULT;
|
|
344
|
-
- (void)unPauseMicrophone;
|
|
345
345
|
- (void)pauseMicrophone;
|
|
346
|
+
- (void)unPauseMicrophone;
|
|
347
|
+
/// Enable/disable iOS voice-processing (AEC + ducking).
|
|
348
|
+
/// If STT is already active, we rebuild the session/graph so it takes effect.
|
|
349
|
+
- (void)setAECEnabled:(BOOL)enabled;
|
|
350
|
+
- (BOOL)isAECEnabled SWIFT_WARN_UNUSED_RESULT;
|
|
346
351
|
- (void)isSpeechAvailable:(void (^ _Nonnull)(BOOL))completion;
|
|
347
352
|
- (BOOL)isRecognizing SWIFT_WARN_UNUSED_RESULT;
|
|
348
353
|
- (void)startSpeechWithLocaleStr:(NSString * _Nullable)localeStr;
|
|
@@ -716,10 +721,15 @@ SWIFT_CLASS("_TtC10DavoiceTTS3STT")
|
|
|
716
721
|
@interface STT : NSObject <SFSpeechRecognizerDelegate>
|
|
717
722
|
@property (nonatomic, weak) id <STTDelegate> _Nullable delegate;
|
|
718
723
|
@property (nonatomic) BOOL continuous;
|
|
724
|
+
@property (nonatomic) BOOL aecEnabled;
|
|
719
725
|
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSArray<NSString *> * _Nonnull supportedEvents;)
|
|
720
726
|
+ (NSArray<NSString *> * _Nonnull)supportedEvents SWIFT_WARN_UNUSED_RESULT;
|
|
721
|
-
- (void)unPauseMicrophone;
|
|
722
727
|
- (void)pauseMicrophone;
|
|
728
|
+
- (void)unPauseMicrophone;
|
|
729
|
+
/// Enable/disable iOS voice-processing (AEC + ducking).
|
|
730
|
+
/// If STT is already active, we rebuild the session/graph so it takes effect.
|
|
731
|
+
- (void)setAECEnabled:(BOOL)enabled;
|
|
732
|
+
- (BOOL)isAECEnabled SWIFT_WARN_UNUSED_RESULT;
|
|
723
733
|
- (void)isSpeechAvailable:(void (^ _Nonnull)(BOOL))completion;
|
|
724
734
|
- (BOOL)isRecognizing SWIFT_WARN_UNUSED_RESULT;
|
|
725
735
|
- (void)startSpeechWithLocaleStr:(NSString * _Nullable)localeStr;
|