Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

polly-ru-ssml

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

polly-ru-ssml - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

.travis.yml

17

package.json
{
"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>&quot;us&quot;</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>&quot;us&quot;</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)
})
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc