New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ssml-split

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ssml-split - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

.editorconfig

28

API.md

@@ -1,4 +0,4 @@

<a name="PollySSMLSplit"></a>
<a name="SSMLSplit"></a>
## PollySSMLSplit
## SSMLSplit
Creates a tree data structure from SSML text.

@@ -8,10 +8,10 @@

* [PollySSMLSplit](#PollySSMLSplit)
* [new PollySSMLSplit(softLimit, hardLimit)](#new_PollySSMLSplit_new)
* [.configure(options)](#PollySSMLSplit+configure)
* [.split(ssml)](#PollySSMLSplit+split) ⇒ <code>Array.&lt;string&gt;</code>
* [SSMLSplit](#SSMLSplit)
* [new SSMLSplit(softLimit, hardLimit)](#new_SSMLSplit_new)
* [.configure(options)](#SSMLSplit+configure)
* [.split(ssml)](#SSMLSplit+split) ⇒ <code>Array.&lt;string&gt;</code>
<a name="new_PollySSMLSplit_new"></a>
<a name="new_SSMLSplit_new"></a>
### new PollySSMLSplit(softLimit, hardLimit)
### new SSMLSplit(softLimit, hardLimit)
Set default character limits.

@@ -26,5 +26,5 @@ Initialize tree.

<a name="PollySSMLSplit+configure"></a>
<a name="SSMLSplit+configure"></a>
### pollySSMLSplit.configure(options)
### SSMLSplit.configure(options)
Set configuration options.

@@ -35,3 +35,3 @@ This is optional. Default options are perfect for working with AWS Polly TTS.

**Kind**: instance method of [<code>PollySSMLSplit</code>](#PollySSMLSplit)
**Kind**: instance method of [<code>SSMLSplit</code>](#SSMLSplit)
**Throws**:

@@ -49,8 +49,8 @@

<a name="PollySSMLSplit+split"></a>
<a name="SSMLSplit+split"></a>
### pollySSMLSplit.split(ssml) ⇒ <code>Array.&lt;string&gt;</code>
### SSMLSplit.split(ssml) ⇒ <code>Array.&lt;string&gt;</code>
Split SSML text by batches of ~1500 (by default) chars.
**Kind**: instance method of [<code>PollySSMLSplit</code>](#PollySSMLSplit)
**Kind**: instance method of [<code>SSMLSplit</code>](#SSMLSplit)
**Returns**: <code>Array.&lt;string&gt;</code> - Array of valid SSML strings.

@@ -57,0 +57,0 @@ **Throws**:

@@ -1,1 +0,1 @@

module.exports = require('./lib/polly-ssml-split')
module.exports = require('./lib/ssml-split')
{
"name": "ssml-split",
"version": "0.1.1",
"version": "0.1.2",
"description": "Splits long texts with SSML tags by batches suitable for working with AWS Polly TTS and Google Cloud Text to Speech.",

@@ -11,3 +11,4 @@ "main": "index.js",

"test": "tap test/*.js",
"cover": "tap test/*.js --coverage"
"cover": "tap test/*.js --coverage",
"update": "npm-check --update"
},

@@ -19,8 +20,14 @@ "repository": {

"keywords": [
"polly",
"ssml split",
"ssml",
"aws",
"google",
"google-text-to-speech",
"aws-polly",
"text-to-speech",
"split",
"splitter",
"ssml-parsing",
"tts"
],
"author": "Oleg Legun <oleg.legun@gmail.com>",
"author": "Jordy van den Aardweg <jordyvandenaardweg@gmail.com>",
"license": "MIT",

@@ -32,3 +39,4 @@ "bugs": {

"devDependencies": {
"tap": "^11.1.4"
"npm-check": "^5.9.0",
"tap": "^14.10.5"
},

@@ -35,0 +43,0 @@ "dependencies": {

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