Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-edge-tts

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-edge-tts - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

4

dist/edge-tts.d.ts

@@ -10,4 +10,4 @@ import { WebSocket } from 'ws';

outputFormat?: string;
saveSubtitles?: boolean;
proxy?: string;
saveSubtitles?: boolean;
};

@@ -18,4 +18,4 @@ declare class EdgeTTS {

private outputFormat;
private saveSubtitles;
private proxy;
private saveSubtitles;
constructor({ voice, lang, outputFormat, saveSubtitles, proxy }?: configure);

@@ -22,0 +22,0 @@ _connectWebSocket(): Promise<WebSocket>;

@@ -18,3 +18,7 @@ "use strict";

class EdgeTTS {
constructor({ voice = 'zh-CN-XiaoyiNeural', lang = 'zh-CN', outputFormat = 'audio-24khz-48kbitrate-mono-mp3', saveSubtitles = false, proxy } = {}) {
constructor({ voice, lang, outputFormat, saveSubtitles, proxy } = {}) {
this.voice = 'zh-CN-XiaoyiNeural';
this.lang = 'zh-CN';
this.outputFormat = 'audio-24khz-48kbitrate-mono-mp3';
this.saveSubtitles = false;
this.voice = voice;

@@ -21,0 +25,0 @@ this.lang = lang;

{
"name": "node-edge-tts",
"version": "1.1.1",
"version": "1.1.2",
"description": "node-edge-tts is a module that using Microsoft Edge's online TTS (Text-to-Speech) service on the Node.js",

@@ -5,0 +5,0 @@ "keywords": [

@@ -31,7 +31,7 @@ # node-edge-tts

lang: 'en-US',
outputFormat: 'audio-24khz-96kbitrate-mono-mp3'
outputFormat: 'audio-24khz-96kbitrate-mono-mp3',
saveSubtitles: true,
proxy: 'http://localhost:7890',
saveSubtitles: true
})
```
You can find the available options for speechconfig at [voice/lang](https://learn.microsoft.com/en-us/azure/ai-services/speech-service/language-support?tabs=tts)|[outputFormat](https://learn.microsoft.com/en-us/dotnet/api/microsoft.cognitiveservices.speech.speechsynthesisoutputformat?view=azure-dotnet), but not all options are accessible due to limitations of the services provided by Microsoft Edge.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc