merge-ssml
Merge SSML documents in JavaScript
Example
Input SSML documents
Here is the first SSML
Here is the second SSML
Here is the third SSML
Resulting document
Here is the first SSML Here is the second SSML Here is the third SSML
Usage
Install using npm
npm i merge-ssml
or yarn
yarn add merge-ssml
Example
// Import the packageconst merge_ssml = // Provide SSML documentsssmls = `<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 themconst result =