react-native-davoice-tts 1.0.411 → 1.0.412

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 (22) hide show
  1. package/README.md +2 -3
  2. package/TTSRNBridge.podspec +1 -1
  3. package/android/libs/com/davoice/tts/1.0.0/tts-1.0.0.aar +0 -0
  4. package/android/libs/com/davoice/tts/1.0.0/tts-1.0.0.aar.md5 +1 -1
  5. package/android/libs/com/davoice/tts/1.0.0/tts-1.0.0.aar.sha1 +1 -1
  6. package/android/src/main/java/com/davoice/tts/rn/DaVoiceTTSBridge.java +4 -7
  7. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/DavoiceTTS +0 -0
  8. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Headers/DavoiceTTS-Swift.h +6 -8
  9. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.abi.json +175 -161
  10. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  11. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/DavoiceTTS +0 -0
  12. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Headers/DavoiceTTS-Swift.h +12 -16
  13. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.abi.json +175 -161
  14. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  15. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.abi.json +175 -161
  16. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  17. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/_CodeSignature/CodeDirectory +0 -0
  18. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/_CodeSignature/CodeRequirements-1 +0 -0
  19. package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/_CodeSignature/CodeResources +21 -21
  20. package/package.json +1 -1
  21. package/speech/index.d.ts +6 -12
  22. package/speech/index.ts +6 -14
@@ -369,13 +369,12 @@ SWIFT_CLASS("_TtC10DavoiceTTS10DaVoiceTTS")
369
369
  /// <code>completion</code> gets the external voice names found ([] for a v1 model or a
370
370
  /// missing folder).
371
371
  - (void)setExternalVoicesPath:(NSString * _Nullable)path completion:(void (^ _Nullable)(NSArray<NSString *> * _Nonnull))completion;
372
- /// Creates a voice clone from reference audio and saves it as a
372
+ /// Voice cloning: creates a voice from a recording and saves it as a
373
373
  /// scrambled .emd at <code>outputPath</code>.
374
374
  /// <ul>
375
375
  /// <li>
376
- /// inputAudioPath: wav, mp3, m4a/aac, caf, aiff, flac, … The best ~6 s
377
- /// of speech is used: silence trimmed, long pauses shortened, cut at a gap
378
- /// between words (never inside a word).
376
+ /// inputAudioPath: a recording of one speaker (wav, mp3, m4a/aac, caf,
377
+ /// aiff, flac, …). It is prepared for cloning automatically.
379
378
  /// </li>
380
379
  /// <li>
381
380
  /// outputPath: the .emd file to write (”.emd” is added when missing), or a
@@ -386,10 +385,9 @@ SWIFT_CLASS("_TtC10DavoiceTTS10DaVoiceTTS")
386
385
  /// (e.g. embedder_en.dm); it is unscrambled in memory only.
387
386
  /// </li>
388
387
  /// </ul>
389
- /// Returns [“path”, “voice”, “seconds”, “warnings”, “report”]; “warnings” is
390
- /// non-empty when less than 4 s of speech remained or the cut had to fall
391
- /// inside speech. Put the file in the folder given to setExternalVoicesPath()
392
- /// (and call that again) to use it.
388
+ /// Returns [“path”, “voice”, “warnings”]; when “warnings” is non-empty, ask
389
+ /// the user to record again. Put the file in the folder given to
390
+ /// setExternalVoicesPath() (and call that again) to use it.
393
391
  + (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;
394
392
  - (void)changeVoice:(NSString * _Nonnull)name completion:(void (^ _Nonnull)(NSInteger))completion;
395
393
  @property (nonatomic, copy) void (^ _Nullable onLastUtteranceFinished)(void);
@@ -896,13 +894,12 @@ SWIFT_CLASS("_TtC10DavoiceTTS10DaVoiceTTS")
896
894
  /// <code>completion</code> gets the external voice names found ([] for a v1 model or a
897
895
  /// missing folder).
898
896
  - (void)setExternalVoicesPath:(NSString * _Nullable)path completion:(void (^ _Nullable)(NSArray<NSString *> * _Nonnull))completion;
899
- /// Creates a voice clone from reference audio and saves it as a
897
+ /// Voice cloning: creates a voice from a recording and saves it as a
900
898
  /// scrambled .emd at <code>outputPath</code>.
901
899
  /// <ul>
902
900
  /// <li>
903
- /// inputAudioPath: wav, mp3, m4a/aac, caf, aiff, flac, … The best ~6 s
904
- /// of speech is used: silence trimmed, long pauses shortened, cut at a gap
905
- /// between words (never inside a word).
901
+ /// inputAudioPath: a recording of one speaker (wav, mp3, m4a/aac, caf,
902
+ /// aiff, flac, …). It is prepared for cloning automatically.
906
903
  /// </li>
907
904
  /// <li>
908
905
  /// outputPath: the .emd file to write (”.emd” is added when missing), or a
@@ -913,10 +910,9 @@ SWIFT_CLASS("_TtC10DavoiceTTS10DaVoiceTTS")
913
910
  /// (e.g. embedder_en.dm); it is unscrambled in memory only.
914
911
  /// </li>
915
912
  /// </ul>
916
- /// Returns [“path”, “voice”, “seconds”, “warnings”, “report”]; “warnings” is
917
- /// non-empty when less than 4 s of speech remained or the cut had to fall
918
- /// inside speech. Put the file in the folder given to setExternalVoicesPath()
919
- /// (and call that again) to use it.
913
+ /// Returns [“path”, “voice”, “warnings”]; when “warnings” is non-empty, ask
914
+ /// the user to record again. Put the file in the folder given to
915
+ /// setExternalVoicesPath() (and call that again) to use it.
920
916
  + (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;
921
917
  - (void)changeVoice:(NSString * _Nonnull)name completion:(void (^ _Nonnull)(NSInteger))completion;
922
918
  @property (nonatomic, copy) void (^ _Nullable onLastUtteranceFinished)(void);