Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var Speech = require("ssml-builder");
- var speech = new Speech();
- speech.say("Last night, ")
- .prosody({volume: "x-soft", pitch: "low", rate: "x-slow"}, "I was up to 3 in the morning programming")
- .pause("5ms")
- .prosody({volume: "x-loud", pitch: "medium", rate: "fast"}, "But after I had a redbull, I am wide awake!")
- .pause("1s")
- .prosody({volume: "-1dB", pitch: "low",rate: "medium"}, "Then again, ")
- .prosody({volume: "-2dB", pitch: "low",rate: "slow"}, "I feel like ")
- .prosody({volume: "-3dB", pitch: "low",rate: "x-slow"}, "I am crashing ")
- .pause("5ms")
- .prosody({volume: "-5dB", pitch: "low", rate: "x-slow"}, "I can't stay awake");
- var ssml = speech.ssml();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement