voicemix 1.1.6 → 1.2.0
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/index.js +3 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -157,7 +157,9 @@ export class VoiceMix {
|
|
|
157
157
|
|
|
158
158
|
say(text) {
|
|
159
159
|
this.text = text;
|
|
160
|
-
|
|
160
|
+
// Eliminar contenido entre corchetes para el nombre del archivo
|
|
161
|
+
const textForFilename = text.replace(/\[.*?\]/g, '').trim();
|
|
162
|
+
return this.file(this._filename(textForFilename));
|
|
161
163
|
}
|
|
162
164
|
|
|
163
165
|
file(fileName) {
|
|
@@ -233,7 +235,6 @@ export class VoiceMix {
|
|
|
233
235
|
prosodyRate: request.prosodyRate,
|
|
234
236
|
prosodyPitch: request.prosodyPitch
|
|
235
237
|
});
|
|
236
|
-
console.log(text);
|
|
237
238
|
|
|
238
239
|
return await this.provider.save(
|
|
239
240
|
request.ttsId,
|
package/package.json
CHANGED