react-native-davoice-tts 1.0.395 → 1.0.397
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/DaVoiceTTSBridge.m +75 -24
- 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 +23 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.abi.json +1299 -380
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.private.swiftinterface +19 -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 +19 -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 +46 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.abi.json +1299 -380
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +19 -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 +19 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.abi.json +1299 -380
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +19 -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 +19 -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 +263 -0
- package/speech/index.ts +50 -29
|
@@ -39,6 +39,10 @@ public enum AudioPlaybackHook {
|
|
|
39
39
|
public static var resumeEngineAfterAudioSessionCycle: DavoiceTTS.ResumeEngineAfterAudioSessionCycle?
|
|
40
40
|
public static var isMicPaused: (() -> Swift.Bool)?
|
|
41
41
|
public static var useOSDefaultSamplingRate: (() -> Swift.Bool)?
|
|
42
|
+
public static var sttLegacyAECState: (() -> (engineActive: Swift.Bool, voiceProcessingActive: Swift.Bool))?
|
|
43
|
+
public static var isTTSPlayingOnSTTEngine: Swift.Bool {
|
|
44
|
+
get
|
|
45
|
+
}
|
|
42
46
|
}
|
|
43
47
|
@objc public protocol STTDelegate {
|
|
44
48
|
#if compiler(>=5.3) && $NonescapableTypes
|
|
@@ -159,6 +163,21 @@ public enum AudioPlaybackHook {
|
|
|
159
163
|
@objc final public func playWav(_ url: Foundation.URL, markAsLastUtterance: Swift.Bool = true)
|
|
160
164
|
@objc final public func playBuffer(_ buffer: AVFAudio.AVAudioPCMBuffer, markAsLastUtterance: Swift.Bool = true)
|
|
161
165
|
}
|
|
166
|
+
@_inheritsConvenienceInitializers @objc final public class DaVoiceLegacyAEC : ObjectiveC.NSObject {
|
|
167
|
+
@objc public static var isEnabled: Swift.Bool {
|
|
168
|
+
@objc get
|
|
169
|
+
@objc set
|
|
170
|
+
}
|
|
171
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
172
|
+
public static var externalListener: ((AVFAudio.AVAudioPCMBuffer) -> Swift.Void)? {
|
|
173
|
+
get
|
|
174
|
+
set
|
|
175
|
+
}
|
|
176
|
+
#endif
|
|
177
|
+
@objc public static func deviceHasSessionLevelAEC(_ session: AVFAudio.AVAudioSession = .sharedInstance()) -> Swift.Bool
|
|
178
|
+
@objc override dynamic public init()
|
|
179
|
+
@objc deinit
|
|
180
|
+
}
|
|
162
181
|
@_inheritsConvenienceInitializers @objc final public class LicenseManager : ObjectiveC.NSObject {
|
|
163
182
|
@objc public static func isLicenseValid(licenseKey: Swift.String) -> Swift.Bool
|
|
164
183
|
@objc override dynamic public init()
|
|
Binary file
|
|
@@ -39,6 +39,10 @@ public enum AudioPlaybackHook {
|
|
|
39
39
|
public static var resumeEngineAfterAudioSessionCycle: DavoiceTTS.ResumeEngineAfterAudioSessionCycle?
|
|
40
40
|
public static var isMicPaused: (() -> Swift.Bool)?
|
|
41
41
|
public static var useOSDefaultSamplingRate: (() -> Swift.Bool)?
|
|
42
|
+
public static var sttLegacyAECState: (() -> (engineActive: Swift.Bool, voiceProcessingActive: Swift.Bool))?
|
|
43
|
+
public static var isTTSPlayingOnSTTEngine: Swift.Bool {
|
|
44
|
+
get
|
|
45
|
+
}
|
|
42
46
|
}
|
|
43
47
|
@objc public protocol STTDelegate {
|
|
44
48
|
#if compiler(>=5.3) && $NonescapableTypes
|
|
@@ -159,6 +163,21 @@ public enum AudioPlaybackHook {
|
|
|
159
163
|
@objc final public func playWav(_ url: Foundation.URL, markAsLastUtterance: Swift.Bool = true)
|
|
160
164
|
@objc final public func playBuffer(_ buffer: AVFAudio.AVAudioPCMBuffer, markAsLastUtterance: Swift.Bool = true)
|
|
161
165
|
}
|
|
166
|
+
@_inheritsConvenienceInitializers @objc final public class DaVoiceLegacyAEC : ObjectiveC.NSObject {
|
|
167
|
+
@objc public static var isEnabled: Swift.Bool {
|
|
168
|
+
@objc get
|
|
169
|
+
@objc set
|
|
170
|
+
}
|
|
171
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
172
|
+
public static var externalListener: ((AVFAudio.AVAudioPCMBuffer) -> Swift.Void)? {
|
|
173
|
+
get
|
|
174
|
+
set
|
|
175
|
+
}
|
|
176
|
+
#endif
|
|
177
|
+
@objc public static func deviceHasSessionLevelAEC(_ session: AVFAudio.AVAudioSession = .sharedInstance()) -> Swift.Bool
|
|
178
|
+
@objc override dynamic public init()
|
|
179
|
+
@objc deinit
|
|
180
|
+
}
|
|
162
181
|
@_inheritsConvenienceInitializers @objc final public class LicenseManager : ObjectiveC.NSObject {
|
|
163
182
|
@objc public static func isLicenseValid(licenseKey: Swift.String) -> Swift.Bool
|
|
164
183
|
@objc override dynamic public init()
|
|
Binary file
|
|
@@ -317,6 +317,29 @@ SWIFT_CLASS("_TtC10DavoiceTTS25DaVoiceAudioRoutingConfig")
|
|
|
317
317
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
318
318
|
@end
|
|
319
319
|
|
|
320
|
+
@class AVAudioSession;
|
|
321
|
+
/// Echo cancellation for iPhones WITHOUT Apple’s session-level echo-cancelled
|
|
322
|
+
/// input (<code>AVAudioSession.isEchoCancelledInputAvailable</code>, iOS 18.2+ on
|
|
323
|
+
/// supported hardware). On those devices AEC only exists inside an
|
|
324
|
+
/// AVAudioEngine with voice processing on, and it only cancels audio played
|
|
325
|
+
/// through that same engine – so TTS must play through the engine whose mic
|
|
326
|
+
/// input the listeners hear. See pocketTTS/AECSupportIOS.md.
|
|
327
|
+
/// Nothing here runs on devices WITH session-level AEC, or when AEC isn’t
|
|
328
|
+
/// requested: every caller then takes its exact pre-existing path.
|
|
329
|
+
SWIFT_CLASS("_TtC10DavoiceTTS16DaVoiceLegacyAEC")
|
|
330
|
+
@interface DaVoiceLegacyAEC : NSObject
|
|
331
|
+
/// Kill switch for the old-iPhone fallback (default true).
|
|
332
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class) BOOL isEnabled;)
|
|
333
|
+
+ (BOOL)isEnabled SWIFT_WARN_UNUSED_RESULT;
|
|
334
|
+
+ (void)setIsEnabled:(BOOL)newValue;
|
|
335
|
+
/// True when this device/OS offers session-level AEC. Sticky: once seen
|
|
336
|
+
/// true in this process it stays true, so a transient route/category where
|
|
337
|
+
/// iOS reports it unavailable can never switch a newer iPhone onto the
|
|
338
|
+
/// fallback path.
|
|
339
|
+
+ (BOOL)deviceHasSessionLevelAEC:(AVAudioSession * _Nonnull)session SWIFT_WARN_UNUSED_RESULT;
|
|
340
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
341
|
+
@end
|
|
342
|
+
|
|
320
343
|
@class NSURL;
|
|
321
344
|
@class NSUUID;
|
|
322
345
|
@class AVAudioPCMBuffer;
|
|
@@ -755,6 +778,29 @@ SWIFT_CLASS("_TtC10DavoiceTTS25DaVoiceAudioRoutingConfig")
|
|
|
755
778
|
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
756
779
|
@end
|
|
757
780
|
|
|
781
|
+
@class AVAudioSession;
|
|
782
|
+
/// Echo cancellation for iPhones WITHOUT Apple’s session-level echo-cancelled
|
|
783
|
+
/// input (<code>AVAudioSession.isEchoCancelledInputAvailable</code>, iOS 18.2+ on
|
|
784
|
+
/// supported hardware). On those devices AEC only exists inside an
|
|
785
|
+
/// AVAudioEngine with voice processing on, and it only cancels audio played
|
|
786
|
+
/// through that same engine – so TTS must play through the engine whose mic
|
|
787
|
+
/// input the listeners hear. See pocketTTS/AECSupportIOS.md.
|
|
788
|
+
/// Nothing here runs on devices WITH session-level AEC, or when AEC isn’t
|
|
789
|
+
/// requested: every caller then takes its exact pre-existing path.
|
|
790
|
+
SWIFT_CLASS("_TtC10DavoiceTTS16DaVoiceLegacyAEC")
|
|
791
|
+
@interface DaVoiceLegacyAEC : NSObject
|
|
792
|
+
/// Kill switch for the old-iPhone fallback (default true).
|
|
793
|
+
SWIFT_CLASS_PROPERTY(@property (nonatomic, class) BOOL isEnabled;)
|
|
794
|
+
+ (BOOL)isEnabled SWIFT_WARN_UNUSED_RESULT;
|
|
795
|
+
+ (void)setIsEnabled:(BOOL)newValue;
|
|
796
|
+
/// True when this device/OS offers session-level AEC. Sticky: once seen
|
|
797
|
+
/// true in this process it stays true, so a transient route/category where
|
|
798
|
+
/// iOS reports it unavailable can never switch a newer iPhone onto the
|
|
799
|
+
/// fallback path.
|
|
800
|
+
+ (BOOL)deviceHasSessionLevelAEC:(AVAudioSession * _Nonnull)session SWIFT_WARN_UNUSED_RESULT;
|
|
801
|
+
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
|
|
802
|
+
@end
|
|
803
|
+
|
|
758
804
|
@class NSURL;
|
|
759
805
|
@class NSUUID;
|
|
760
806
|
@class AVAudioPCMBuffer;
|