voicemix 1.3.2 → 1.3.4
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/package.json
CHANGED
package/providers/cartesia.js
CHANGED
|
@@ -17,9 +17,6 @@ export class CartesiaProvider {
|
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
-
if (!this.apiKey) {
|
|
21
|
-
throw new ProviderError('Cartesia API key is required', 'cartesia');
|
|
22
|
-
}
|
|
23
20
|
}
|
|
24
21
|
|
|
25
22
|
_getRequestOptions(voiceId, text, format = 'mp3') {
|
|
@@ -53,6 +50,9 @@ export class CartesiaProvider {
|
|
|
53
50
|
|
|
54
51
|
async save(voiceId, text, format, filePath, fileName) {
|
|
55
52
|
try {
|
|
53
|
+
if (!this.apiKey) {
|
|
54
|
+
throw new ProviderError('Cartesia API key is required', 'cartesia');
|
|
55
|
+
}
|
|
56
56
|
if (!voiceId) {
|
|
57
57
|
throw new ProviderError('Voice ID is required', 'cartesia');
|
|
58
58
|
}
|
package/providers/elevenlabs.js
CHANGED
|
@@ -15,9 +15,6 @@ export class ElevenLabsProvider {
|
|
|
15
15
|
use_speaker_boost: true
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
-
if (!this.apiKey) {
|
|
19
|
-
throw new ProviderError('ElevenLabs API key is required', 'elevenlabs');
|
|
20
|
-
}
|
|
21
18
|
}
|
|
22
19
|
|
|
23
20
|
monolingual_v1() {
|
|
@@ -64,6 +61,9 @@ export class ElevenLabsProvider {
|
|
|
64
61
|
|
|
65
62
|
async save(voiceId, text, format, filePath, fileName) {
|
|
66
63
|
try {
|
|
64
|
+
if (!this.apiKey) {
|
|
65
|
+
throw new ProviderError('ElevenLabs API key is required', 'elevenlabs');
|
|
66
|
+
}
|
|
67
67
|
if (!voiceId) {
|
|
68
68
|
throw new ProviderError('Voice ID is required', 'elevenlabs');
|
|
69
69
|
}
|
package/providers/resemble.js
CHANGED
|
@@ -13,9 +13,6 @@ export class ResembleProvider {
|
|
|
13
13
|
precision: 'PCM_16'
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
-
if (!this.apiKey) {
|
|
17
|
-
throw new ProviderError('Resemble API key is required', 'resemble');
|
|
18
|
-
}
|
|
19
16
|
}
|
|
20
17
|
|
|
21
18
|
_getRequestOptions(endpoint, data) {
|
|
@@ -33,6 +30,9 @@ export class ResembleProvider {
|
|
|
33
30
|
|
|
34
31
|
async save(voiceId, text, format, filePath, fileName) {
|
|
35
32
|
try {
|
|
33
|
+
if (!this.apiKey) {
|
|
34
|
+
throw new ProviderError('Resemble API key is required', 'resemble');
|
|
35
|
+
}
|
|
36
36
|
if (!voiceId) {
|
|
37
37
|
throw new ProviderError('Voice ID is required', 'resemble');
|
|
38
38
|
}
|