voicemix 1.0.0 → 1.0.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/.gitattributes ADDED
@@ -0,0 +1,2 @@
1
+ # Auto detect text files and perform LF normalization
2
+ * text=auto
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
- ## Environment Setup
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=your_elevenlabs_api_key_here
17
- RESEMBLE_API_KEY=your_resemble_api_key_here
16
+ ELEVENLABS_API_KEY="6e04xxxxxxxxxxxxxxxxxxxxxxxxa9da"
17
+ RESEMBLE_API_KEY="9YWxxxxxxxxxxxxxxxxxmgtt"
18
18
  ```
19
19
 
20
20
  ## Usage
package/demo/package.json CHANGED
@@ -9,7 +9,6 @@
9
9
  "keywords": [],
10
10
  "author": "",
11
11
  "license": "ISC",
12
- "description": "",
13
12
  "dependencies": {
14
13
  "dotenv": "^16.5.0"
15
14
  }
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.0",
5
- "description": "🗣️ text-to-speech tool using ElevenLabs and Resemble AI APIs.",
4
+ "version": "1.0.6",
5
+ "description": "🗣️ VoiceMix - A simple 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
  },
@@ -11,7 +15,7 @@
11
15
  "license": "MIT",
12
16
  "dependencies": {
13
17
  "axios": "^1.9.0",
14
- "hash-factory": "^1.1.0"
18
+ "hash-factory": "^1.1.2"
15
19
  },
16
20
  "keywords": [
17
21
  "text-to-speech",