react-native-davoice-tts 1.0.410 → 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.
- package/README.md +19 -0
- 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 +64 -0
- package/ios/SpeechBridge/SpeechBridge.m +40 -0
- package/ios/TTSRNBridge/DaVoiceTTSBridge.m +40 -0
- 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 +28 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.abi.json +505 -116
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios.private.swiftinterface +4 -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 +4 -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 +56 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.abi.json +505 -116
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +4 -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 +4 -0
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.abi.json +505 -116
- package/ios/TTSRNBridge/DavoiceTTS.xcframework/ios-arm64_x86_64-simulator/DavoiceTTS.framework/Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +4 -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 +4 -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 +33 -0
- package/speech/index.ts +65 -0
|
@@ -161,6 +161,10 @@ public enum AudioPlaybackHook {
|
|
|
161
161
|
}
|
|
162
162
|
@objc final public func getAllVoices() -> [Swift.String]
|
|
163
163
|
@objc final public func getVoiceAbilities(_ name: Swift.String) -> [Swift.String]
|
|
164
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
165
|
+
@objc(setExternalVoicesPath:completion:) final public func setExternalVoicesPath(_ path: Swift.String?, completion: (([Swift.String]) -> Swift.Void)? = nil)
|
|
166
|
+
#endif
|
|
167
|
+
@objc public static func createVoiceClone(_ inputAudioPath: Swift.String, outputPath: Swift.String, embedderPath: Swift.String) throws -> [Swift.String : Any]
|
|
164
168
|
@objc(changeVoice:completion:) final public func changeVoice(_ name: Swift.String, completion: @escaping (Swift.Int) -> Swift.Void)
|
|
165
169
|
@objc final public var onLastUtteranceFinished: (() -> Swift.Void)?
|
|
166
170
|
@objc deinit
|
|
Binary file
|
|
@@ -161,6 +161,10 @@ public enum AudioPlaybackHook {
|
|
|
161
161
|
}
|
|
162
162
|
@objc final public func getAllVoices() -> [Swift.String]
|
|
163
163
|
@objc final public func getVoiceAbilities(_ name: Swift.String) -> [Swift.String]
|
|
164
|
+
#if compiler(>=5.3) && $NonescapableTypes
|
|
165
|
+
@objc(setExternalVoicesPath:completion:) final public func setExternalVoicesPath(_ path: Swift.String?, completion: (([Swift.String]) -> Swift.Void)? = nil)
|
|
166
|
+
#endif
|
|
167
|
+
@objc public static func createVoiceClone(_ inputAudioPath: Swift.String, outputPath: Swift.String, embedderPath: Swift.String) throws -> [Swift.String : Any]
|
|
164
168
|
@objc(changeVoice:completion:) final public func changeVoice(_ name: Swift.String, completion: @escaping (Swift.Int) -> Swift.Void)
|
|
165
169
|
@objc final public var onLastUtteranceFinished: (() -> Swift.Void)?
|
|
166
170
|
@objc deinit
|
|
Binary file
|
|
@@ -361,6 +361,34 @@ SWIFT_CLASS("_TtC10DavoiceTTS10DaVoiceTTS")
|
|
|
361
361
|
/// 50! [regular] Thanks.” Unmatched tags use the default voice; tags are never
|
|
362
362
|
/// spoken. Empty for voices without variants, v1 models, or after destroy().
|
|
363
363
|
- (NSArray<NSString *> * _Nonnull)getVoiceAbilities:(NSString * _Nonnull)name SWIFT_WARN_UNUSED_RESULT;
|
|
364
|
+
/// Also look for voices in the folder <code>path</code>: <name>.emd / <name>.npy files,
|
|
365
|
+
/// e.g. made by createVoiceClone(). They are listed by getAllVoices()
|
|
366
|
+
/// after the bundled voices and selected with changeVoice() like them; a
|
|
367
|
+
/// bundled voice wins over an external file with the same name. Call it
|
|
368
|
+
/// again to pick up new files; nil or “” removes the external voices.
|
|
369
|
+
/// <code>completion</code> gets the external voice names found ([] for a v1 model or a
|
|
370
|
+
/// missing folder).
|
|
371
|
+
- (void)setExternalVoicesPath:(NSString * _Nullable)path completion:(void (^ _Nullable)(NSArray<NSString *> * _Nonnull))completion;
|
|
372
|
+
/// Voice cloning: creates a voice from a recording and saves it as a
|
|
373
|
+
/// scrambled .emd at <code>outputPath</code>.
|
|
374
|
+
/// <ul>
|
|
375
|
+
/// <li>
|
|
376
|
+
/// inputAudioPath: a recording of one speaker (wav, mp3, m4a/aac, caf,
|
|
377
|
+
/// aiff, flac, …). It is prepared for cloning automatically.
|
|
378
|
+
/// </li>
|
|
379
|
+
/// <li>
|
|
380
|
+
/// outputPath: the .emd file to write (”.emd” is added when missing), or a
|
|
381
|
+
/// folder (-> <folder>/<input name>.emd). The file name is the voice name.
|
|
382
|
+
/// </li>
|
|
383
|
+
/// <li>
|
|
384
|
+
/// embedderPath: the language’s voice encoder, embedder_<code>.dm
|
|
385
|
+
/// (e.g. embedder_en.dm); it is unscrambled in memory only.
|
|
386
|
+
/// </li>
|
|
387
|
+
/// </ul>
|
|
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.
|
|
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;
|
|
364
392
|
- (void)changeVoice:(NSString * _Nonnull)name completion:(void (^ _Nonnull)(NSInteger))completion;
|
|
365
393
|
@property (nonatomic, copy) void (^ _Nullable onLastUtteranceFinished)(void);
|
|
366
394
|
+ (BOOL)activateLicenseWithLicenseKey:(NSString * _Nonnull)licenseKey SWIFT_WARN_UNUSED_RESULT;
|
|
@@ -858,6 +886,34 @@ SWIFT_CLASS("_TtC10DavoiceTTS10DaVoiceTTS")
|
|
|
858
886
|
/// 50! [regular] Thanks.” Unmatched tags use the default voice; tags are never
|
|
859
887
|
/// spoken. Empty for voices without variants, v1 models, or after destroy().
|
|
860
888
|
- (NSArray<NSString *> * _Nonnull)getVoiceAbilities:(NSString * _Nonnull)name SWIFT_WARN_UNUSED_RESULT;
|
|
889
|
+
/// Also look for voices in the folder <code>path</code>: <name>.emd / <name>.npy files,
|
|
890
|
+
/// e.g. made by createVoiceClone(). They are listed by getAllVoices()
|
|
891
|
+
/// after the bundled voices and selected with changeVoice() like them; a
|
|
892
|
+
/// bundled voice wins over an external file with the same name. Call it
|
|
893
|
+
/// again to pick up new files; nil or “” removes the external voices.
|
|
894
|
+
/// <code>completion</code> gets the external voice names found ([] for a v1 model or a
|
|
895
|
+
/// missing folder).
|
|
896
|
+
- (void)setExternalVoicesPath:(NSString * _Nullable)path completion:(void (^ _Nullable)(NSArray<NSString *> * _Nonnull))completion;
|
|
897
|
+
/// Voice cloning: creates a voice from a recording and saves it as a
|
|
898
|
+
/// scrambled .emd at <code>outputPath</code>.
|
|
899
|
+
/// <ul>
|
|
900
|
+
/// <li>
|
|
901
|
+
/// inputAudioPath: a recording of one speaker (wav, mp3, m4a/aac, caf,
|
|
902
|
+
/// aiff, flac, …). It is prepared for cloning automatically.
|
|
903
|
+
/// </li>
|
|
904
|
+
/// <li>
|
|
905
|
+
/// outputPath: the .emd file to write (”.emd” is added when missing), or a
|
|
906
|
+
/// folder (-> <folder>/<input name>.emd). The file name is the voice name.
|
|
907
|
+
/// </li>
|
|
908
|
+
/// <li>
|
|
909
|
+
/// embedderPath: the language’s voice encoder, embedder_<code>.dm
|
|
910
|
+
/// (e.g. embedder_en.dm); it is unscrambled in memory only.
|
|
911
|
+
/// </li>
|
|
912
|
+
/// </ul>
|
|
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.
|
|
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;
|
|
861
917
|
- (void)changeVoice:(NSString * _Nonnull)name completion:(void (^ _Nonnull)(NSInteger))completion;
|
|
862
918
|
@property (nonatomic, copy) void (^ _Nullable onLastUtteranceFinished)(void);
|
|
863
919
|
+ (BOOL)activateLicenseWithLicenseKey:(NSString * _Nonnull)licenseKey SWIFT_WARN_UNUSED_RESULT;
|