srttossml

1.0.2 • Public • Published

Convert Srt content to SSML!

Using AWS Polly requires SSML files for a better optimised text to speech experience with the ability to add pauses in speech and time speech output properly.

Installation

npm

npm install srttossml

yarn

yarn add srttossml

Usage

This library receives srt file input and converts to AWS Polly compatible ssml :

import srttossml from "srttosmsl"

// takes in two parameters
srttossml(srtInputPath, ssmlOutputPath)

// srtInputPath is the file path to the srt file with the contents
// ssmlOutputPath is the file path where generated ssml file will be stored on disc

Package Sidebar

Install

npm i srttossml

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

3.44 kB

Total Files

3

Last publish

Collaborators

  • vicopem