Socket
Socket
Sign inDemoInstall

merge-ssml

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    merge-ssml

Combine multiple SSML documents into one


Version published
Weekly downloads
1
Maintainers
1
Install size
3.82 kB
Created
Weekly downloads
 

Readme

Source

merge-ssml

Merge SSML documents in JavaScript

Example

Input SSML documents

<speak>
  Here is the first <say-as interpret-as="characters">SSML</say-as>
</speak>
<speak>
  Here is the second <say-as interpret-as="characters">SSML</say-as>
</speak>
<speak>
  Here is the third <say-as interpret-as="characters">SSML</say-as>
</speak>

Resulting document

<speak>
  Here is the first <say-as interpret-as="characters">SSML</say-as>
</speak>
<break />
  Here is the second <say-as interpret-as="characters">SSML</say-as>
<break />
  Here is the third <say-as interpret-as="characters">SSML</say-as>
</speak>

Usage

Install using npm

npm i merge-ssml

or yarn

yarn add merge-ssml

Example

// Import the package
const merge_ssml = require('merge-ssml')

// Provide SSML documents
ssmls = [
  `<speak>
    Here is the first <say-as interpret-as="characters">SSML</say-as>
  </speak>`,
  `<speak>
    Here is the second <say-as interpret-as="characters">SSML</say-as>
  </speak>`,
  `<speak>
    Here is the third <say-as interpret-as="characters">SSML</say-as>
  </speak>`
]

// Combine them
const result = merge_ssml(ssmls)

Keywords

FAQs

Last updated on 07 Sep 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc