polly-ru-ssml
Advanced tools
Comparing version 0.1.3 to 0.1.4
{ | ||
"name": "polly-ru-ssml", | ||
"version": "0.1.3", | ||
"description": | ||
"Convert russian text, that contains english words into a valid SSML for AWS Polly TTS, thus enhancing synthesized audio pronunciation for english words within the russian language context.", | ||
"version": "0.1.4", | ||
"description": "Convert russian text, that contains english words into a valid SSML for AWS Polly TTS, thus enhancing synthesized audio pronunciation for english words within the russian language context.", | ||
"main": "index.js", | ||
"scripts": { | ||
"generate-docs": "jsdoc2md lib/polly-ru-ssml.js > API.md ", | ||
"test": "tap test/*.js" | ||
"generate-docs": "jsdoc2md lib/polly-ru-ssml.js > API.md", | ||
"test": "tap test/*.js", | ||
"cover": "tap test/*.js --coverage" | ||
}, | ||
@@ -18,3 +18,8 @@ "repository": { | ||
}, | ||
"keywords": ["aws", "amazon", "polly", "ssml"], | ||
"keywords": [ | ||
"aws", | ||
"amazon", | ||
"polly", | ||
"ssml" | ||
], | ||
"engines": { | ||
@@ -21,0 +26,0 @@ "node": ">=4.2.4" |
# Polly Russian SSML Enhancer | ||
[![Build Status](https://travis-ci.org/oleglegun/polly-ru-ssml.svg?branch=master)](https://travis-ci.org/oleglegun/polly-ru-ssml) | ||
[![Coverage Status](https://coveralls.io/repos/github/oleglegun/polly-ru-ssml/badge.svg?branch=master)](https://coveralls.io/github/oleglegun/polly-ru-ssml?branch=master) | ||
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) | ||
## Synopsis | ||
@@ -35,11 +39,2 @@ | ||
| Name | Type | Default | Description | | ||
| --- | --- | --- | --- | | ||
| [country] | <code>string</code> | <code>"us"</code> | Country code for `<lang/>` tags. Valid values: `us`, `uk`. | | ||
| [rate] | <code>string</code> | | Speech rate for latin characters. Valid values: `x-slow`, `slow`, `medium`, `fast`, `x-fast`. | | ||
| [globalVolume] | <code>string</code> | | Global audio volume. Valid values: `x-soft`, `soft`, `medium`, `loud`, `x-loud`. | | ||
| [volume] | <code>string</code> | | Local audio volume for latin characters. Valid values: `x-soft`, `soft`, `medium`, `loud`, `x-loud`. | | ||
[API documentation](./API.md) | ||
```js | ||
@@ -91,2 +86,12 @@ const pollyRuSSML = require('polly-ru-ssml') | ||
| Name | Type | Default | Description | | ||
| --- | --- | --- | --- | | ||
| [country] | <code>string</code> | <code>"us"</code> | Country code for `<lang/>` tags. Valid values: `us`, `uk`. | | ||
| [rate] | <code>string</code> | | Speech rate for latin characters. Valid values: `x-slow`, `slow`, `medium`, `fast`, `x-fast`. | | ||
| [globalVolume] | <code>string</code> | | Global audio volume. Valid values: `x-soft`, `soft`, `medium`, `loud`, `x-loud`. | | ||
| [volume] | <code>string</code> | | Local audio volume for latin characters. Valid values: `x-soft`, `soft`, `medium`, `loud`, `x-loud`. | | ||
[API documentation](./API.md) | ||
## Tests | ||
@@ -93,0 +98,0 @@ |
@@ -31,2 +31,10 @@ const t = require('tap') | ||
t.throws(function() { | ||
pollyRuSSML.configure() | ||
}) | ||
t.throws(function() { | ||
pollyRuSSML.configure("") | ||
}) | ||
const validConfigs = [ | ||
@@ -46,2 +54,8 @@ {}, | ||
validConfigs.forEach(options => { | ||
t.doesNotThrow(function() { | ||
pollyRuSSML.speak("", options) | ||
}) | ||
}) | ||
const invalidConfigs = [ | ||
@@ -58,2 +72,8 @@ { country: 'ru' }, | ||
}, ValidationError) | ||
}) | ||
}) | ||
invalidConfigs.forEach(options => { | ||
t.throws(function() { | ||
pollyRuSSML.speak("", options) | ||
}, ValidationError) | ||
}) |
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
18895
9
265
121