react-native-davoice-tts 1.0.414 → 1.0.415

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 +7 -2
  13. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.abi.json +167 -105
  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 +14 -4
  19. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.abi.json +167 -105
  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 +167 -105
  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
@@ -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;
@@ -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;