@elizaos/plugin-edge-tts 2.0.0-beta.1 → 2.0.3-beta.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/LICENSE +21 -0
- package/README.md +2 -5
- package/package.json +19 -5
- package/dist/browser/index.browser.js +0 -3
- package/dist/browser/index.browser.js.map +0 -10
- package/dist/browser/index.d.ts +0 -2
- package/dist/cjs/index.d.ts +0 -2
- package/dist/cjs/index.js +0 -316
- package/dist/cjs/index.js.map +0 -10
- package/dist/cjs/index.node.cjs +0 -287
- package/dist/cjs/index.node.js.map +0 -10
- package/dist/index.browser.d.ts +0 -11
- package/dist/index.d.ts +0 -1
- package/dist/index.node.d.ts +0 -6
- package/dist/node/index.d.ts +0 -2
- package/dist/node/index.js +0 -236
- package/dist/node/index.js.map +0 -10
- package/dist/node/index.node.js +0 -223
- package/dist/node/index.node.js.map +0 -10
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Shaw Walters and elizaOS Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @elizaos/plugin-edge-tts
|
|
2
2
|
|
|
3
|
-
Free text-to-speech plugin for
|
|
3
|
+
Free text-to-speech plugin for elizaOS using Microsoft Edge TTS. No API key required.
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
@@ -18,7 +18,7 @@ npm install @elizaos/plugin-edge-tts
|
|
|
18
18
|
|
|
19
19
|
## Usage
|
|
20
20
|
|
|
21
|
-
### As
|
|
21
|
+
### As elizaOS Plugin
|
|
22
22
|
|
|
23
23
|
```typescript
|
|
24
24
|
import { edgeTTSPlugin } from "@elizaos/plugin-edge-tts";
|
|
@@ -90,6 +90,3 @@ Edge TTS is **not available in browser environments** because it requires:
|
|
|
90
90
|
|
|
91
91
|
For browser TTS, use `@elizaos/plugin-elevenlabs` or `@elizaos/plugin-openai` instead.
|
|
92
92
|
|
|
93
|
-
## License
|
|
94
|
-
|
|
95
|
-
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elizaos/plugin-edge-tts",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3-beta.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/node/index.node.js",
|
|
6
6
|
"module": "dist/node/index.node.js",
|
|
@@ -16,6 +16,11 @@
|
|
|
16
16
|
"./package.json": "./package.json",
|
|
17
17
|
".": {
|
|
18
18
|
"types": "./dist/index.d.ts",
|
|
19
|
+
"eliza-source": {
|
|
20
|
+
"types": "./src/index.node.ts",
|
|
21
|
+
"import": "./src/index.node.ts",
|
|
22
|
+
"default": "./src/index.node.ts"
|
|
23
|
+
},
|
|
19
24
|
"browser": {
|
|
20
25
|
"types": "./dist/browser/index.d.ts",
|
|
21
26
|
"import": "./dist/browser/index.browser.js",
|
|
@@ -37,6 +42,12 @@
|
|
|
37
42
|
"types": "./dist/browser/index.d.ts",
|
|
38
43
|
"import": "./dist/browser/index.browser.js",
|
|
39
44
|
"default": "./dist/browser/index.browser.js"
|
|
45
|
+
},
|
|
46
|
+
"./*.css": "./dist/*.css",
|
|
47
|
+
"./*": {
|
|
48
|
+
"types": "./dist/*.d.ts",
|
|
49
|
+
"import": "./dist/*.js",
|
|
50
|
+
"default": "./dist/*.js"
|
|
40
51
|
}
|
|
41
52
|
},
|
|
42
53
|
"files": [
|
|
@@ -52,14 +63,16 @@
|
|
|
52
63
|
}
|
|
53
64
|
},
|
|
54
65
|
"dependencies": {
|
|
55
|
-
"@elizaos/core": "2.0.
|
|
66
|
+
"@elizaos/core": "2.0.3-beta.2",
|
|
56
67
|
"node-edge-tts": "^1.0.7"
|
|
57
68
|
},
|
|
58
69
|
"devDependencies": {
|
|
59
70
|
"@biomejs/biome": "^2.4.14",
|
|
60
71
|
"@types/bun": "^1.2.22",
|
|
61
72
|
"@types/node": "^24.5.2",
|
|
62
|
-
"
|
|
73
|
+
"bun-types": "1.3.14",
|
|
74
|
+
"typescript": "^6.0.3",
|
|
75
|
+
"vitest": "^4.0.17"
|
|
63
76
|
},
|
|
64
77
|
"scripts": {
|
|
65
78
|
"build": "bun run build.ts",
|
|
@@ -70,7 +83,7 @@
|
|
|
70
83
|
"format:check": "bunx @biomejs/biome format .",
|
|
71
84
|
"lint": "bunx @biomejs/biome check --write --unsafe .",
|
|
72
85
|
"lint:check": "bunx @biomejs/biome check .",
|
|
73
|
-
"typecheck": "
|
|
86
|
+
"typecheck": "tsgo --noEmit",
|
|
74
87
|
"test:e2e": "node ../../packages/app-core/scripts/run-local-plugin-live-smoke.mjs",
|
|
75
88
|
"test:live": "bun run test:e2e"
|
|
76
89
|
},
|
|
@@ -144,5 +157,6 @@
|
|
|
144
157
|
"browser": "Browser-compatible build available via exports.browser",
|
|
145
158
|
"node": "Node.js build available via exports.node"
|
|
146
159
|
}
|
|
147
|
-
}
|
|
160
|
+
},
|
|
161
|
+
"gitHead": "82fe0f44215954c2417328203f5bd6510985c1fc"
|
|
148
162
|
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{logger as f}from"@elizaos/core";var j={name:"edge-tts",description:"Edge TTS plugin (browser stub - not available in browser environments)",models:{},tests:[]};if(typeof window<"u")f.warn("[EdgeTTS] Edge TTS is not available in browser environments. Use @elizaos/plugin-elevenlabs or @elizaos/plugin-openai for browser TTS.");var v=j;export{j as edgeTTSPlugin,v as default};
|
|
2
|
-
|
|
3
|
-
//# debugId=A1DF4939E5621A8064756E2164756E21
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/index.browser.ts"],
|
|
4
|
-
"sourcesContent": [
|
|
5
|
-
"/**\n * Browser entry point for @elizaos/plugin-edge-tts\n *\n * Edge TTS is not available in browser environments because it requires\n * Node.js file system access and WebSocket connections that browsers don't support.\n *\n * For browser TTS, use @elizaos/plugin-elevenlabs or @elizaos/plugin-openai instead.\n */\nimport { logger, type Plugin } from \"@elizaos/core\";\n\nexport const edgeTTSPlugin: Plugin = {\n name: \"edge-tts\",\n description: \"Edge TTS plugin (browser stub - not available in browser environments)\",\n models: {},\n tests: [],\n};\n\n// Log warning when imported in browser\nif (typeof window !== \"undefined\") {\n logger.warn(\n \"[EdgeTTS] Edge TTS is not available in browser environments. \" +\n \"Use @elizaos/plugin-elevenlabs or @elizaos/plugin-openai for browser TTS.\"\n );\n}\n\nexport default edgeTTSPlugin;\n"
|
|
6
|
-
],
|
|
7
|
-
"mappings": "AAQA,iBAAS,sBAEF,IAAM,EAAwB,CACnC,KAAM,WACN,YAAa,yEACb,OAAQ,CAAC,EACT,MAAO,CAAC,CACV,EAGA,GAAI,OAAO,OAAW,IACpB,EAAO,KACL,wIAEF,EAGF,IAAe",
|
|
8
|
-
"debugId": "A1DF4939E5621A8064756E2164756E21",
|
|
9
|
-
"names": []
|
|
10
|
-
}
|
package/dist/browser/index.d.ts
DELETED
package/dist/cjs/index.d.ts
DELETED
package/dist/cjs/index.js
DELETED
|
@@ -1,316 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
function __accessProp(key) {
|
|
8
|
-
return this[key];
|
|
9
|
-
}
|
|
10
|
-
var __toESMCache_node;
|
|
11
|
-
var __toESMCache_esm;
|
|
12
|
-
var __toESM = (mod, isNodeMode, target) => {
|
|
13
|
-
var canCache = mod != null && typeof mod === "object";
|
|
14
|
-
if (canCache) {
|
|
15
|
-
var cache = isNodeMode
|
|
16
|
-
? (__toESMCache_node ??= new WeakMap())
|
|
17
|
-
: (__toESMCache_esm ??= new WeakMap());
|
|
18
|
-
var cached = cache.get(mod);
|
|
19
|
-
if (cached) return cached;
|
|
20
|
-
}
|
|
21
|
-
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
22
|
-
const to =
|
|
23
|
-
isNodeMode || !mod || !mod.__esModule
|
|
24
|
-
? __defProp(target, "default", { value: mod, enumerable: true })
|
|
25
|
-
: target;
|
|
26
|
-
for (const key of __getOwnPropNames(mod))
|
|
27
|
-
if (!__hasOwnProp.call(to, key))
|
|
28
|
-
__defProp(to, key, {
|
|
29
|
-
get: __accessProp.bind(mod, key),
|
|
30
|
-
enumerable: true,
|
|
31
|
-
});
|
|
32
|
-
if (canCache) cache.set(mod, to);
|
|
33
|
-
return to;
|
|
34
|
-
};
|
|
35
|
-
var __toCommonJS = (from) => {
|
|
36
|
-
var entry = (__moduleCache ??= new WeakMap()).get(from),
|
|
37
|
-
desc;
|
|
38
|
-
if (entry) return entry;
|
|
39
|
-
entry = __defProp({}, "__esModule", { value: true });
|
|
40
|
-
if ((from && typeof from === "object") || typeof from === "function") {
|
|
41
|
-
for (var key of __getOwnPropNames(from))
|
|
42
|
-
if (!__hasOwnProp.call(entry, key))
|
|
43
|
-
__defProp(entry, key, {
|
|
44
|
-
get: __accessProp.bind(from, key),
|
|
45
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable,
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
__moduleCache.set(from, entry);
|
|
49
|
-
return entry;
|
|
50
|
-
};
|
|
51
|
-
var __moduleCache;
|
|
52
|
-
var __returnValue = (v) => v;
|
|
53
|
-
function __exportSetter(name, newValue) {
|
|
54
|
-
this[name] = __returnValue.bind(null, newValue);
|
|
55
|
-
}
|
|
56
|
-
var __export = (target, all) => {
|
|
57
|
-
for (var name in all)
|
|
58
|
-
__defProp(target, name, {
|
|
59
|
-
get: all[name],
|
|
60
|
-
enumerable: true,
|
|
61
|
-
configurable: true,
|
|
62
|
-
set: __exportSetter.bind(all, name),
|
|
63
|
-
});
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
// src/index.ts
|
|
67
|
-
var exports_src = {};
|
|
68
|
-
__export(exports_src, {
|
|
69
|
-
edgeTTSPlugin: () => edgeTTSPlugin,
|
|
70
|
-
default: () => src_default,
|
|
71
|
-
_test: () => _test,
|
|
72
|
-
});
|
|
73
|
-
module.exports = __toCommonJS(exports_src);
|
|
74
|
-
var import_node_fs = require("node:fs");
|
|
75
|
-
var import_node_os = require("node:os");
|
|
76
|
-
var import_node_path = __toESM(require("node:path"));
|
|
77
|
-
var import_core = require("@elizaos/core");
|
|
78
|
-
var import_node_edge_tts = require("node-edge-tts");
|
|
79
|
-
var DEFAULT_VOICE = "en-US-MichelleNeural";
|
|
80
|
-
var DEFAULT_LANG = "en-US";
|
|
81
|
-
var DEFAULT_OUTPUT_FORMAT = "audio-24khz-48kbitrate-mono-mp3";
|
|
82
|
-
var DEFAULT_TIMEOUT_MS = 30000;
|
|
83
|
-
var VOICE_PRESETS = {
|
|
84
|
-
alloy: "en-US-GuyNeural",
|
|
85
|
-
echo: "en-US-ChristopherNeural",
|
|
86
|
-
fable: "en-GB-RyanNeural",
|
|
87
|
-
onyx: "en-US-DavisNeural",
|
|
88
|
-
nova: "en-US-JennyNeural",
|
|
89
|
-
shimmer: "en-US-AriaNeural",
|
|
90
|
-
};
|
|
91
|
-
function getSetting(runtime, key, fallback) {
|
|
92
|
-
const envValue =
|
|
93
|
-
typeof process !== "undefined" && process.env
|
|
94
|
-
? process.env[key]
|
|
95
|
-
: undefined;
|
|
96
|
-
return runtime.getSetting(key) ?? envValue ?? fallback;
|
|
97
|
-
}
|
|
98
|
-
function getEdgeTTSSettings(runtime) {
|
|
99
|
-
const timeoutStr = getSetting(runtime, "EDGE_TTS_TIMEOUT_MS");
|
|
100
|
-
return {
|
|
101
|
-
voice:
|
|
102
|
-
getSetting(runtime, "EDGE_TTS_VOICE", DEFAULT_VOICE) ?? DEFAULT_VOICE,
|
|
103
|
-
lang: getSetting(runtime, "EDGE_TTS_LANG", DEFAULT_LANG) ?? DEFAULT_LANG,
|
|
104
|
-
outputFormat:
|
|
105
|
-
getSetting(runtime, "EDGE_TTS_OUTPUT_FORMAT", DEFAULT_OUTPUT_FORMAT) ??
|
|
106
|
-
DEFAULT_OUTPUT_FORMAT,
|
|
107
|
-
rate: getSetting(runtime, "EDGE_TTS_RATE"),
|
|
108
|
-
pitch: getSetting(runtime, "EDGE_TTS_PITCH"),
|
|
109
|
-
volume: getSetting(runtime, "EDGE_TTS_VOLUME"),
|
|
110
|
-
proxy: getSetting(runtime, "EDGE_TTS_PROXY"),
|
|
111
|
-
timeoutMs: timeoutStr
|
|
112
|
-
? Number.parseInt(timeoutStr, 10)
|
|
113
|
-
: DEFAULT_TIMEOUT_MS,
|
|
114
|
-
};
|
|
115
|
-
}
|
|
116
|
-
function resolveVoice(voice, defaultVoice) {
|
|
117
|
-
if (!voice) return defaultVoice;
|
|
118
|
-
const preset = VOICE_PRESETS[voice.toLowerCase()];
|
|
119
|
-
if (preset) return preset;
|
|
120
|
-
return voice;
|
|
121
|
-
}
|
|
122
|
-
function speedToRate(speed) {
|
|
123
|
-
if (speed === undefined || speed === 1) return;
|
|
124
|
-
const percentage = Math.round((speed - 1) * 100);
|
|
125
|
-
return percentage >= 0 ? `+${percentage}%` : `${percentage}%`;
|
|
126
|
-
}
|
|
127
|
-
function inferExtension(outputFormat) {
|
|
128
|
-
const normalized = outputFormat.toLowerCase();
|
|
129
|
-
if (normalized.includes("webm")) return ".webm";
|
|
130
|
-
if (normalized.includes("ogg")) return ".ogg";
|
|
131
|
-
if (normalized.includes("opus")) return ".opus";
|
|
132
|
-
if (
|
|
133
|
-
normalized.includes("wav") ||
|
|
134
|
-
normalized.includes("riff") ||
|
|
135
|
-
normalized.includes("pcm")
|
|
136
|
-
) {
|
|
137
|
-
return ".wav";
|
|
138
|
-
}
|
|
139
|
-
return ".mp3";
|
|
140
|
-
}
|
|
141
|
-
async function generateSpeech(settings, params) {
|
|
142
|
-
const voice = resolveVoice(params.voice, settings.voice);
|
|
143
|
-
const lang = params.lang ?? settings.lang;
|
|
144
|
-
const outputFormat = params.outputFormat ?? settings.outputFormat;
|
|
145
|
-
const rate = params.rate ?? speedToRate(params.speed) ?? settings.rate;
|
|
146
|
-
const pitch = params.pitch ?? settings.pitch;
|
|
147
|
-
const volume = params.volume ?? settings.volume;
|
|
148
|
-
import_core.logger.debug(
|
|
149
|
-
`[EdgeTTS] Generating speech with voice: ${voice}, lang: ${lang}`,
|
|
150
|
-
);
|
|
151
|
-
const tts = new import_node_edge_tts.EdgeTTS({
|
|
152
|
-
voice,
|
|
153
|
-
lang,
|
|
154
|
-
outputFormat,
|
|
155
|
-
saveSubtitles: false,
|
|
156
|
-
proxy: settings.proxy,
|
|
157
|
-
rate,
|
|
158
|
-
pitch,
|
|
159
|
-
volume,
|
|
160
|
-
timeout: settings.timeoutMs,
|
|
161
|
-
});
|
|
162
|
-
const tempDir = import_node_fs.mkdtempSync(
|
|
163
|
-
import_node_path.default.join(import_node_os.tmpdir(), "edge-tts-"),
|
|
164
|
-
);
|
|
165
|
-
const extension = inferExtension(outputFormat);
|
|
166
|
-
const outputPath = import_node_path.default.join(
|
|
167
|
-
tempDir,
|
|
168
|
-
`speech${extension}`,
|
|
169
|
-
);
|
|
170
|
-
try {
|
|
171
|
-
await tts.ttsPromise(params.text, outputPath);
|
|
172
|
-
const audioBuffer = import_node_fs.readFileSync(outputPath);
|
|
173
|
-
return audioBuffer;
|
|
174
|
-
} finally {
|
|
175
|
-
try {
|
|
176
|
-
import_node_fs.rmSync(tempDir, { recursive: true, force: true });
|
|
177
|
-
} catch {}
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
var edgeTTSPlugin = {
|
|
181
|
-
name: "edge-tts",
|
|
182
|
-
description:
|
|
183
|
-
"Free text-to-speech synthesis using Microsoft Edge TTS - no API key required, high-quality neural voices",
|
|
184
|
-
models: {
|
|
185
|
-
[import_core.ModelType.TEXT_TO_SPEECH]: async (runtime, input) => {
|
|
186
|
-
const params = typeof input === "string" ? { text: input } : input;
|
|
187
|
-
const settings = getEdgeTTSSettings(runtime);
|
|
188
|
-
import_core.logger.log(
|
|
189
|
-
`[EdgeTTS] Using TEXT_TO_SPEECH with voice: ${settings.voice}`,
|
|
190
|
-
);
|
|
191
|
-
if (!params.text || params.text.trim().length === 0) {
|
|
192
|
-
throw new Error("TEXT_TO_SPEECH requires non-empty text");
|
|
193
|
-
}
|
|
194
|
-
if (params.text.length > 5000) {
|
|
195
|
-
throw new Error("TEXT_TO_SPEECH text exceeds 5000 character limit");
|
|
196
|
-
}
|
|
197
|
-
try {
|
|
198
|
-
const audioBuffer = await generateSpeech(settings, params);
|
|
199
|
-
return audioBuffer;
|
|
200
|
-
} catch (error) {
|
|
201
|
-
const msg = error instanceof Error ? error.message : String(error);
|
|
202
|
-
import_core.logger.error(`EdgeTTS model error: ${msg}`);
|
|
203
|
-
throw error instanceof Error ? error : new Error(msg);
|
|
204
|
-
}
|
|
205
|
-
},
|
|
206
|
-
},
|
|
207
|
-
tests: [
|
|
208
|
-
{
|
|
209
|
-
name: "test edge tts",
|
|
210
|
-
tests: [
|
|
211
|
-
{
|
|
212
|
-
name: "Edge TTS settings validation",
|
|
213
|
-
fn: async (runtime) => {
|
|
214
|
-
const settings = getEdgeTTSSettings(runtime);
|
|
215
|
-
if (!settings.voice) {
|
|
216
|
-
throw new Error("Missing voice configuration");
|
|
217
|
-
}
|
|
218
|
-
if (!settings.lang) {
|
|
219
|
-
throw new Error("Missing language configuration");
|
|
220
|
-
}
|
|
221
|
-
if (!settings.outputFormat) {
|
|
222
|
-
throw new Error("Missing output format configuration");
|
|
223
|
-
}
|
|
224
|
-
import_core.logger.success(
|
|
225
|
-
"Edge TTS settings validated successfully",
|
|
226
|
-
);
|
|
227
|
-
},
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
name: "Edge TTS voice preset mapping",
|
|
231
|
-
fn: async (_runtime) => {
|
|
232
|
-
const testCases = [
|
|
233
|
-
{ input: "alloy", expected: "en-US-GuyNeural" },
|
|
234
|
-
{ input: "nova", expected: "en-US-JennyNeural" },
|
|
235
|
-
{ input: "shimmer", expected: "en-US-AriaNeural" },
|
|
236
|
-
{
|
|
237
|
-
input: "en-US-MichelleNeural",
|
|
238
|
-
expected: "en-US-MichelleNeural",
|
|
239
|
-
},
|
|
240
|
-
];
|
|
241
|
-
for (const tc of testCases) {
|
|
242
|
-
const result = resolveVoice(tc.input, DEFAULT_VOICE);
|
|
243
|
-
if (result !== tc.expected) {
|
|
244
|
-
throw new Error(
|
|
245
|
-
`Voice preset mapping failed: ${tc.input} -> ${result}, expected ${tc.expected}`,
|
|
246
|
-
);
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
import_core.logger.success(
|
|
250
|
-
"Voice preset mapping validated successfully",
|
|
251
|
-
);
|
|
252
|
-
},
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
name: "Edge TTS speed to rate conversion",
|
|
256
|
-
fn: async (_runtime) => {
|
|
257
|
-
const testCases = [
|
|
258
|
-
{ speed: 1, expected: undefined },
|
|
259
|
-
{ speed: 1.5, expected: "+50%" },
|
|
260
|
-
{ speed: 0.75, expected: "-25%" },
|
|
261
|
-
{ speed: 2, expected: "+100%" },
|
|
262
|
-
];
|
|
263
|
-
for (const tc of testCases) {
|
|
264
|
-
const result = speedToRate(tc.speed);
|
|
265
|
-
if (result !== tc.expected) {
|
|
266
|
-
throw new Error(
|
|
267
|
-
`Speed conversion failed: ${tc.speed} -> ${result}, expected ${tc.expected}`,
|
|
268
|
-
);
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
import_core.logger.success(
|
|
272
|
-
"Speed to rate conversion validated successfully",
|
|
273
|
-
);
|
|
274
|
-
},
|
|
275
|
-
},
|
|
276
|
-
{
|
|
277
|
-
name: "Edge TTS generation (live test)",
|
|
278
|
-
fn: async (runtime) => {
|
|
279
|
-
const testText = "Hello, this is a test of Edge TTS.";
|
|
280
|
-
try {
|
|
281
|
-
const audioBuffer = await runtime.useModel(
|
|
282
|
-
import_core.ModelType.TEXT_TO_SPEECH,
|
|
283
|
-
testText,
|
|
284
|
-
);
|
|
285
|
-
if (!audioBuffer || audioBuffer.length === 0) {
|
|
286
|
-
throw new Error("Received empty audio buffer");
|
|
287
|
-
}
|
|
288
|
-
import_core.logger.success(
|
|
289
|
-
`Edge TTS generation successful: ${audioBuffer.length} bytes`,
|
|
290
|
-
);
|
|
291
|
-
} catch (error) {
|
|
292
|
-
const msg =
|
|
293
|
-
error instanceof Error ? error.message : String(error);
|
|
294
|
-
if (msg.includes("ENOTFOUND") || msg.includes("network")) {
|
|
295
|
-
import_core.logger.warn(
|
|
296
|
-
`Edge TTS live test skipped (network unavailable): ${msg}`,
|
|
297
|
-
);
|
|
298
|
-
return;
|
|
299
|
-
}
|
|
300
|
-
throw error;
|
|
301
|
-
}
|
|
302
|
-
},
|
|
303
|
-
},
|
|
304
|
-
],
|
|
305
|
-
},
|
|
306
|
-
],
|
|
307
|
-
};
|
|
308
|
-
var src_default = edgeTTSPlugin;
|
|
309
|
-
var _test = {
|
|
310
|
-
resolveVoice,
|
|
311
|
-
speedToRate,
|
|
312
|
-
inferExtension,
|
|
313
|
-
getEdgeTTSSettings,
|
|
314
|
-
};
|
|
315
|
-
|
|
316
|
-
//# debugId=302D9C6A4A9C013564756E2164756E21
|
package/dist/cjs/index.js.map
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/index.ts"],
|
|
4
|
-
"sourcesContent": [
|
|
5
|
-
"import { mkdtempSync, readFileSync, rmSync } from \"node:fs\";\nimport { tmpdir } from \"node:os\";\nimport path from \"node:path\";\nimport { type IAgentRuntime, logger, ModelType, type Plugin } from \"@elizaos/core\";\nimport { EdgeTTS } from \"node-edge-tts\";\n\n/**\n * Edge TTS voice settings configuration\n */\ninterface EdgeTTSSettings {\n voice: string;\n lang: string;\n outputFormat: string;\n rate?: string;\n pitch?: string;\n volume?: string;\n proxy?: string;\n timeoutMs: number;\n}\n\n/**\n * Extended TTS params with Edge-specific options\n */\ninterface EdgeTTSParams {\n text: string;\n voice?: string;\n speed?: number;\n /** Edge TTS specific: language code */\n lang?: string;\n /** Edge TTS specific: output format */\n outputFormat?: string;\n /** Edge TTS specific: rate adjustment (e.g., +10%, -5%) */\n rate?: string;\n /** Edge TTS specific: pitch adjustment (e.g., +5Hz, -10Hz) */\n pitch?: string;\n /** Edge TTS specific: volume adjustment (e.g., +20%, -10%) */\n volume?: string;\n}\n\n// Default voice configurations\nconst DEFAULT_VOICE = \"en-US-MichelleNeural\";\nconst DEFAULT_LANG = \"en-US\";\nconst DEFAULT_OUTPUT_FORMAT = \"audio-24khz-48kbitrate-mono-mp3\";\nconst DEFAULT_TIMEOUT_MS = 30000;\n\n// Voice presets mapping common voice names to Edge TTS voices\nconst VOICE_PRESETS: Record<string, string> = {\n // Generic voices (map to good defaults)\n alloy: \"en-US-GuyNeural\",\n echo: \"en-US-ChristopherNeural\",\n fable: \"en-GB-RyanNeural\",\n onyx: \"en-US-DavisNeural\",\n nova: \"en-US-JennyNeural\",\n shimmer: \"en-US-AriaNeural\",\n // Direct Edge TTS voice names pass through\n};\n\nfunction getSetting(runtime: IAgentRuntime, key: string, fallback?: string): string | undefined {\n const envValue =\n typeof process !== \"undefined\" && (process as { env?: Record<string, string> }).env\n ? (process as { env: Record<string, string> }).env[key]\n : undefined;\n return (runtime.getSetting(key) as string | undefined) ?? envValue ?? fallback;\n}\n\nfunction getEdgeTTSSettings(runtime: IAgentRuntime): EdgeTTSSettings {\n const timeoutStr = getSetting(runtime, \"EDGE_TTS_TIMEOUT_MS\");\n return {\n voice: getSetting(runtime, \"EDGE_TTS_VOICE\", DEFAULT_VOICE) ?? DEFAULT_VOICE,\n lang: getSetting(runtime, \"EDGE_TTS_LANG\", DEFAULT_LANG) ?? DEFAULT_LANG,\n outputFormat:\n getSetting(runtime, \"EDGE_TTS_OUTPUT_FORMAT\", DEFAULT_OUTPUT_FORMAT) ?? DEFAULT_OUTPUT_FORMAT,\n rate: getSetting(runtime, \"EDGE_TTS_RATE\"),\n pitch: getSetting(runtime, \"EDGE_TTS_PITCH\"),\n volume: getSetting(runtime, \"EDGE_TTS_VOLUME\"),\n proxy: getSetting(runtime, \"EDGE_TTS_PROXY\"),\n timeoutMs: timeoutStr ? Number.parseInt(timeoutStr, 10) : DEFAULT_TIMEOUT_MS,\n };\n}\n\n/**\n * Resolve voice name - handles OpenAI-style voice names and Edge TTS voice IDs\n */\nfunction resolveVoice(voice: string | undefined, defaultVoice: string): string {\n if (!voice) return defaultVoice;\n\n // Check if it's a preset name\n const preset = VOICE_PRESETS[voice.toLowerCase()];\n if (preset) return preset;\n\n // Assume it's a direct Edge TTS voice ID\n return voice;\n}\n\n/**\n * Convert speed multiplier to Edge TTS rate string\n * speed: 1.0 = normal, 0.5 = half speed, 2.0 = double speed\n */\nfunction speedToRate(speed: number | undefined): string | undefined {\n if (speed === undefined || speed === 1.0) return undefined;\n const percentage = Math.round((speed - 1) * 100);\n return percentage >= 0 ? `+${percentage}%` : `${percentage}%`;\n}\n\n/**\n * Infer file extension from Edge TTS output format\n */\nfunction inferExtension(outputFormat: string): string {\n const normalized = outputFormat.toLowerCase();\n if (normalized.includes(\"webm\")) return \".webm\";\n if (normalized.includes(\"ogg\")) return \".ogg\";\n if (normalized.includes(\"opus\")) return \".opus\";\n if (normalized.includes(\"wav\") || normalized.includes(\"riff\") || normalized.includes(\"pcm\")) {\n return \".wav\";\n }\n return \".mp3\";\n}\n\n/**\n * Generate speech using Microsoft Edge TTS\n */\nasync function generateSpeech(settings: EdgeTTSSettings, params: EdgeTTSParams): Promise<Buffer> {\n const voice = resolveVoice(params.voice, settings.voice);\n const lang = params.lang ?? settings.lang;\n const outputFormat = params.outputFormat ?? settings.outputFormat;\n const rate = params.rate ?? speedToRate(params.speed) ?? settings.rate;\n const pitch = params.pitch ?? settings.pitch;\n const volume = params.volume ?? settings.volume;\n\n logger.debug(`[EdgeTTS] Generating speech with voice: ${voice}, lang: ${lang}`);\n\n const tts = new EdgeTTS({\n voice,\n lang,\n outputFormat,\n saveSubtitles: false,\n proxy: settings.proxy,\n rate,\n pitch,\n volume,\n timeout: settings.timeoutMs,\n });\n\n // Create temp directory for output\n const tempDir = mkdtempSync(path.join(tmpdir(), \"edge-tts-\"));\n const extension = inferExtension(outputFormat);\n const outputPath = path.join(tempDir, `speech${extension}`);\n\n try {\n await tts.ttsPromise(params.text, outputPath);\n const audioBuffer = readFileSync(outputPath);\n return audioBuffer;\n } finally {\n // Cleanup temp directory\n try {\n rmSync(tempDir, { recursive: true, force: true });\n } catch {\n // Ignore cleanup errors\n }\n }\n}\n\n/**\n * Edge TTS Plugin for ElizaOS\n *\n * Provides free text-to-speech synthesis using Microsoft Edge's TTS service.\n * No API key required - uses the same TTS engine as Microsoft Edge browser.\n *\n * Features:\n * - High-quality neural voices\n * - Multiple languages and locales\n * - Adjustable rate, pitch, and volume\n * - No API key or payment required\n *\n * Optional environment variables:\n * - EDGE_TTS_VOICE: Voice ID (default: en-US-MichelleNeural)\n * - EDGE_TTS_LANG: Language code (default: en-US)\n * - EDGE_TTS_OUTPUT_FORMAT: Output format (default: audio-24khz-48kbitrate-mono-mp3)\n * - EDGE_TTS_RATE: Speech rate adjustment (e.g., +10%, -5%)\n * - EDGE_TTS_PITCH: Pitch adjustment (e.g., +5Hz, -10Hz)\n * - EDGE_TTS_VOLUME: Volume adjustment (e.g., +20%, -10%)\n * - EDGE_TTS_PROXY: HTTP proxy URL\n * - EDGE_TTS_TIMEOUT_MS: Request timeout (default: 30000)\n *\n * Popular voices:\n * - en-US-MichelleNeural (female, US English)\n * - en-US-GuyNeural (male, US English)\n * - en-US-JennyNeural (female, US English)\n * - en-US-AriaNeural (female, US English)\n * - en-GB-SoniaNeural (female, UK English)\n * - en-GB-RyanNeural (male, UK English)\n * - de-DE-KatjaNeural (female, German)\n * - fr-FR-DeniseNeural (female, French)\n * - es-ES-ElviraNeural (female, Spanish)\n * - ja-JP-NanamiNeural (female, Japanese)\n * - zh-CN-XiaoxiaoNeural (female, Chinese)\n */\nexport const edgeTTSPlugin: Plugin = {\n name: \"edge-tts\",\n description:\n \"Free text-to-speech synthesis using Microsoft Edge TTS - no API key required, high-quality neural voices\",\n models: {\n [ModelType.TEXT_TO_SPEECH]: async (\n runtime: IAgentRuntime,\n input: string | EdgeTTSParams\n ): Promise<Buffer | ArrayBuffer | Uint8Array> => {\n const params: EdgeTTSParams = typeof input === \"string\" ? { text: input } : input;\n const settings = getEdgeTTSSettings(runtime);\n\n logger.log(`[EdgeTTS] Using TEXT_TO_SPEECH with voice: ${settings.voice}`);\n\n if (!params.text || params.text.trim().length === 0) {\n throw new Error(\"TEXT_TO_SPEECH requires non-empty text\");\n }\n\n // Edge TTS has a practical limit around 5000 characters\n if (params.text.length > 5000) {\n throw new Error(\"TEXT_TO_SPEECH text exceeds 5000 character limit\");\n }\n\n try {\n const audioBuffer = await generateSpeech(settings, params);\n return audioBuffer;\n } catch (error: unknown) {\n const msg = error instanceof Error ? error.message : String(error);\n logger.error(`EdgeTTS model error: ${msg}`);\n throw error instanceof Error ? error : new Error(msg);\n }\n },\n },\n tests: [\n {\n name: \"test edge tts\",\n tests: [\n {\n name: \"Edge TTS settings validation\",\n fn: async (runtime: IAgentRuntime) => {\n const settings = getEdgeTTSSettings(runtime);\n\n if (!settings.voice) {\n throw new Error(\"Missing voice configuration\");\n }\n\n if (!settings.lang) {\n throw new Error(\"Missing language configuration\");\n }\n\n if (!settings.outputFormat) {\n throw new Error(\"Missing output format configuration\");\n }\n\n logger.success(\"Edge TTS settings validated successfully\");\n },\n },\n {\n name: \"Edge TTS voice preset mapping\",\n fn: async (_runtime: IAgentRuntime) => {\n // Test that OpenAI-style voice names map correctly\n const testCases = [\n { input: \"alloy\", expected: \"en-US-GuyNeural\" },\n { input: \"nova\", expected: \"en-US-JennyNeural\" },\n { input: \"shimmer\", expected: \"en-US-AriaNeural\" },\n {\n input: \"en-US-MichelleNeural\",\n expected: \"en-US-MichelleNeural\",\n },\n ];\n\n for (const tc of testCases) {\n const result = resolveVoice(tc.input, DEFAULT_VOICE);\n if (result !== tc.expected) {\n throw new Error(\n `Voice preset mapping failed: ${tc.input} -> ${result}, expected ${tc.expected}`\n );\n }\n }\n\n logger.success(\"Voice preset mapping validated successfully\");\n },\n },\n {\n name: \"Edge TTS speed to rate conversion\",\n fn: async (_runtime: IAgentRuntime) => {\n const testCases = [\n { speed: 1.0, expected: undefined },\n { speed: 1.5, expected: \"+50%\" },\n { speed: 0.75, expected: \"-25%\" },\n { speed: 2.0, expected: \"+100%\" },\n ];\n\n for (const tc of testCases) {\n const result = speedToRate(tc.speed);\n if (result !== tc.expected) {\n throw new Error(\n `Speed conversion failed: ${tc.speed} -> ${result}, expected ${tc.expected}`\n );\n }\n }\n\n logger.success(\"Speed to rate conversion validated successfully\");\n },\n },\n {\n name: \"Edge TTS generation (live test)\",\n fn: async (runtime: IAgentRuntime) => {\n const testText = \"Hello, this is a test of Edge TTS.\";\n\n try {\n const audioBuffer = (await runtime.useModel(ModelType.TEXT_TO_SPEECH, testText)) as\n | Buffer\n | Uint8Array;\n\n if (!audioBuffer || audioBuffer.length === 0) {\n throw new Error(\"Received empty audio buffer\");\n }\n\n logger.success(`Edge TTS generation successful: ${audioBuffer.length} bytes`);\n } catch (error: unknown) {\n const msg = error instanceof Error ? error.message : String(error);\n // Edge TTS might fail in CI environments without network\n if (msg.includes(\"ENOTFOUND\") || msg.includes(\"network\")) {\n logger.warn(`Edge TTS live test skipped (network unavailable): ${msg}`);\n return;\n }\n throw error;\n }\n },\n },\n ],\n },\n ],\n};\n\nexport default edgeTTSPlugin;\n\n// Re-export types\nexport type { EdgeTTSParams, EdgeTTSSettings };\n\n// Export helper functions for testing\nexport const _test = {\n resolveVoice,\n speedToRate,\n inferExtension,\n getEdgeTTSSettings,\n};\n"
|
|
6
|
-
],
|
|
7
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAkD,IAAlD;AACuB,IAAvB;AACiB,IAAjB;AACmE,IAAnE;AACwB,IAAxB;AAoCA,IAAM,gBAAgB;AACtB,IAAM,eAAe;AACrB,IAAM,wBAAwB;AAC9B,IAAM,qBAAqB;AAG3B,IAAM,gBAAwC;AAAA,EAE5C,OAAO;AAAA,EACP,MAAM;AAAA,EACN,OAAO;AAAA,EACP,MAAM;AAAA,EACN,MAAM;AAAA,EACN,SAAS;AAEX;AAEA,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