Comparing version 2.3.0 to 2.4.0
@@ -6,5 +6,7 @@ | ||
// natives | ||
const { exec, spawn } = require("child_process"); | ||
const { join } = require("path"); | ||
const { exec, spawn } = require("child_process"); | ||
// locals | ||
const parseVoicesEspeak = require(join(__dirname, "parseVoicesEspeak.js")); | ||
@@ -11,0 +13,0 @@ const parseVoicesSAPI = require(join(__dirname, "parseVoicesSAPI.js")); |
@@ -13,8 +13,11 @@ | ||
// 0 -> 200 | ||
"-a", options.volume * 2, | ||
"-a", | ||
options.volume * 2, | ||
// 80 -> 240 | ||
"-s", Math.round(speed + 80), | ||
"-s", | ||
Math.round(speed + 80), | ||
"-v", "string" === typeof options.voice ? options.voice : options.voice.name | ||
"-v", | ||
"string" === typeof options.voice ? options.voice : options.voice.name | ||
@@ -21,0 +24,0 @@ ]; |
@@ -11,8 +11,11 @@ | ||
// 0 -> 100 | ||
"-v", options.volume, | ||
"-v", | ||
options.volume, | ||
// -10 -> 10 | ||
"-r", Math.round(options.speed / 5) - 10, | ||
"-r", | ||
Math.round(options.speed / 5) - 10, | ||
"-voice", "string" === typeof options.voice ? options.voice : options.voice.name | ||
"-voice", | ||
"string" === typeof options.voice ? options.voice : options.voice.name | ||
@@ -19,0 +22,0 @@ ]; |
{ | ||
"name": "simpletts", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"description": "A basic TTS manager", | ||
@@ -8,7 +8,17 @@ "main": "lib/main.js", | ||
"scripts": { | ||
"tests": "gulp tests" | ||
"lint": "npx eslint ./bin/*.js ./lib/**/*.js ./test/**/*.js", | ||
"check-updates": "npx check-version-modules", | ||
"unit-tests": "npx nyc --reporter=html --reporter=text mocha", | ||
"tests": "npm run-script lint && npm run-script check-updates && npm run-script unit-tests", | ||
"ci": "npm run-script tests && npx nyc report --reporter=text-lcov | coveralls" | ||
}, | ||
"pre-push": [ | ||
"tests" | ||
], | ||
"bin": { | ||
"simpletts": "./bin/cmd.js" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "npm run-script lint", | ||
"pre-push": "npm run-script tests" | ||
} | ||
}, | ||
"repository": { | ||
@@ -36,10 +46,9 @@ "type": "git", | ||
"devDependencies": { | ||
"@types/node": "9.6.7", | ||
"gulp": "4.0.0", | ||
"gulp-coveralls": "0.1.4", | ||
"gulp-eslint": "4.0.2", | ||
"gulp-istanbul": "1.1.3", | ||
"gulp-mocha": "3.0.1", | ||
"gulp-plumber": "1.2.0", | ||
"pre-push": "0.1.1" | ||
"@types/node": "10.12.18", | ||
"check-version-modules": "1.1.1", | ||
"coveralls": "3.0.2", | ||
"eslint": "5.12.1", | ||
"mocha": "5.2.0", | ||
"nyc": "13.1.0", | ||
"husky": "1.3.1" | ||
}, | ||
@@ -46,0 +55,0 @@ "homepage": "https://github.com/Psychopoulet/simpletts#readme", |
# simpletts | ||
A basic tss manager, based on Microsoft Speech API or espeak for others OS | ||
[![Build Status](https://api.travis-ci.org/Psychopoulet/simpletts.svg?branch=master)](https://travis-ci.org/Psychopoulet/simpletts) | ||
[![Coverage Status](https://coveralls.io/repos/github/Psychopoulet/simpletts/badge.svg?branch=master)](https://coveralls.io/github/Psychopoulet/simpletts) | ||
[![Dependency Status](https://david-dm.org/Psychopoulet/simpletts/status.svg)](https://david-dm.org/Psychopoulet/simpletts) | ||
[![Dev dependency Status](https://david-dm.org/Psychopoulet/simpletts/dev-status.svg)](https://david-dm.org/Psychopoulet/simpletts?type=dev) | ||
[![Build status](https://api.travis-ci.org/Psychopoulet/simpletts.svg?branch=master)](https://travis-ci.org/Psychopoulet/simpletts) | ||
[![Coverage status](https://coveralls.io/repos/github/Psychopoulet/simpletts/badge.svg?branch=master)](https://coveralls.io/github/Psychopoulet/simpletts) | ||
[![Dependency status](https://david-dm.org/Psychopoulet/simpletts/status.svg)](https://david-dm.org/Psychopoulet/simpletts) | ||
[![Dev dependency status](https://david-dm.org/Psychopoulet/simpletts/dev-status.svg)](https://david-dm.org/Psychopoulet/simpletts?type=dev) | ||
[![Issues](https://img.shields.io/github/issues/Psychopoulet/simpletts.svg)](https://github.com/Psychopoulet/simpletts/issues) | ||
[![Pull requests](https://img.shields.io/github/issues-pr/Psychopoulet/simpletts.svg)](https://github.com/Psychopoulet/simpletts/pulls) | ||
@@ -64,2 +66,8 @@ ## Installation | ||
### Bash | ||
```bash | ||
$ npx run-script simpletts "This is a test" | ||
``` | ||
### Typescript | ||
@@ -129,3 +137,3 @@ | ||
```bash | ||
$ gulp | ||
$ npm run-script tests | ||
``` | ||
@@ -132,0 +140,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
41972
7
142
11
22
884
3