voicemix 1.1.2 → 1.1.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/README.md +20 -1
- package/demo/index.js +11 -3
- package/demo/sorpre_gracia_risas_dos_10ykkn7.mp3 +0 -0
- package/index.js +7 -0
- package/package.json +2 -2
- package/providers/elevenlabs.js +5 -0
package/README.md
CHANGED
|
@@ -35,6 +35,20 @@ voiceMix
|
|
|
35
35
|
.save();
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
+
### Using ElevenLabs v3 Model
|
|
39
|
+
|
|
40
|
+
```javascript
|
|
41
|
+
const voiceMix = new VoiceMix();
|
|
42
|
+
|
|
43
|
+
voiceMix
|
|
44
|
+
.v3() // Use the latest ElevenLabs v3 model
|
|
45
|
+
.voice('EbhcCfMvNsbvjN6OhjpJ')
|
|
46
|
+
.say('Hello! This is using the ElevenLabs v3 model.')
|
|
47
|
+
.save();
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
The v3 model is the latest and most advanced model from ElevenLabs, providing the most natural and expressive voice generation.
|
|
51
|
+
|
|
38
52
|
### Advanced Usage
|
|
39
53
|
|
|
40
54
|
#### Using Resemble AI
|
|
@@ -104,9 +118,14 @@ Example `lines.json`:
|
|
|
104
118
|
- Language selection
|
|
105
119
|
- Voice prompts for style control (Resemble AI)
|
|
106
120
|
- Support for multiple TTS providers:
|
|
107
|
-
- ElevenLabs
|
|
121
|
+
- ElevenLabs (including v3 model)
|
|
108
122
|
- Resemble AI
|
|
109
123
|
- Cartesia
|
|
124
|
+
- Support for different ElevenLabs models:
|
|
125
|
+
- `monolingual_v1()` - Original English model
|
|
126
|
+
- `multilingual_v1()` - First multilingual model
|
|
127
|
+
- `multilingual_v2()` - Improved multilingual model (default)
|
|
128
|
+
- `v3()` - Latest and most advanced model
|
|
110
129
|
- Simple chainable API
|
|
111
130
|
|
|
112
131
|
## License
|
package/demo/index.js
CHANGED
|
@@ -43,7 +43,15 @@ const voiceMix = new VoiceMix()//.useResemble().lang('en-US');
|
|
|
43
43
|
|
|
44
44
|
// Example using Cartesia
|
|
45
45
|
// Note: Replace with your actual Cartesia voice ID from your account
|
|
46
|
-
voiceMix.useCartesia()
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
// voiceMix.useCartesia()
|
|
47
|
+
// .voice('6ccbfb76-1fc6-48f7-b71d-91ac6298247b') // Cartesia voice ID from your account
|
|
48
|
+
// .say('<emotion value="happy" />Hmm… okay, let me think… yeah, this is actually kind of fun. [laughter] Let\'s dive in.')
|
|
49
|
+
// .save();
|
|
50
|
+
|
|
51
|
+
// Example using ElevenLabs v3 model
|
|
52
|
+
// v3 is the latest and most advanced model from ElevenLabs
|
|
53
|
+
voiceMix
|
|
54
|
+
.v3() // Use the ElevenLabs v3 model
|
|
55
|
+
.voice('dxvGlXoa4TLMyfYR6uC9') // ElevenLabs voice ID
|
|
56
|
+
.say('[sorprendida] gracias! [risas] dos personas creyeron en mí cuando nadie más lo hizo!')
|
|
49
57
|
.save();
|
|
Binary file
|
package/index.js
CHANGED
|
@@ -82,6 +82,13 @@ export class VoiceMix {
|
|
|
82
82
|
return this;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
v3() {
|
|
86
|
+
if (this.providerType === 'elevenlabs') {
|
|
87
|
+
this.provider.v3();
|
|
88
|
+
}
|
|
89
|
+
return this;
|
|
90
|
+
}
|
|
91
|
+
|
|
85
92
|
setSampleRate(rate) {
|
|
86
93
|
if (this.providerType === 'resemble') {
|
|
87
94
|
this.provider.setSampleRate(rate);
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "voicemix",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.1.
|
|
5
|
-
"description": "🗣️ VoiceMix - A simple text-to-speech tool using ElevenLabs and Resemble AI APIs.",
|
|
4
|
+
"version": "1.1.4",
|
|
5
|
+
"description": "🗣️ VoiceMix - A simple text-to-speech tool using ElevenLabs, Cartesia and Resemble AI APIs.",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|