react-native-davoice-tts 1.0.414 → 1.0.416

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.
Files changed (32) hide show
  1. package/LICENSE +31 -0
  2. package/README.md +4 -0
  3. package/TTSRNBridge.podspec +1 -1
  4. package/android/libs/com/davoice/tts/1.0.0/tts-1.0.0.aar +0 -0
  5. package/android/libs/com/davoice/tts/1.0.0/tts-1.0.0.aar.md5 +1 -1
  6. package/android/libs/com/davoice/tts/1.0.0/tts-1.0.0.aar.sha1 +1 -1
  7. package/android/src/main/java/com/davoice/tts/rn/DaVoiceTTSBridge.java +4 -4
  8. package/ios/SpeechBridge/SpeechBridge.m +4 -3
  9. package/ios/TTSRNBridge/DaVoiceTTSBridge.m +4 -3
  10. package/ios/TTSRNBridge/DavoiceTTS.xcframework/Info.plist +5 -5
  11. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/DavoiceTTS +0 -0
  12. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Headers/DavoiceTTS-Swift.h +8 -3
  13. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.abi.json +349 -287
  14. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.private.swiftinterface +1 -0
  15. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  16. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.swiftinterface +1 -0
  17. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/DavoiceTTS +0 -0
  18. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Headers/DavoiceTTS-Swift.h +16 -6
  19. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.abi.json +349 -287
  20. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +1 -0
  21. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  22. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.swiftinterface +1 -0
  23. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.abi.json +349 -287
  24. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +1 -0
  25. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  26. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +1 -0
  27. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/_CodeSignature/CodeDirectory +0 -0
  28. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/_CodeSignature/CodeRequirements-1 +0 -0
  29. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/_CodeSignature/CodeResources +33 -33
  30. package/package.json +1 -1
  31. package/speech/index.d.ts +5 -3
  32. package/speech/index.ts +10 -4
@@ -165,6 +165,7 @@ public enum AudioPlaybackHook {
165
165
  @objc(setExternalVoicesPath:completion:) final public func setExternalVoicesPath(_ path: Swift.String?, completion: (([Swift.String]) -> Swift.Void)? = nil)
166
166
  #endif
167
167
  @objc public static func createVoiceClone(_ inputAudioPath: Swift.String, outputPath: Swift.String, embedderPath: Swift.String) throws -> [Swift.String : Any]
168
+ @objc public static func createVoiceClone(_ inputAudioPath: Swift.String, outputPath: Swift.String, embedderPath: Swift.String, volume: Swift.Double) throws -> [Swift.String : Any]
168
169
  @objc(changeVoice:completion:) final public func changeVoice(_ name: Swift.String, completion: @escaping (Swift.Int) -> Swift.Void)
169
170
  @objc final public var onLastUtteranceFinished: (() -> Swift.Void)?
170
171
  @objc deinit
@@ -165,6 +165,7 @@ public enum AudioPlaybackHook {
165
165
  @objc(setExternalVoicesPath:completion:) final public func setExternalVoicesPath(_ path: Swift.String?, completion: (([Swift.String]) -> Swift.Void)? = nil)
166
166
  #endif
167
167
  @objc public static func createVoiceClone(_ inputAudioPath: Swift.String, outputPath: Swift.String, embedderPath: Swift.String) throws -> [Swift.String : Any]
168
+ @objc public static func createVoiceClone(_ inputAudioPath: Swift.String, outputPath: Swift.String, embedderPath: Swift.String, volume: Swift.Double) throws -> [Swift.String : Any]
168
169
  @objc(changeVoice:completion:) final public func changeVoice(_ name: Swift.String, completion: @escaping (Swift.Int) -> Swift.Void)
169
170
  @objc final public var onLastUtteranceFinished: (() -> Swift.Void)?
170
171
  @objc deinit
@@ -328,7 +328,7 @@ SWIFT_CLASS("_TtC10DavoiceTTS25DaVoiceAudioRoutingConfig")
328
328
  /// supported hardware). On those devices AEC only exists inside an
329
329
  /// AVAudioEngine with voice processing on, and it only cancels audio played
330
330
  /// through that same engine – so TTS must play through the engine whose mic
331
- /// input the listeners hear. See pocketTTS/AECSupportIOS.md.
331
+ /// input the listeners hear. See TTS2/AECSupportIOS.md.
332
332
  /// Nothing here runs on devices WITH session-level AEC, or when AEC isn’t
333
333
  /// requested: every caller then takes its exact pre-existing path.
334
334
  SWIFT_CLASS("_TtC10DavoiceTTS16DaVoiceLegacyAEC")
@@ -370,7 +370,7 @@ SWIFT_CLASS("_TtC10DavoiceTTS10DaVoiceTTS")
370
370
  /// missing folder).
371
371
  - (void)setExternalVoicesPath:(NSString * _Nullable)path completion:(void (^ _Nullable)(NSArray<NSString *> * _Nonnull))completion;
372
372
  /// Voice cloning: creates a voice from a recording and saves it as a
373
- /// scrambled .emd at <code>outputPath</code>.
373
+ /// packed .emd at <code>outputPath</code>.
374
374
  /// <ul>
375
375
  /// <li>
376
376
  /// inputAudioPath: a recording of one speaker (wav, mp3, m4a/aac, caf,
@@ -382,13 +382,18 @@ SWIFT_CLASS("_TtC10DavoiceTTS10DaVoiceTTS")
382
382
  /// </li>
383
383
  /// <li>
384
384
  /// embedderPath: the language’s voice encoder, embedder_<code>.dm
385
- /// (e.g. embedder_en.dm); it is unscrambled in memory only.
385
+ /// (e.g. embedder_en.dm); it is resolved in memory only.
386
+ /// </li>
387
+ /// <li>
388
+ /// volume: loudness of the voice relative to the recording – 1.0 keeps it
389
+ /// (the 3-argument form), 1.2 is 20% louder, 0.8 is 20% quieter (a number > 0).
386
390
  /// </li>
387
391
  /// </ul>
388
392
  /// Returns [“path”, “voice”, “warnings”]; when “warnings” is non-empty, ask
389
393
  /// the user to record again. Put the file in the folder given to
390
394
  /// setExternalVoicesPath() (and call that again) to use it.
391
395
  + (NSDictionary<NSString *, id> * _Nullable)createVoiceClone:(NSString * _Nonnull)inputAudioPath outputPath:(NSString * _Nonnull)outputPath embedderPath:(NSString * _Nonnull)embedderPath error:(NSError * _Nullable * _Nullable)error SWIFT_WARN_UNUSED_RESULT;
396
+ + (NSDictionary<NSString *, id> * _Nullable)createVoiceClone:(NSString * _Nonnull)inputAudioPath outputPath:(NSString * _Nonnull)outputPath embedderPath:(NSString * _Nonnull)embedderPath volume:(double)volume error:(NSError * _Nullable * _Nullable)error SWIFT_WARN_UNUSED_RESULT;
392
397
  - (void)changeVoice:(NSString * _Nonnull)name completion:(void (^ _Nonnull)(NSInteger))completion;
393
398
  @property (nonatomic, copy) void (^ _Nullable onLastUtteranceFinished)(void);
394
399
  + (BOOL)activateLicenseWithLicenseKey:(NSString * _Nonnull)licenseKey SWIFT_WARN_UNUSED_RESULT;
@@ -853,7 +858,7 @@ SWIFT_CLASS("_TtC10DavoiceTTS25DaVoiceAudioRoutingConfig")
853
858
  /// supported hardware). On those devices AEC only exists inside an
854
859
  /// AVAudioEngine with voice processing on, and it only cancels audio played
855
860
  /// through that same engine – so TTS must play through the engine whose mic
856
- /// input the listeners hear. See pocketTTS/AECSupportIOS.md.
861
+ /// input the listeners hear. See TTS2/AECSupportIOS.md.
857
862
  /// Nothing here runs on devices WITH session-level AEC, or when AEC isn’t
858
863
  /// requested: every caller then takes its exact pre-existing path.
859
864
  SWIFT_CLASS("_TtC10DavoiceTTS16DaVoiceLegacyAEC")
@@ -895,7 +900,7 @@ SWIFT_CLASS("_TtC10DavoiceTTS10DaVoiceTTS")
895
900
  /// missing folder).
896
901
  - (void)setExternalVoicesPath:(NSString * _Nullable)path completion:(void (^ _Nullable)(NSArray<NSString *> * _Nonnull))completion;
897
902
  /// Voice cloning: creates a voice from a recording and saves it as a
898
- /// scrambled .emd at <code>outputPath</code>.
903
+ /// packed .emd at <code>outputPath</code>.
899
904
  /// <ul>
900
905
  /// <li>
901
906
  /// inputAudioPath: a recording of one speaker (wav, mp3, m4a/aac, caf,
@@ -907,13 +912,18 @@ SWIFT_CLASS("_TtC10DavoiceTTS10DaVoiceTTS")
907
912
  /// </li>
908
913
  /// <li>
909
914
  /// embedderPath: the language’s voice encoder, embedder_<code>.dm
910
- /// (e.g. embedder_en.dm); it is unscrambled in memory only.
915
+ /// (e.g. embedder_en.dm); it is resolved in memory only.
916
+ /// </li>
917
+ /// <li>
918
+ /// volume: loudness of the voice relative to the recording – 1.0 keeps it
919
+ /// (the 3-argument form), 1.2 is 20% louder, 0.8 is 20% quieter (a number > 0).
911
920
  /// </li>
912
921
  /// </ul>
913
922
  /// Returns [“path”, “voice”, “warnings”]; when “warnings” is non-empty, ask
914
923
  /// the user to record again. Put the file in the folder given to
915
924
  /// setExternalVoicesPath() (and call that again) to use it.
916
925
  + (NSDictionary<NSString *, id> * _Nullable)createVoiceClone:(NSString * _Nonnull)inputAudioPath outputPath:(NSString * _Nonnull)outputPath embedderPath:(NSString * _Nonnull)embedderPath error:(NSError * _Nullable * _Nullable)error SWIFT_WARN_UNUSED_RESULT;
926
+ + (NSDictionary<NSString *, id> * _Nullable)createVoiceClone:(NSString * _Nonnull)inputAudioPath outputPath:(NSString * _Nonnull)outputPath embedderPath:(NSString * _Nonnull)embedderPath volume:(double)volume error:(NSError * _Nullable * _Nullable)error SWIFT_WARN_UNUSED_RESULT;
917
927
  - (void)changeVoice:(NSString * _Nonnull)name completion:(void (^ _Nonnull)(NSInteger))completion;
918
928
  @property (nonatomic, copy) void (^ _Nullable onLastUtteranceFinished)(void);
919
929
  + (BOOL)activateLicenseWithLicenseKey:(NSString * _Nonnull)licenseKey SWIFT_WARN_UNUSED_RESULT;