react-native-davoice-tts 1.0.411 → 1.0.413
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/README.md +2 -3
- 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/android/src/main/java/com/davoice/tts/rn/DaVoiceTTSBridge.java +4 -7
- 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 +6 -8
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.abi.json +175 -161
- 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_x86_64-simulator/DavoiceTTS.framework/DavoiceTTS +0 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Headers/DavoiceTTS-Swift.h +12 -16
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.abi.json +175 -161
- 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/x86_64-apple-ios-simulator.abi.json +175 -161
- 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/_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 +21 -21
- package/package.json +1 -1
- package/speech/index.d.ts +6 -12
- package/speech/index.ts +6 -14
|
Binary file
|
|
Binary file
|
|
@@ -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
|
-
///
|
|
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,
|
|
377
|
-
///
|
|
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”, “
|
|
390
|
-
///
|
|
391
|
-
///
|
|
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
|
-
///
|
|
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,
|
|
904
|
-
///
|
|
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”, “
|
|
917
|
-
///
|
|
918
|
-
///
|
|
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);
|