Package Exports
- node-edge-tts
- node-edge-tts/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (node-edge-tts) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
node-edge-tts
node-edge-tts is a module that utilizes Microsoft Edge's online TTS (Text-to-Speech) service on Node.js
Installation
npm install node-edge-ttsExample usage
const { EdgeTTS } = require('node-edge-tts')or
import { EdgeTTS } from 'node-edge-tts'const tts = new EdgeTTS()
await tts.ttsPromise('Hello world', path_to_audiofile_with_extension)configure
const tts = new EdgeTTS({
voice: 'en-US-AriaNeural',
lang: 'en-US',
outputFormat: 'audio-24khz-96kbitrate-mono-mp3'
proxy: 'http://localhost:7890',
saveSubtitles: true
})You can find the available options for speechconfig at voice/lang|outputFormat, but not all options are accessible due to limitations of the services provided by Microsoft Edge.