react-native-davoice-tts 1.0.394 → 1.0.396
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/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 +23 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.abi.json +1068 -354
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.private.swiftinterface +15 -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 +15 -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 +1068 -354
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +15 -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 +15 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.abi.json +1068 -354
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +15 -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 +15 -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
|
@@ -159,6 +159,21 @@ public enum AudioPlaybackHook {
|
|
|
159
159
|
@objc final public func playWav(_ url: Foundation.URL, markAsLastUtterance: Swift.Bool = true)
|
|
160
160
|
@objc final public func playBuffer(_ buffer: AVFAudio.AVAudioPCMBuffer, markAsLastUtterance: Swift.Bool = true)
|
|
161
161
|
}
|
|
162
|
+
@_inheritsConvenienceInitializers @objc final public class DaVoiceLegacyAEC : ObjectiveC.NSObject {
|
|
163
|
+
@objc public static var isEnabled: Swift.Bool {
|
|
164
|
+
@objc get
|
|
165
|
+
@objc set
|
|
166
|
+
}
|
|
167
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
168
|
+
public static var externalListener: ((AVFAudio.AVAudioPCMBuffer) -> Swift.Void)? {
|
|
169
|
+
get
|
|
170
|
+
set
|
|
171
|
+
}
|
|
172
|
+
#endif
|
|
173
|
+
@objc public static func deviceHasSessionLevelAEC(_ session: AVFAudio.AVAudioSession = .sharedInstance()) -> Swift.Bool
|
|
174
|
+
@objc override dynamic public init()
|
|
175
|
+
@objc deinit
|
|
176
|
+
}
|
|
162
177
|
@_inheritsConvenienceInitializers @objc final public class LicenseManager : ObjectiveC.NSObject {
|
|
163
178
|
@objc public static func isLicenseValid(licenseKey: Swift.String) -> Swift.Bool
|
|
164
179
|
@objc override dynamic public init()
|
|
Binary file
|
|
@@ -159,6 +159,21 @@ public enum AudioPlaybackHook {
|
|
|
159
159
|
@objc final public func playWav(_ url: Foundation.URL, markAsLastUtterance: Swift.Bool = true)
|
|
160
160
|
@objc final public func playBuffer(_ buffer: AVFAudio.AVAudioPCMBuffer, markAsLastUtterance: Swift.Bool = true)
|
|
161
161
|
}
|
|
162
|
+
@_inheritsConvenienceInitializers @objc final public class DaVoiceLegacyAEC : ObjectiveC.NSObject {
|
|
163
|
+
@objc public static var isEnabled: Swift.Bool {
|
|
164
|
+
@objc get
|
|
165
|
+
@objc set
|
|
166
|
+
}
|
|
167
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
168
|
+
public static var externalListener: ((AVFAudio.AVAudioPCMBuffer) -> Swift.Void)? {
|
|
169
|
+
get
|
|
170
|
+
set
|
|
171
|
+
}
|
|
172
|
+
#endif
|
|
173
|
+
@objc public static func deviceHasSessionLevelAEC(_ session: AVFAudio.AVAudioSession = .sharedInstance()) -> Swift.Bool
|
|
174
|
+
@objc override dynamic public init()
|
|
175
|
+
@objc deinit
|
|
176
|
+
}
|
|
162
177
|
@_inheritsConvenienceInitializers @objc final public class LicenseManager : ObjectiveC.NSObject {
|
|
163
178
|
@objc public static func isLicenseValid(licenseKey: Swift.String) -> Swift.Bool
|
|
164
179
|
@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 listener (wake word) hears. 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 listener (wake word) hears. 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;
|