node-edge-tts
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -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. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9832
155