1.0.4 • Published 1 year ago

warmaitech-mstts v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

mstts.js

一个免费的微软Azure文本转语音,可直接导出mp3文件的nodejs库

打包

修改: 当包有修改的时候,先修改package.json中的版本号(version),不修改版本号上传会失败

  • 注意事项:上传时不能使用淘宝镜像

npm config set registry https://registry.npmjs.org

  • 这里注意点package.json文件夹 main放入放入当前npm run build 打包后的

以下是流程:

```
cd project root dir
npm init
(auth)
npm publish

```

使用方法

1.命令行

```
npm install -g warmaitech-mstts
mstts -i -o ./test.mp3
```

2.代码中使用

```
npm install warmaitech-mstts

const mstts = require('warmaitech-mstts')

const mp3buffer = await mstts.getTTSData(text,voice,express,role,rate,pitch);
```
1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago