@elizaos/plugin-edge-tts 2.0.0-alpha.6 → 2.0.0-alpha.9

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +1 -90
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -1,90 +1 @@
1
- import { type IAgentRuntime, type Plugin } from "@elizaos/core";
2
- /**
3
- * Edge TTS voice settings configuration
4
- */
5
- interface EdgeTTSSettings {
6
- voice: string;
7
- lang: string;
8
- outputFormat: string;
9
- rate?: string;
10
- pitch?: string;
11
- volume?: string;
12
- proxy?: string;
13
- timeoutMs: number;
14
- }
15
- /**
16
- * Extended TTS params with Edge-specific options
17
- */
18
- interface EdgeTTSParams {
19
- text: string;
20
- voice?: string;
21
- speed?: number;
22
- /** Edge TTS specific: language code */
23
- lang?: string;
24
- /** Edge TTS specific: output format */
25
- outputFormat?: string;
26
- /** Edge TTS specific: rate adjustment (e.g., +10%, -5%) */
27
- rate?: string;
28
- /** Edge TTS specific: pitch adjustment (e.g., +5Hz, -10Hz) */
29
- pitch?: string;
30
- /** Edge TTS specific: volume adjustment (e.g., +20%, -10%) */
31
- volume?: string;
32
- }
33
- declare function getEdgeTTSSettings(runtime: IAgentRuntime): EdgeTTSSettings;
34
- /**
35
- * Resolve voice name - handles OpenAI-style voice names and Edge TTS voice IDs
36
- */
37
- declare function resolveVoice(voice: string | undefined, defaultVoice: string): string;
38
- /**
39
- * Convert speed multiplier to Edge TTS rate string
40
- * speed: 1.0 = normal, 0.5 = half speed, 2.0 = double speed
41
- */
42
- declare function speedToRate(speed: number | undefined): string | undefined;
43
- /**
44
- * Infer file extension from Edge TTS output format
45
- */
46
- declare function inferExtension(outputFormat: string): string;
47
- /**
48
- * Edge TTS Plugin for ElizaOS
49
- *
50
- * Provides free text-to-speech synthesis using Microsoft Edge's TTS service.
51
- * No API key required - uses the same TTS engine as Microsoft Edge browser.
52
- *
53
- * Features:
54
- * - High-quality neural voices
55
- * - Multiple languages and locales
56
- * - Adjustable rate, pitch, and volume
57
- * - No API key or payment required
58
- *
59
- * Optional environment variables:
60
- * - EDGE_TTS_VOICE: Voice ID (default: en-US-MichelleNeural)
61
- * - EDGE_TTS_LANG: Language code (default: en-US)
62
- * - EDGE_TTS_OUTPUT_FORMAT: Output format (default: audio-24khz-48kbitrate-mono-mp3)
63
- * - EDGE_TTS_RATE: Speech rate adjustment (e.g., +10%, -5%)
64
- * - EDGE_TTS_PITCH: Pitch adjustment (e.g., +5Hz, -10Hz)
65
- * - EDGE_TTS_VOLUME: Volume adjustment (e.g., +20%, -10%)
66
- * - EDGE_TTS_PROXY: HTTP proxy URL
67
- * - EDGE_TTS_TIMEOUT_MS: Request timeout (default: 30000)
68
- *
69
- * Popular voices:
70
- * - en-US-MichelleNeural (female, US English)
71
- * - en-US-GuyNeural (male, US English)
72
- * - en-US-JennyNeural (female, US English)
73
- * - en-US-AriaNeural (female, US English)
74
- * - en-GB-SoniaNeural (female, UK English)
75
- * - en-GB-RyanNeural (male, UK English)
76
- * - de-DE-KatjaNeural (female, German)
77
- * - fr-FR-DeniseNeural (female, French)
78
- * - es-ES-ElviraNeural (female, Spanish)
79
- * - ja-JP-NanamiNeural (female, Japanese)
80
- * - zh-CN-XiaoxiaoNeural (female, Chinese)
81
- */
82
- export declare const edgeTTSPlugin: Plugin;
83
- export default edgeTTSPlugin;
84
- export type { EdgeTTSSettings, EdgeTTSParams };
85
- export declare const _test: {
86
- resolveVoice: typeof resolveVoice;
87
- speedToRate: typeof speedToRate;
88
- inferExtension: typeof inferExtension;
89
- getEdgeTTSSettings: typeof getEdgeTTSSettings;
90
- };
1
+ export * from "@elizaos/core";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elizaos/plugin-edge-tts",
3
- "version": "2.0.0-alpha.6",
3
+ "version": "2.0.0-alpha.9",
4
4
  "type": "module",
5
5
  "main": "dist/cjs/index.node.cjs",
6
6
  "module": "dist/node/index.node.js",
@@ -44,7 +44,7 @@
44
44
  "dist"
45
45
  ],
46
46
  "dependencies": {
47
- "@elizaos/core": "2.0.0-alpha.3",
47
+ "@elizaos/core": "alpha",
48
48
  "node-edge-tts": "^1.0.7"
49
49
  },
50
50
  "devDependencies": {