voicemix 1.2.2 → 1.2.6
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 +5 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -149,9 +149,11 @@ export class VoiceMix {
|
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
_filename(text) {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
152
|
+
const parts = [text, this.promptText, this.xmlLang, this.ttsId, this.providerType]
|
|
153
|
+
.map(v => v ?? '')
|
|
154
|
+
.join(' ');
|
|
155
|
+
|
|
156
|
+
const filename = this.randPosfix ? hashNow(parts) : hash(parts);
|
|
155
157
|
return this.filePrefix + filename;
|
|
156
158
|
}
|
|
157
159
|
|
package/package.json
CHANGED