voicemix 1.0.0 → 1.0.2
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/.gitattributes +2 -0
- package/README.md +3 -3
- package/index.js +1 -2
- package/package.json +5 -1
package/.gitattributes
ADDED
package/README.md
CHANGED
|
@@ -8,13 +8,13 @@ VoiceMix is a flexible text-to-speech library that allows you to generate speech
|
|
|
8
8
|
npm install voicemix dotenv
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
### Environment Setup
|
|
12
12
|
|
|
13
13
|
Create a `.env` file in your project root with your API keys:
|
|
14
14
|
|
|
15
15
|
```plaintext
|
|
16
|
-
ELEVENLABS_API_KEY=
|
|
17
|
-
RESEMBLE_API_KEY=
|
|
16
|
+
ELEVENLABS_API_KEY="6e04xxxxxxxxxxxxxxxxxxxxxxxxa9da"
|
|
17
|
+
RESEMBLE_API_KEY="9YWxxxxxxxxxxxxxxxxxmgtt"
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
## Usage
|
package/index.js
CHANGED
|
@@ -25,7 +25,7 @@ export class VoiceMix {
|
|
|
25
25
|
|
|
26
26
|
this.temperature = "0.8";
|
|
27
27
|
this.exaggeration = "0";
|
|
28
|
-
this.prosodyRate = "100%";
|
|
28
|
+
// this.prosodyRate = "100%";
|
|
29
29
|
// this.prosodyPitch = "medium";
|
|
30
30
|
|
|
31
31
|
this.requestsQueue = []; // Cola para las solicitudes pendientes
|
|
@@ -250,7 +250,6 @@ export class VoiceMix {
|
|
|
250
250
|
const speakAttributes = [];
|
|
251
251
|
|
|
252
252
|
if (options.promptText) {
|
|
253
|
-
options.prosodyRate = "110%"
|
|
254
253
|
speakAttributes.push(`prompt="${options.promptText}"`);
|
|
255
254
|
// speakAttributes.push(`xml:lang="en-us"`);
|
|
256
255
|
if (options.temperature) speakAttributes.push(`temperature="${options.temperature}"`);
|
package/package.json
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "voicemix",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.2",
|
|
5
5
|
"description": "🗣️ text-to-speech tool using ElevenLabs and Resemble AI APIs.",
|
|
6
6
|
"main": "index.js",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/clasen/VoiceMix"
|
|
10
|
+
},
|
|
7
11
|
"scripts": {
|
|
8
12
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
13
|
},
|