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.
- 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/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
|
|
Binary file
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<dict>
|
|
7
7
|
<key>Headers/DavoiceTTS-Swift.h</key>
|
|
8
8
|
<data>
|
|
9
|
-
|
|
9
|
+
CayZ/2UHTVx8d3crJ59EEwyTj9M=
|
|
10
10
|
</data>
|
|
11
11
|
<key>Info.plist</key>
|
|
12
12
|
<data>
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
</data>
|
|
15
15
|
<key>Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
|
|
16
16
|
<data>
|
|
17
|
-
|
|
17
|
+
KWvzlkvZwNqGIqaxH0B1gfHtqic=
|
|
18
18
|
</data>
|
|
19
19
|
<key>Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
|
|
20
20
|
<data>
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
</data>
|
|
23
23
|
<key>Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
|
|
24
24
|
<data>
|
|
25
|
-
|
|
25
|
+
AtalCan8W74vSROBG2Y+VszUbo0=
|
|
26
26
|
</data>
|
|
27
27
|
<key>Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
|
|
28
28
|
<data>
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
</data>
|
|
31
31
|
<key>Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
|
|
32
32
|
<data>
|
|
33
|
-
|
|
33
|
+
LFOxWYSLyaxM56QHAmqcH8h0ACo=
|
|
34
34
|
</data>
|
|
35
35
|
<key>Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
|
|
36
36
|
<data>
|
|
37
|
-
|
|
37
|
+
KWvzlkvZwNqGIqaxH0B1gfHtqic=
|
|
38
38
|
</data>
|
|
39
39
|
<key>Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
|
|
40
40
|
<data>
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
</data>
|
|
43
43
|
<key>Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
|
|
44
44
|
<data>
|
|
45
|
-
|
|
45
|
+
Y+jBdqRgb8hjAkzEQ+dx4dPeJaE=
|
|
46
46
|
</data>
|
|
47
47
|
<key>Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
|
|
48
48
|
<data>
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
</data>
|
|
51
51
|
<key>Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
|
|
52
52
|
<data>
|
|
53
|
-
|
|
53
|
+
IN1uxp6gFqpaRyEzBkr1vqmlddQ=
|
|
54
54
|
</data>
|
|
55
55
|
<key>Modules/module.modulemap</key>
|
|
56
56
|
<data>
|
|
@@ -63,22 +63,22 @@
|
|
|
63
63
|
<dict>
|
|
64
64
|
<key>hash</key>
|
|
65
65
|
<data>
|
|
66
|
-
|
|
66
|
+
CayZ/2UHTVx8d3crJ59EEwyTj9M=
|
|
67
67
|
</data>
|
|
68
68
|
<key>hash2</key>
|
|
69
69
|
<data>
|
|
70
|
-
|
|
70
|
+
jJHyYm5Bz+b6+Gr1OBaA2Vwm5CfUUg2QAD0t3khjh6E=
|
|
71
71
|
</data>
|
|
72
72
|
</dict>
|
|
73
73
|
<key>Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
|
|
74
74
|
<dict>
|
|
75
75
|
<key>hash</key>
|
|
76
76
|
<data>
|
|
77
|
-
|
|
77
|
+
KWvzlkvZwNqGIqaxH0B1gfHtqic=
|
|
78
78
|
</data>
|
|
79
79
|
<key>hash2</key>
|
|
80
80
|
<data>
|
|
81
|
-
|
|
81
|
+
IJy/ubRByJPxcw2/2tr0kKPcmzOcUWVMjpHnQGhsbA8=
|
|
82
82
|
</data>
|
|
83
83
|
</dict>
|
|
84
84
|
<key>Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
|
|
@@ -96,11 +96,11 @@
|
|
|
96
96
|
<dict>
|
|
97
97
|
<key>hash</key>
|
|
98
98
|
<data>
|
|
99
|
-
|
|
99
|
+
AtalCan8W74vSROBG2Y+VszUbo0=
|
|
100
100
|
</data>
|
|
101
101
|
<key>hash2</key>
|
|
102
102
|
<data>
|
|
103
|
-
|
|
103
|
+
eU2dx0sPZRWhE+65rFlT50UaJiM1ds4VmlV8NpEvyh8=
|
|
104
104
|
</data>
|
|
105
105
|
</dict>
|
|
106
106
|
<key>Modules/DavoiceTTS.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
|
|
@@ -118,22 +118,22 @@
|
|
|
118
118
|
<dict>
|
|
119
119
|
<key>hash</key>
|
|
120
120
|
<data>
|
|
121
|
-
|
|
121
|
+
LFOxWYSLyaxM56QHAmqcH8h0ACo=
|
|
122
122
|
</data>
|
|
123
123
|
<key>hash2</key>
|
|
124
124
|
<data>
|
|
125
|
-
|
|
125
|
+
b0HdHL72+oq00ajrgipy9IW6xmrsIPmAWUhTKbxRxAc=
|
|
126
126
|
</data>
|
|
127
127
|
</dict>
|
|
128
128
|
<key>Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
|
|
129
129
|
<dict>
|
|
130
130
|
<key>hash</key>
|
|
131
131
|
<data>
|
|
132
|
-
|
|
132
|
+
KWvzlkvZwNqGIqaxH0B1gfHtqic=
|
|
133
133
|
</data>
|
|
134
134
|
<key>hash2</key>
|
|
135
135
|
<data>
|
|
136
|
-
|
|
136
|
+
IJy/ubRByJPxcw2/2tr0kKPcmzOcUWVMjpHnQGhsbA8=
|
|
137
137
|
</data>
|
|
138
138
|
</dict>
|
|
139
139
|
<key>Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
|
|
@@ -151,11 +151,11 @@
|
|
|
151
151
|
<dict>
|
|
152
152
|
<key>hash</key>
|
|
153
153
|
<data>
|
|
154
|
-
|
|
154
|
+
Y+jBdqRgb8hjAkzEQ+dx4dPeJaE=
|
|
155
155
|
</data>
|
|
156
156
|
<key>hash2</key>
|
|
157
157
|
<data>
|
|
158
|
-
|
|
158
|
+
MY670aR0rAe1lIS0ea8ReB4Vgq8WweloNM+OAYzY6oc=
|
|
159
159
|
</data>
|
|
160
160
|
</dict>
|
|
161
161
|
<key>Modules/DavoiceTTS.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
|
|
@@ -173,11 +173,11 @@
|
|
|
173
173
|
<dict>
|
|
174
174
|
<key>hash</key>
|
|
175
175
|
<data>
|
|
176
|
-
|
|
176
|
+
IN1uxp6gFqpaRyEzBkr1vqmlddQ=
|
|
177
177
|
</data>
|
|
178
178
|
<key>hash2</key>
|
|
179
179
|
<data>
|
|
180
|
-
|
|
180
|
+
8NrcKhKsP3QhU/mgYfgIokKzZlFrHsKSAcjtPOK7b/8=
|
|
181
181
|
</data>
|
|
182
182
|
</dict>
|
|
183
183
|
<key>Modules/module.modulemap</key>
|
package/package.json
CHANGED
package/speech/index.d.ts
CHANGED
|
@@ -42,12 +42,8 @@ export type VoiceCloneResult = {
|
|
|
42
42
|
/** The .emd written (its file name without .emd is the voice name). */
|
|
43
43
|
path: string;
|
|
44
44
|
voice: string;
|
|
45
|
-
/**
|
|
46
|
-
seconds: number;
|
|
47
|
-
/** Non-empty when less than 4 s of speech remained or the cut fell inside speech. */
|
|
45
|
+
/** Non-empty when the user should record again (e.g. too little speech). */
|
|
48
46
|
warnings: string[];
|
|
49
|
-
/** What the preparation did (silence trimmed, pauses shortened, cut point). */
|
|
50
|
-
report: string[];
|
|
51
47
|
};
|
|
52
48
|
/** iOS AVAudioSession routing entry shared by STT and TTS. */
|
|
53
49
|
export type PreferredAudioInput = 'bluetoothHighQualityMic' | 'builtInMic' | 'none';
|
|
@@ -174,12 +170,11 @@ declare class Speech {
|
|
|
174
170
|
* null or "" removes them. Resolves the external voice names found.
|
|
175
171
|
*/
|
|
176
172
|
setExternalVoicesPath(path: string | null): Promise<string[]>;
|
|
177
|
-
/**
|
|
173
|
+
/** Voice cloning: creates a voice from a recording and saves it as a
|
|
178
174
|
* scrambled .emd at `outputPath`.
|
|
179
175
|
*
|
|
180
|
-
* - inputAudio: path/URI of a wav, mp3, m4a/aac,
|
|
181
|
-
*
|
|
182
|
-
* a gap between words (never inside a word).
|
|
176
|
+
* - inputAudio: path/URI of a recording of one speaker (wav, mp3, m4a/aac,
|
|
177
|
+
* ogg, flac, ...). It is prepared for cloning automatically.
|
|
183
178
|
* - outputPath: the .emd file to write (".emd" is added when missing), or a
|
|
184
179
|
* folder ending in "/" (-> <folder>/<input name>.emd). The file name is the
|
|
185
180
|
* voice name.
|
|
@@ -187,9 +182,8 @@ declare class Speech {
|
|
|
187
182
|
* require('./assets/models/embedder_en.dm') or a path; it is unscrambled in
|
|
188
183
|
* memory only.
|
|
189
184
|
*
|
|
190
|
-
* Resolves { path, voice,
|
|
191
|
-
*
|
|
192
|
-
* When the .emd lands in the folder given to setExternalVoicesPath(), the new
|
|
185
|
+
* Resolves { path, voice, warnings }; when warnings is non-empty, ask the user
|
|
186
|
+
* to record again. When the .emd lands in the folder given to setExternalVoicesPath(), the new
|
|
193
187
|
* voice is usable right away.
|
|
194
188
|
*/
|
|
195
189
|
createVoiceClone(inputAudio: ModelRef, outputPath: string, embedder: ModelRef): Promise<VoiceCloneResult>;
|
package/speech/index.ts
CHANGED
|
@@ -142,12 +142,8 @@ export type VoiceCloneResult = {
|
|
|
142
142
|
/** The .emd written (its file name without .emd is the voice name). */
|
|
143
143
|
path: string;
|
|
144
144
|
voice: string;
|
|
145
|
-
/**
|
|
146
|
-
seconds: number;
|
|
147
|
-
/** Non-empty when less than 4 s of speech remained or the cut fell inside speech. */
|
|
145
|
+
/** Non-empty when the user should record again (e.g. too little speech). */
|
|
148
146
|
warnings: string[];
|
|
149
|
-
/** What the preparation did (silence trimmed, pauses shortened, cut point). */
|
|
150
|
-
report: string[];
|
|
151
147
|
};
|
|
152
148
|
|
|
153
149
|
/** iOS AVAudioSession routing entry shared by STT and TTS. */
|
|
@@ -369,12 +365,11 @@ class Speech {
|
|
|
369
365
|
}
|
|
370
366
|
}
|
|
371
367
|
|
|
372
|
-
/**
|
|
368
|
+
/** Voice cloning: creates a voice from a recording and saves it as a
|
|
373
369
|
* scrambled .emd at `outputPath`.
|
|
374
370
|
*
|
|
375
|
-
* - inputAudio: path/URI of a wav, mp3, m4a/aac,
|
|
376
|
-
*
|
|
377
|
-
* a gap between words (never inside a word).
|
|
371
|
+
* - inputAudio: path/URI of a recording of one speaker (wav, mp3, m4a/aac,
|
|
372
|
+
* ogg, flac, ...). It is prepared for cloning automatically.
|
|
378
373
|
* - outputPath: the .emd file to write (".emd" is added when missing), or a
|
|
379
374
|
* folder ending in "/" (-> <folder>/<input name>.emd). The file name is the
|
|
380
375
|
* voice name.
|
|
@@ -382,9 +377,8 @@ class Speech {
|
|
|
382
377
|
* require('./assets/models/embedder_en.dm') or a path; it is unscrambled in
|
|
383
378
|
* memory only.
|
|
384
379
|
*
|
|
385
|
-
* Resolves { path, voice,
|
|
386
|
-
*
|
|
387
|
-
* When the .emd lands in the folder given to setExternalVoicesPath(), the new
|
|
380
|
+
* Resolves { path, voice, warnings }; when warnings is non-empty, ask the user
|
|
381
|
+
* to record again. When the .emd lands in the folder given to setExternalVoicesPath(), the new
|
|
388
382
|
* voice is usable right away.
|
|
389
383
|
*/
|
|
390
384
|
async createVoiceClone(inputAudio: ModelRef, outputPath: string, embedder: ModelRef): Promise<VoiceCloneResult> {
|
|
@@ -403,9 +397,7 @@ class Speech {
|
|
|
403
397
|
return {
|
|
404
398
|
path: String(result?.path ?? ''),
|
|
405
399
|
voice: String(result?.voice ?? ''),
|
|
406
|
-
seconds: Number(result?.seconds ?? 0),
|
|
407
400
|
warnings: Array.isArray(result?.warnings) ? result.warnings.map(String) : [],
|
|
408
|
-
report: Array.isArray(result?.report) ? result.report.map(String) : [],
|
|
409
401
|
};
|
|
410
402
|
}
|
|
411
403
|
|