@andresaya/edge-tts 1.4.3 → 1.4.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.
@@ -6,7 +6,7 @@ const VoiceListCommand_1 = require("../commands/VoiceListCommand");
6
6
  const commander_1 = require("commander");
7
7
  const program = new commander_1.Command();
8
8
  program
9
- .version('1.4.3')
9
+ .version('1.4.4')
10
10
  .addCommand(SynthesizeCommand_1.SynthesizeCommand)
11
11
  .addCommand(VoiceListCommand_1.VoiceListCommand);
12
12
  try {
@@ -3,32 +3,5 @@ export declare const Constants: {
3
3
  WSS_URL: string;
4
4
  VOICES_URL: string;
5
5
  USER_AGENT: string;
6
- DEFAULT_VOICE: string;
7
6
  VERSION_MS_GEC: string;
8
- CHROMIUM_FULL_VERSION: string;
9
- CHROMIUM_MAJOR_VERSION: string;
10
- SEC_MS_GEC_VERSION: string;
11
- BASE_HEADERS: {
12
- 'User-Agent': string;
13
- 'Accept-Encoding': string;
14
- 'Accept-Language': string;
15
- };
16
- WSS_HEADERS: {
17
- Pragma: string;
18
- 'Cache-Control': string;
19
- Origin: string;
20
- 'Sec-WebSocket-Protocol': string;
21
- 'Sec-WebSocket-Version': string;
22
- 'User-Agent': string;
23
- };
24
- VOICE_HEADERS: {
25
- Authority: string;
26
- 'Sec-CH-UA': string;
27
- 'Sec-CH-UA-Mobile': string;
28
- Accept: string;
29
- 'Sec-Fetch-Site': string;
30
- 'Sec-Fetch-Mode': string;
31
- 'Sec-Fetch-Dest': string;
32
- 'User-Agent': string;
33
- };
34
7
  };
@@ -3,35 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Constants = void 0;
4
4
  exports.Constants = {
5
5
  TRUSTED_CLIENT_TOKEN: '6A5AA1D4EAFF4E9FB37E23D68491D6F4',
6
- WSS_URL: 'wss://api.msedgeservices.com/tts/cognitiveservices/websocket/v1',
6
+ WSS_URL: 'ws://api.msedgeservices.com/tts/cognitiveservices/websocket/v1',
7
7
  VOICES_URL: 'https://api.msedgeservices.com/tts/cognitiveservices/voices/list',
8
8
  USER_AGENT: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36 Edg/140.0.0.0',
9
- DEFAULT_VOICE: "en-US-EmmaMultilingualNeural",
10
- VERSION_MS_GEC: '1-140.0.3485.14',
11
- CHROMIUM_FULL_VERSION: '140.0.3485.14',
12
- CHROMIUM_MAJOR_VERSION: '140',
13
- SEC_MS_GEC_VERSION: '1-140.0.3485.14',
14
- BASE_HEADERS: {
15
- 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36 Edg/140.0.0.0',
16
- 'Accept-Encoding': 'gzip, deflate, br, zstd',
17
- 'Accept-Language': 'es,es-ES;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6,es-CO;q=0.5,es-MX;q=0.4',
18
- },
19
- WSS_HEADERS: {
20
- 'Pragma': 'no-cache',
21
- 'Cache-Control': 'no-cache',
22
- 'Origin': 'chrome-extension://jdiccldimpdaibmpdkjnbmckianbfold',
23
- 'Sec-WebSocket-Protocol': 'synthesize',
24
- 'Sec-WebSocket-Version': '13',
25
- 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36 Edg/140.0.0.0'
26
- },
27
- VOICE_HEADERS: {
28
- 'Authority': 'speech.platform.bing.com',
29
- 'Sec-CH-UA': '" Not;A Brand";v="99", "Microsoft Edge";v="140", "Chromium";v="140"',
30
- 'Sec-CH-UA-Mobile': '?0',
31
- 'Accept': '*/*',
32
- 'Sec-Fetch-Site': 'none',
33
- 'Sec-Fetch-Mode': 'cors',
34
- 'Sec-Fetch-Dest': 'empty',
35
- 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36 Edg/140.0.0.0'
36
- },
9
+ VERSION_MS_GEC: '1-140.0.3485.14'
37
10
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@andresaya/edge-tts",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "description": "Edge TTS is a package that allows access to the online text-to-speech service used by Microsoft Edge without the need for Microsoft Edge, Windows, or an API key.",
5
5
  "main": "dist/index.js",
6
6
  "keywords": [
@@ -32,7 +32,7 @@
32
32
  "commander": "^12.1.0",
33
33
  "events": "^3.3.0",
34
34
  "fs": "^0.0.1-security",
35
- "ws": "^8.18.0"
35
+ "ws": "^8.18.3"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "typescript": "^5.0.0"
@@ -41,9 +41,9 @@
41
41
  "dist"
42
42
  ],
43
43
  "bin": {
44
- "edge-tts": "dist/cli/edge-tts.js"
44
+ "edge-tts": "./dist/cli/edge-tts.js"
45
45
  },
46
46
  "engines": {
47
47
  "bun": ">=0.5.0"
48
48
  }
49
- }
49
+ }