Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. var Speech = require("ssml-builder");
  2. var speech = new Speech();
  3. speech.say("Last night, ")
  4. .prosody({volume: "x-soft", pitch: "low", rate: "x-slow"}, "I was up to 3 in the morning programming")
  5. .pause("5ms")
  6. .prosody({volume: "x-loud", pitch: "medium", rate: "fast"}, "But after I had a redbull, I am wide awake!")
  7. .pause("1s")
  8. .prosody({volume: "-1dB", pitch: "low",rate: "medium"}, "Then again, ")
  9. .prosody({volume: "-2dB", pitch: "low",rate: "slow"}, "I feel like ")
  10. .prosody({volume: "-3dB", pitch: "low",rate: "x-slow"}, "I am crashing ")
  11. .pause("5ms")
  12. .prosody({volume: "-5dB", pitch: "low", rate: "x-slow"}, "I can't stay awake");
  13.  
  14. var ssml = speech.ssml();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement