Skip to content

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.

Notifications You must be signed in to change notification settings

Vicopem01/srttossml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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

About

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.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published